diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-01-24 09:36:05 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-01-24 09:36:05 -0500 |
commit | 5603661eec5b7410695d97ba6e7576b3daf83491 (patch) | |
tree | c47bbb591215e943ded9f7e17ce6a73ce59c020c /datatest.cpp | |
parent | b47f04418c35f67068e9bff7da9013ae552fc171 (diff) | |
download | cryptopp-git-5603661eec5b7410695d97ba6e7576b3daf83491.tar.gz |
Add ChaChaTLS implementation (GH #265)
We tweaked ChaCha to arrive at the IETF's implementation specified by RFC 7539. We are not sure how to handle block counter wrap. At the moment the caller is responsible for managing it. We were not able to find a reference implementation so we disable SIMD implementations like SSE, AVX, NEON and Power4. We need the wide block tests for corner cases to ensure our implementation is correct.
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datatest.cpp b/datatest.cpp index 6a15ecb2..d948421a 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -527,7 +527,7 @@ void TestSymmetricCipher(TestData &v, const NameValuePairs &overrideParameters) // been processed. Also note we only unlatch from testDataPairs. If
// overrideParameters are specified, the caller is responsible for
// managing the parameter.
- v.erase("Tweak"); v.erase("BlockSize"); v.erase("BlockPaddingScheme");
+ v.erase("Tweak"); v.erase("InitialBlock"); v.erase("BlockSize"); v.erase("BlockPaddingScheme");
std::string encrypted, xorDigest, ciphertext, ciphertextXorDigest;
if (test == "EncryptionMCT" || test == "DecryptionMCT")
|