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 /validat4.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 'validat4.cpp')
-rw-r--r-- | validat4.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/validat4.cpp b/validat4.cpp index 96161a81..14409cc0 100644 --- a/validat4.cpp +++ b/validat4.cpp @@ -1743,6 +1743,13 @@ bool ValidateChaCha() return RunTestDataFile("TestVectors/chacha.txt");
}
+bool ValidateChaChaTLS()
+{
+ std::cout << "\nChaCha-TLS validation suite running...\n";
+
+ return RunTestDataFile("TestVectors/chacha_tls.txt");
+}
+
bool ValidateSosemanuk()
{
std::cout << "\nSosemanuk validation suite running...\n";
|