diff options
author | Jack Lloyd <[email protected]> | 2017-01-07 12:33:18 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-05-19 10:45:16 -0400 |
commit | 039b7141889b4bdca88f18cd65a6d897f8c80848 (patch) | |
tree | cfade70d2db00828f937a9f6039fe8c6fc6d2cb1 /src/tests/tests.cpp | |
parent | 7873092f84bf61ac932330e0a17449c17897b91b (diff) |
Add support for Intel SHA-1/SHA-2 instructions
Based on GH #807 and #808
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r-- | src/tests/tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp index 2252cb221..1886aa122 100644 --- a/src/tests/tests.cpp +++ b/src/tests/tests.cpp @@ -885,6 +885,8 @@ std::vector<Botan::CPUID::CPUID_bits> map_cpuid_string(const std::string& tok) return {Botan::CPUID::CPUID_CLMUL_BIT}; if(tok == "avx2") return {Botan::CPUID::CPUID_AVX2_BIT}; + if(tok == "sha") + return {Botan::CPUID::CPUID_SHA_BIT}; #endif #if defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY) |