Skip to content

Commit

Permalink
deadcode removal
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Saxena <[email protected]>
  • Loading branch information
abhinav-thales committed Dec 3, 2024
1 parent 5005d7f commit faf5669
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/vectors_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ static OQS_STATUS kem_kg_vector(const char *method_name,

#ifdef OQS_ENABLE_KEM_ML_KEM
if ((false == sanityCheckPK(public_key, kem->length_public_key, method_name)) || (false == sanityCheckSK(secret_key, method_name))) {
ret = OQS_ERROR;
fprintf(stderr, "[vectors_kem] %s ERROR: generated public key or private key are corrupted !\n", method_name);
goto err;
}
Expand Down Expand Up @@ -299,7 +298,6 @@ static OQS_STATUS kem_vector_encdec_aft(const char *method_name,

#ifdef OQS_ENABLE_KEM_ML_KEM
if (false == sanityCheckPK(encdec_pk, kem->length_public_key, method_name)) {
ret = OQS_ERROR;
fprintf(stderr, "[vectors_kem] %s ERROR: passed encapsulation key is corrupted !\n", method_name);
goto err;
}
Expand Down Expand Up @@ -372,7 +370,6 @@ static OQS_STATUS kem_vector_encdec_val(const char *method_name,

#ifdef OQS_ENABLE_KEM_ML_KEM
if (false == sanityCheckSK(encdec_sk, method_name)) {
ret = OQS_ERROR;
fprintf(stderr, "[vectors_kem] %s ERROR: passed decapsulation key is corrupted !\n", method_name);
goto err;
}
Expand Down

0 comments on commit faf5669

Please sign in to comment.