diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-08-09 23:28:49 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-08-09 23:28:49 -0400 |
commit | 9f2d65409a70c8bb2168537d37715ef1e16fda26 (patch) | |
tree | 2092bbefdf873a84960c9db29ef3fbe7540cf83b /bench2.cpp | |
parent | 989c3bfbf26d62630058aa26c2318634470f0c1b (diff) | |
download | cryptopp-git-9f2d65409a70c8bb2168537d37715ef1e16fda26.tar.gz |
Add POWER8 GCM mode (GH #698)
Commit 3ed38e42f619 added the POWER8 infrastructure for GCM mode. It also added GCM_SetKeyWithoutResync_VMULL, GCM_Multiply_VMULL and GCM_Reduce_VMULL. This commit adds the remainder, which includes GCM_AuthenticateBlocks_VMULL.
GCC is OK on Linux (ppc64-le) and AIX (ppc64-be). We may need some touchups for XLC compiler
Diffstat (limited to 'bench2.cpp')
-rw-r--r-- | bench2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -107,6 +107,10 @@ void Benchmark2(double t, double hertz) if (HasPMULL())
BenchMarkByName2<AuthenticatedSymmetricCipher, MessageAuthenticationCode>("AES/GCM", 0, "GMAC(AES)");
else
+#elif CRYPTOPP_POWER8_VMULL_AVAILABLE
+ if (HasPMULL())
+ BenchMarkByName2<AuthenticatedSymmetricCipher, MessageAuthenticationCode>("AES/GCM", 0, "GMAC(AES)");
+ else
#endif
{
BenchMarkByName2<AuthenticatedSymmetricCipher, MessageAuthenticationCode>("AES/GCM", 0, "GMAC(AES) (2K tables)", MakeParameters(Name::TableSize(), 2048));
|