Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Wilson <[email protected]>
  • Loading branch information
SWilson4 committed Feb 25, 2025
1 parent 9ade892 commit 3c27cdb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ static OQS_STATUS kem_test_correctness(const char *method_name, bool derand) {
goto err;
}

if (!derand) {
printf("================================================================================\n");
printf("sample computation for KEM %s\n", kem->method_name);
printf("Version source: %s\n", kem->alg_version);
printf("================================================================================\n");
}
if (!derand) {
printf("================================================================================\n");
printf("sample computation for KEM %s\n", kem->method_name);
printf("Version source: %s\n", kem->alg_version);
printf("================================================================================\n");
}

public_key = OQS_MEM_malloc(kem->length_public_key + 2 * sizeof(magic_t));
secret_key = OQS_MEM_malloc(kem->length_secret_key + 2 * sizeof(magic_t));
Expand Down Expand Up @@ -206,6 +206,7 @@ static OQS_STATUS kem_test_correctness(const char *method_name, bool derand) {
fprintf(stderr, "ERROR: OQS_KEM_keypair_derand succeeded but expected a failure\n");
goto err;
}
printf("OQS_KEM_keypair_derand failed, as expected\n");
ret = OQS_SUCCESS;
goto cleanup;
} else {
Expand Down

0 comments on commit 3c27cdb

Please sign in to comment.