Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed Jun 27, 2024
1 parent a74573a commit 3d50274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcrux-ml-kem/c/tests/mlkem768.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ TEST(MlKem768TestPortableUnpacked, ConsistencyTest)
auto ctxt = libcrux_ml_kem_mlkem768_portable_encapsulate_unpacked(&key_pair.public_key, mk_slice(key_pair.public_key_hash, 32), randomness2);

uint8_t sharedSecret2[LIBCRUX_ML_KEM_CONSTANTS_SHARED_SECRET_SIZE];
libcrux_ml_kem_mlkem768_portable_decapsulate_unpacked_portable(&key_pair, &ctxt.fst, sharedSecret2);
libcrux_ml_kem_mlkem768_portable_decapsulate_unpacked(&key_pair, &ctxt.fst, sharedSecret2);

EXPECT_EQ(0,
memcmp(ctxt.snd,
Expand Down Expand Up @@ -362,7 +362,7 @@ TEST(MlKem768TestPortableUnpacked, NISTKnownAnswerTest)
LIBCRUX_ML_KEM_CONSTANTS_SHARED_SECRET_SIZE));

uint8_t sharedSecret2[LIBCRUX_ML_KEM_CONSTANTS_SHARED_SECRET_SIZE];
libcrux_ml_kem_mlkem768_portable_decapsulate_unpacked_portable(&key_pair, &ctxt.fst, sharedSecret2);
libcrux_ml_kem_mlkem768_portable_decapsulate_unpacked(&key_pair, &ctxt.fst, sharedSecret2);

EXPECT_EQ(0,
memcmp(ctxt.snd,
Expand Down

0 comments on commit 3d50274

Please sign in to comment.