diff options
author | Jack Lloyd <[email protected]> | 2018-10-01 06:27:48 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-01 06:27:48 -0400 |
commit | 4e025ca2c44718971b544e4a72c2199878e193c1 (patch) | |
tree | 3af2c6a6dca37542b37df54a748045c4c908c512 /src | |
parent | da123fb7d7142126b194b8f27293d1b114a4baf5 (diff) |
Handle PPC crypto bit in tests [ci skip]
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/cpuid/cpuid.cpp | 2 | ||||
-rw-r--r-- | src/tests/data/block/aes.vec | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/utils/cpuid/cpuid.cpp b/src/lib/utils/cpuid/cpuid.cpp index c5d39b68e..2d1603408 100644 --- a/src/lib/utils/cpuid/cpuid.cpp +++ b/src/lib/utils/cpuid/cpuid.cpp @@ -162,6 +162,8 @@ CPUID::bit_from_string(const std::string& tok) #elif defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY) if(tok == "altivec" || tok == "simd") return {Botan::CPUID::CPUID_ALTIVEC_BIT}; + if(tok == "ppc_crypto") + return {Botan::CPUID::PPC_CRYPTO_BIT}; #elif defined(BOTAN_TARGET_CPU_IS_ARM_FAMILY) if(tok == "neon" || tok == "simd") diff --git a/src/tests/data/block/aes.vec b/src/tests/data/block/aes.vec index 43fff6739..6a0b4430b 100644 --- a/src/tests/data/block/aes.vec +++ b/src/tests/data/block/aes.vec @@ -1,7 +1,7 @@ # Test vectors from NIST CAVP AESAVS # http://csrc.nist.gov/groups/STM/cavp/documents/aes/AESAVS.pdf -#test cpuid aesni ssse3 +#test cpuid aesni ssse3 ppc_crypto [AES-128] Key = 000102030405060708090A0B0C0D0E0F |