Fix MD2 AlgorithmName

This commit is contained in:
Jeffrey Walton 2021-04-08 07:53:41 -04:00
parent b72007386d
commit 2d8e468085
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

4
md2.h
View File

@ -20,12 +20,14 @@ namespace Weak1 {
class MD2 : public HashTransformation
{
public:
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "MD2";}
MD2();
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
unsigned int BlockSize() const {return BLOCKSIZE;}
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "MD2";}
std::string AlgorithmName() const {return StaticAlgorithmName();}
CRYPTOPP_CONSTANT(DIGESTSIZE = 16);
CRYPTOPP_CONSTANT(BLOCKSIZE = 16);