From 7515b4d6615ebc2840065ca625e32d2c0699dec7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Nov 2018 22:03:26 -0500 Subject: [PATCH] Fix SIMON64 and SPECK64 providers --- simon.cpp | 4 ++++ speck.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/simon.cpp b/simon.cpp index 0e777306..a2456c1c 100644 --- a/simon.cpp +++ b/simon.cpp @@ -263,6 +263,10 @@ std::string SIMON64::Base::AlgorithmProvider() const if (HasNEON()) return "NEON"; # endif +# if (CRYPTOPP_POWER7_AVAILABLE) + if (HasPower7()) + return "Power7"; +# endif # if (CRYPTOPP_ALTIVEC_AVAILABLE) if (HasAltivec()) return "Altivec"; diff --git a/speck.cpp b/speck.cpp index 7f6eb31b..61fac2cf 100644 --- a/speck.cpp +++ b/speck.cpp @@ -235,6 +235,10 @@ std::string SPECK64::Base::AlgorithmProvider() const if (HasNEON()) return "NEON"; # endif +# if (CRYPTOPP_POWER7_AVAILABLE) + if (HasPower7()) + return "Power7"; +# endif # if (CRYPTOPP_ALTIVEC_AVAILABLE) if (HasAltivec()) return "Altivec";