Add ChaCha20Poly1305 benchmarks (GH #724)

This commit is contained in:
Jeffrey Walton 2019-01-28 10:18:04 -05:00
parent 7c3414b072
commit cb674918b3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,7 @@ void Benchmark2(double t, double hertz)
}
BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("AES/CCM");
BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("AES/EAX");
BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("ChaCha20/Poly1305");
}
std::cout << "\n</TABLE>" << std::endl;

View File

@ -39,6 +39,7 @@
#include "rc5.h"
#include "skipjack.h"
#include "blowfish.h"
#include "chachapoly.h"
// Aggressive stack checking with VS2005 SP1 and above.
#if (_MSC_FULL_VER >= 140050727)
@ -70,6 +71,8 @@ void RegisterFactories4()
RegisterAuthenticatedSymmetricCipherDefaultFactories<CCM<AES> >();
RegisterAuthenticatedSymmetricCipherDefaultFactories<GCM<AES> >();
RegisterAuthenticatedSymmetricCipherDefaultFactories<EAX<AES> >();
RegisterAuthenticatedSymmetricCipherDefaultFactories<ChaCha20Poly1305>();
RegisterSymmetricCipherDefaultFactories<CBC_Mode<ARIA> >(); // For test vectors
RegisterSymmetricCipherDefaultFactories<CTR_Mode<ARIA> >();
RegisterSymmetricCipherDefaultFactories<CTR_Mode<Camellia> >();