aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/serpent/serpent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/serpent/serpent.cpp')
-rw-r--r--src/lib/block/serpent/serpent.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/block/serpent/serpent.cpp b/src/lib/block/serpent/serpent.cpp
index 1e3699914..f2a6035f1 100644
--- a/src/lib/block/serpent/serpent.cpp
+++ b/src/lib/block/serpent/serpent.cpp
@@ -231,4 +231,16 @@ void Serpent::clear()
zap(m_round_key);
}
+const char* Serpent::provider() const
+ {
+#if defined(BOTAN_HAS_SERPENT_SIMD)
+ if(CPUID::has_simd_32())
+ {
+ return "simd";
+ }
+#endif
+
+ return "base";
+ }
+
}