From 9f2d65409a70c8bb2168537d37715ef1e16fda26 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 9 Aug 2018 23:28:49 -0400 Subject: 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 --- bench2.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bench2.cpp') 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("AES/GCM", 0, "GMAC(AES)"); else +#elif CRYPTOPP_POWER8_VMULL_AVAILABLE + if (HasPMULL()) + BenchMarkByName2("AES/GCM", 0, "GMAC(AES)"); + else #endif { BenchMarkByName2("AES/GCM", 0, "GMAC(AES) (2K tables)", MakeParameters(Name::TableSize(), 2048)); -- cgit v1.2.1