From 470295de62b41fe9b77729ce4b1af9b9bcfefc69 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Fri, 16 Jul 2021 23:48:56 +0100 Subject: [PATCH] memsan: modify ending of the ciphertext as in the paper --- test/ut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ut.cpp b/test/ut.cpp index 88b7ec9e..18c18ad4 100644 --- a/test/ut.cpp +++ b/test/ut.cpp @@ -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());