aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-10 10:35:57 -0400
committerJack Lloyd <[email protected]>2018-09-10 10:35:57 -0400
commita9489b6e235784851a9a7c608c396cb661493dbb (patch)
tree703ee88f33352c2bac5f2c6fdcd7bb691c4f934d /src/lib/block
parent36ccdb28dacf78b91821dcf5167d425be25550d6 (diff)
Report if Serpent is using AVX2
Diffstat (limited to 'src/lib/block')
-rw-r--r--src/lib/block/serpent/serpent.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/block/serpent/serpent.cpp b/src/lib/block/serpent/serpent.cpp
index d9001d19f..7bdda0f9f 100644
--- a/src/lib/block/serpent/serpent.cpp
+++ b/src/lib/block/serpent/serpent.cpp
@@ -276,6 +276,13 @@ void Serpent::clear()
std::string Serpent::provider() const
{
+#if defined(BOTAN_HAS_SERPENT_AVX2)
+ if(CPUID::has_avx2())
+ {
+ return "avx2";
+ }
+#endif
+
#if defined(BOTAN_HAS_SERPENT_SIMD)
if(CPUID::has_simd_32())
{