From 5603661eec5b7410695d97ba6e7576b3daf83491 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 24 Jan 2019 09:36:05 -0500 Subject: 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. --- datatest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datatest.cpp') 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") -- cgit v1.2.1