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/cli | |
parent | 7873092f84bf61ac932330e0a17449c17897b91b (diff) |
Add support for Intel SHA-1/SHA-2 instructions
Based on GH #807 and #808
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/speed.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 30a01a934..58f12ef92 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -434,6 +434,8 @@ class Speed final : public Command Botan::CPUID::clear_cpuid_bit(Botan::CPUID::CPUID_AVX2_BIT); else if(cpuid_to_clear == "sse2") Botan::CPUID::clear_cpuid_bit(Botan::CPUID::CPUID_SSE2_BIT); + else if(cpuid_to_clear == "sha") + Botan::CPUID::clear_cpuid_bit(Botan::CPUID::CPUID_SHA_BIT); #endif } |