From c14e054ed80cabb5e773446ab173105e68d3c9b7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 21 Nov 2017 06:40:02 -0500 Subject: [PATCH] Fix AlgorithmName() for 128-bit block SIMON and SPECK --- simon.h | 2 +- speck.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simon.h b/simon.h index c94df6d7..606c3b74 100644 --- a/simon.h +++ b/simon.h @@ -115,7 +115,7 @@ public: { public: std::string AlgorithmName() const { - return StaticAlgorithmName() + "(" + IntToString(sizeof(word64)*8) + ")"; + return StaticAlgorithmName() + "(" + IntToString(m_kwords*sizeof(word64)*8) + ")"; } protected: diff --git a/speck.h b/speck.h index b4092689..68074957 100644 --- a/speck.h +++ b/speck.h @@ -115,7 +115,7 @@ public: { public: std::string AlgorithmName() const { - return StaticAlgorithmName() + "(" + IntToString(sizeof(word64)*8) + ")"; + return StaticAlgorithmName() + "(" + IntToString(m_kwords*sizeof(word64)*8) + ")"; } protected: