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 /bench2.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 'bench2.cpp')
-rw-r--r-- | bench2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -141,6 +141,7 @@ void Benchmark2(double t, double hertz) BenchMarkByName<SymmetricCipher>("ChaCha", 0, "ChaCha20");
BenchMarkByName<SymmetricCipher>("ChaCha", 0, "ChaCha12", MakeParameters(Name::Rounds(), 12));
BenchMarkByName<SymmetricCipher>("ChaCha", 0, "ChaCha8", MakeParameters(Name::Rounds(), 8));
+ BenchMarkByName<SymmetricCipher>("ChaChaTLS");
BenchMarkByName<SymmetricCipher>("Sosemanuk");
BenchMarkByName<SymmetricCipher>("Rabbit");
BenchMarkByName<SymmetricCipher>("RabbitWithIV");
|