From fc3b16e3a39ddd782a9787d7cd904b93728966f4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 18 Mar 2019 08:06:48 -0400 Subject: Fix SHAKE compile error with old GCC (GH #818) --- shake.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shake.h') diff --git a/shake.h b/shake.h index a615b573..37cb8274 100644 --- a/shake.h +++ b/shake.h @@ -125,7 +125,7 @@ public: /// requires the output size in advance because the algoirthm uses /// output size as a parameter to the hash function. /// \since Crypto++ 8.1 - SHAKE128(unsigned int outputSize) : SHAKE_Final(outputSize) {} + SHAKE128(unsigned int outputSize) : SHAKE_Final<128>(outputSize) {} }; /// \brief SHAKE256 message digest @@ -155,7 +155,7 @@ public: /// requires the output size in advance because the algoirthm uses /// output size as a parameter to the hash function. /// \since Crypto++ 8.1 - SHAKE256(unsigned int outputSize) : SHAKE_Final(outputSize) {} + SHAKE256(unsigned int outputSize) : SHAKE_Final<256>(outputSize) {} }; NAMESPACE_END -- cgit v1.2.1