]> git.feebdaed.xyz Git - 0xmirror/liboqs.git/commitdiff
Added alg_version details to test output (#2080)
authorPablo Gutiérrez <pablogf@uma.es>
Tue, 25 Feb 2025 16:21:11 +0000 (17:21 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 16:21:11 +0000 (17:21 +0100)
* Added alg_version details as test output

Signed-off-by: Pablo Gutiérrez <pablogf@uma.es>
tests/test_kem.c
tests/test_kem_mem.c
tests/test_sig.c
tests/test_sig_mem.c
tests/test_sig_stfl.c

index 75204b1d313ec8b4e1d1b0b1f285d348054fc12a..e5a317c8331ac9495b6905c861717feddd6be727 100644 (file)
@@ -151,6 +151,7 @@ static OQS_STATUS kem_test_correctness(const char *method_name) {
 
        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));
index 4c2cbd92d742be310f0aeea516987ce74df29449..f4548eb09b518e01621669529c430df11d8fa681 100644 (file)
@@ -51,6 +51,7 @@ static OQS_STATUS kem_test_correctness(const char *method_name, KEM_OPS op) {
        case KEM_KEYGEN:
                printf("================================================================================\n");
                printf("Executing keygen 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);
@@ -78,6 +79,7 @@ static OQS_STATUS kem_test_correctness(const char *method_name, KEM_OPS op) {
        case KEM_ENCAPS:
                printf("================================================================================\n");
                printf("Executing encaps 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);
@@ -113,6 +115,7 @@ static OQS_STATUS kem_test_correctness(const char *method_name, KEM_OPS op) {
        case KEM_DECAPS:
                printf("================================================================================\n");
                printf("Executing decaps 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);
index 6ceb2363c61c9a50522cba778faa9f8977d418ac..cc3e83c5c386404aa161782452c1be5832106565 100644 (file)
@@ -54,6 +54,7 @@ static OQS_STATUS sig_test_correctness(const char *method_name) {
 
        printf("================================================================================\n");
        printf("Sample computation for signature %s\n", sig->method_name);
+       printf("Version source: %s\n", sig->alg_version);
        printf("================================================================================\n");
 
        public_key = OQS_MEM_malloc(sig->length_public_key + 2 * sizeof(magic_t));
index bda9bbfc5cc1150252c860158b2ad5b8a276c2d5..6445a2e333f1c53f93577b4671806cec0bf47edf 100644 (file)
@@ -40,6 +40,7 @@ static OQS_STATUS sig_test_correctness(const char *method_name, SIG_OPS op) {
        case SIG_KEYGEN:
                printf("================================================================================\n");
                printf("Executing keygen for SIGALG %s\n", sig->method_name);
+               printf("Version source: %s\n", sig->alg_version);
                printf("================================================================================\n");
 
                public_key = OQS_MEM_malloc(sig->length_public_key);
@@ -65,6 +66,7 @@ static OQS_STATUS sig_test_correctness(const char *method_name, SIG_OPS op) {
        case SIG_SIGN:
                printf("================================================================================\n");
                printf("Executing sign for SIGALG %s\n", sig->method_name);
+               printf("Version source: %s\n", sig->alg_version);
                printf("================================================================================\n");
 
                public_key = OQS_MEM_malloc(sig->length_public_key);
@@ -102,6 +104,7 @@ static OQS_STATUS sig_test_correctness(const char *method_name, SIG_OPS op) {
        case SIG_VERIFY:
                printf("================================================================================\n");
                printf("Executing verify for SIGALG %s\n", sig->method_name);
+               printf("Version source: %s\n", sig->alg_version);
                printf("================================================================================\n");
 
                public_key = OQS_MEM_malloc(sig->length_public_key);
index 687cc9609d3321ea7b826445756555bea87e3c2e..79d303b39aee60a811359043296adc0d3833e43e 100644 (file)
@@ -441,6 +441,7 @@ static OQS_STATUS sig_stfl_test_correctness(const char *method_name, const char
 
        printf("================================================================================\n");
        printf("Sample computation for stateful signature %s\n", sig->method_name);
+       printf("Version source: %s\n", sig->alg_version);
        printf("================================================================================\n");
 
        secret_key = OQS_SIG_STFL_SECRET_KEY_new(sig->method_name);