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: