aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-01-25 11:56:39 -0500
committerJack Lloyd <[email protected]>2020-01-25 11:56:39 -0500
commit2583c0909e98d8059e68e3af10709c1c784f2bb7 (patch)
tree68935a17837776e69bc197d4d9fca5106b4be321 /src/lib/utils
parent915b5c796f1d95a4258b6d03484710271eef8c0c (diff)
parent901d89a3ffa113b06fa0e600d622d5d088a2fa9d (diff)
Merge GH #2247 Add POWER VPSUM support for GCM
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/cpuid/cpuid.h2
-rw-r--r--src/lib/utils/simd/simd_32.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils/cpuid/cpuid.h b/src/lib/utils/cpuid/cpuid.h
index 77b0c99f6..d9e6b97b3 100644
--- a/src/lib/utils/cpuid/cpuid.h
+++ b/src/lib/utils/cpuid/cpuid.h
@@ -344,6 +344,8 @@ class BOTAN_PUBLIC_API(2,1) CPUID final
return has_clmul();
#elif defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY)
return has_arm_pmull();
+#elif defined(BOTAN_TARGET_ARCH_IS_PPC64)
+ return has_power_crypto();
#else
return false;
#endif
diff --git a/src/lib/utils/simd/simd_32.h b/src/lib/utils/simd/simd_32.h
index 23daf00e4..5cbc32a18 100644
--- a/src/lib/utils/simd/simd_32.h
+++ b/src/lib/utils/simd/simd_32.h
@@ -46,6 +46,7 @@
#elif defined(BOTAN_SIMD_USE_ALTIVEC)
#define BOTAN_SIMD_ISA "altivec"
#define BOTAN_VPERM_ISA "altivec"
+ #define BOTAN_CLMUL_ISA "crypto"
#endif
namespace Botan {