Fix AlgorithmName() for 128-bit block SIMON and SPECK

pull/548/head
Jeffrey Walton 2017-11-21 06:40:02 -05:00
parent 0fab2a188f
commit c14e054ed8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: