diff options
-rw-r--r-- | src/lib/block/aes/aes.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/block/aes/aes.cpp b/src/lib/block/aes/aes.cpp index 54a2668c1..568dfb1b3 100644 --- a/src/lib/block/aes/aes.cpp +++ b/src/lib/block/aes/aes.cpp @@ -430,6 +430,20 @@ size_t aes_parallelism() } #endif +#if defined(BOTAN_HAS_AES_POWER8) + if(CPUID::has_ppc_crypto()) + { + return 4; + } +#endif + +#if defined(BOTAN_HAS_AES_ARMV8) + if(CPUID::has_arm_aes()) + { + return 4; + } +#endif + return 1; } |