Browse Source

memsan: modify ending of the ciphertext as in the paper

blog/frodo_constant_time_issue
Henry Case 3 years ago
parent
commit
470295de62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/ut.cpp

+ 1
- 1
test/ut.cpp View File

@@ -105,7 +105,7 @@ TEST(Frodo, Decaps_Negative) {
pqc_kem_encapsulate(p, ct.data(), ss1.data(), pk.data()));

// Alter C1 of the ciphertext
ct[2] ^= 1;
ct[ct.size()-2] ^= 1;

ct_expect_uum();
res = pqc_kem_decapsulate(p, ss2.data(), ct.data(), sk.data());


Loading…
Cancel
Save