]> git.feebdaed.xyz Git - 0xmirror/liboqs.git/commitdiff
Fix typo in test_kem (#2281)
authorDouglas Stebila <dstebila@users.noreply.github.com>
Tue, 23 Sep 2025 12:40:55 +0000 (08:40 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Sep 2025 12:40:55 +0000 (08:40 -0400)
Fixes #2280

Signed-off-by: Douglas Stebila <dstebila@uwaterloo.ca>
tests/test_kem.c

index 25c20f67fc5be6879b5b856d2fc535b44b017b1b..2d6819a75cf48f2bc873d6a1299124eb68ab78bb 100644 (file)
@@ -232,8 +232,8 @@ static OQS_STATUS kem_test_correctness(const char *method_name, bool derand) {
                if (kem->length_encaps_seed > 0) {
                        OQS_randombytes(encaps_seed, kem->length_encaps_seed);
                }
-               rc = OQS_KEM_encaps_derand(kem, ciphertext, shared_secret_e, public_key, encaps_seed)
-                    OQS_TEST_CT_DECLASSIFY(&rc, sizeof rc);
+               rc = OQS_KEM_encaps_derand(kem, ciphertext, shared_secret_e, public_key, encaps_seed);
+               OQS_TEST_CT_DECLASSIFY(&rc, sizeof rc);
                if (kem->length_encaps_seed == 0) {
                        // If length_encaps_seed is set to 0 for this KEM scheme, a failure is expected
                        if (rc != OQS_ERROR) {