summaryrefslogtreecommitdiff
path: root/bench2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-09 23:28:49 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-09 23:28:49 -0400
commit9f2d65409a70c8bb2168537d37715ef1e16fda26 (patch)
tree2092bbefdf873a84960c9db29ef3fbe7540cf83b /bench2.cpp
parent989c3bfbf26d62630058aa26c2318634470f0c1b (diff)
downloadcryptopp-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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench2.cpp b/bench2.cpp
index 2470399c..df1a813c 100644
--- a/bench2.cpp
+++ b/bench2.cpp
@@ -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));