From e8bb20d84fce116af601eb0a7393151b0e5f8288 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 13 Feb 2019 14:22:43 -0500 Subject: [PATCH] Fix AlgorithmName for SHA3-based classes --- hashfwd.h | 3 +++ keccak.h | 2 ++ sha3.h | 3 +++ shake.h | 2 ++ 4 files changed, 10 insertions(+) diff --git a/hashfwd.h b/hashfwd.h index 8e11013a..49c2b02a 100644 --- a/hashfwd.h +++ b/hashfwd.h @@ -20,6 +20,9 @@ class SHA3_256; class SHA3_384; class SHA3_512; +class SHAKE128; +class SHAKE256; + class Tiger; class RIPEMD128; class RIPEMD160; diff --git a/keccak.h b/keccak.h index bbc357b0..75410ba7 100644 --- a/keccak.h +++ b/keccak.h @@ -88,6 +88,8 @@ public: /// block size called rate expressed as r. unsigned int BlockSize() const { return BLOCKSIZE; } + std::string AlgorithmName() const { return StaticAlgorithmName(); } + private: #if !defined(__BORLANDC__) // ensure there was no underflow in the math diff --git a/sha3.h b/sha3.h index 34de9c78..ea412166 100644 --- a/sha3.h +++ b/sha3.h @@ -13,6 +13,7 @@ #include "cryptlib.h" #include "secblock.h" +#include "misc.h" NAMESPACE_BEGIN(CryptoPP) @@ -75,6 +76,8 @@ public: /// block size called rate expressed as r. unsigned int BlockSize() const { return BLOCKSIZE; } + std::string AlgorithmName() const { return StaticAlgorithmName(); } + private: #if !defined(__BORLANDC__) // ensure there was no underflow in the math diff --git a/shake.h b/shake.h index 409779f5..e775710c 100644 --- a/shake.h +++ b/shake.h @@ -82,6 +82,8 @@ public: /// to block size called rate expressed as r. unsigned int BlockSize() const { return BLOCKSIZE; } + std::string AlgorithmName() const { return StaticAlgorithmName(); } + private: #if !defined(__BORLANDC__) // ensure there was no underflow in the math