Fix AlgorithmName for SHA3-based classes

This commit is contained in:
Jeffrey Walton 2019-02-13 14:22:43 -05:00
parent 8dd39d03ae
commit e8bb20d84f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class SHA3_256;
class SHA3_384; class SHA3_384;
class SHA3_512; class SHA3_512;
class SHAKE128;
class SHAKE256;
class Tiger; class Tiger;
class RIPEMD128; class RIPEMD128;
class RIPEMD160; class RIPEMD160;

View File

@ -88,6 +88,8 @@ public:
/// block size called rate expressed as <tt>r</tt>. /// block size called rate expressed as <tt>r</tt>.
unsigned int BlockSize() const { return BLOCKSIZE; } unsigned int BlockSize() const { return BLOCKSIZE; }
std::string AlgorithmName() const { return StaticAlgorithmName(); }
private: private:
#if !defined(__BORLANDC__) #if !defined(__BORLANDC__)
// ensure there was no underflow in the math // ensure there was no underflow in the math

3
sha3.h
View File

@ -13,6 +13,7 @@
#include "cryptlib.h" #include "cryptlib.h"
#include "secblock.h" #include "secblock.h"
#include "misc.h"
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
@ -75,6 +76,8 @@ public:
/// block size called rate expressed as <tt>r</tt>. /// block size called rate expressed as <tt>r</tt>.
unsigned int BlockSize() const { return BLOCKSIZE; } unsigned int BlockSize() const { return BLOCKSIZE; }
std::string AlgorithmName() const { return StaticAlgorithmName(); }
private: private:
#if !defined(__BORLANDC__) #if !defined(__BORLANDC__)
// ensure there was no underflow in the math // ensure there was no underflow in the math

View File

@ -82,6 +82,8 @@ public:
/// to block size called rate expressed as <tt>r</tt>. /// to block size called rate expressed as <tt>r</tt>.
unsigned int BlockSize() const { return BLOCKSIZE; } unsigned int BlockSize() const { return BLOCKSIZE; }
std::string AlgorithmName() const { return StaticAlgorithmName(); }
private: private:
#if !defined(__BORLANDC__) #if !defined(__BORLANDC__)
// ensure there was no underflow in the math // ensure there was no underflow in the math