summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-24 09:36:05 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-24 09:36:05 -0500
commit5603661eec5b7410695d97ba6e7576b3daf83491 (patch)
treec47bbb591215e943ded9f7e17ce6a73ce59c020c /test.cpp
parentb47f04418c35f67068e9bff7da9013ae552fc171 (diff)
downloadcryptopp-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 'test.cpp')
-rw-r--r--test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.cpp b/test.cpp
index 70f44526..8226b975 100644
--- a/test.cpp
+++ b/test.cpp
@@ -983,10 +983,11 @@ bool Validate(int alg, bool thorough, const char *seedInput)
case 68: result = ValidateTTMAC(); break;
case 70: result = ValidateSalsa(); break;
case 71: result = ValidateChaCha(); break;
- case 72: result = ValidateSosemanuk(); break;
- case 73: result = ValidateRabbit(); break;
- case 74: result = ValidateHC128(); break;
- case 75: result = ValidateHC256(); break;
+ case 72: result = ValidateChaChaTLS(); break;
+ case 73: result = ValidateSosemanuk(); break;
+ case 74: result = ValidateRabbit(); break;
+ case 75: result = ValidateHC128(); break;
+ case 76: result = ValidateHC256(); break;
case 80: result = ValidateVMAC(); break;
case 81: result = ValidateCCM(); break;
case 82: result = ValidateGCM(); break;