diff options
author | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2019-12-18 18:03:47 +0000 |
---|---|---|
committer | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2019-12-18 18:03:47 +0000 |
commit | 68b1199d47ed97fc3f9e6c7802db1ebcf1b061dc (patch) | |
tree | e52cb250fd26ec986d1c57ebd128decf0aeea28d /gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc | |
parent | c14ffa8ce439d8c9c40e97639ae895a0de5a7b65 (diff) | |
download | nss-hg-68b1199d47ed97fc3f9e6c7802db1ebcf1b061dc.tar.gz |
Bug 1574643 - NSS changes for haclv2 r=jcj,kjacobs
This patch contains the changes in NSS, necessary to pick up HACL*v2 in D55413. It has a couple of TODOs:
* The chacha20 saw verification fails for some reason; it's disabled pending Bug 1604130.
* The hacl task on CI requires Bug 1593647 to get fixed.
Depends on D55413.
Differential Revision: https://phabricator.services.mozilla.com/D55414
Diffstat (limited to 'gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc')
-rw-r--r-- | gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc b/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc index 1bcf175c8..10cc2a8c6 100644 --- a/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc +++ b/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc @@ -74,6 +74,7 @@ class Pkcs11ChaCha20Poly1305Test // Check ciphertext and tag. if (ct) { ASSERT_EQ(ct_len, encrypted_len); + EXPECT_TRUE(!memcmp(ct, encrypted.data(), encrypted.size() - 16)); EXPECT_TRUE(!memcmp(ct, encrypted.data(), encrypted.size()) != invalid_tag); } |