diff options
Diffstat (limited to 'src/lib/block/noekeon/noekeon.cpp')
-rw-r--r-- | src/lib/block/noekeon/noekeon.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/block/noekeon/noekeon.cpp b/src/lib/block/noekeon/noekeon.cpp index e8bd7b308..c82badd4c 100644 --- a/src/lib/block/noekeon/noekeon.cpp +++ b/src/lib/block/noekeon/noekeon.cpp @@ -73,6 +73,18 @@ inline void gamma(uint32_t& A0, uint32_t& A1, uint32_t& A2, uint32_t& A3) } +size_t Noekeon::parallelism() const + { +#if defined(BOTAN_HAS_NOEKEON_SIMD) + if(CPUID::has_simd_32()) + { + return 4; + } +#endif + + return 1; + } + std::string Noekeon::provider() const { #if defined(BOTAN_HAS_NOEKEON_SIMD) |