Fix SHAKE compile error with old GCC (GH #818)

pull/826/head
Jeffrey Walton 2019-03-18 08:06:48 -04:00
parent 0d17eea82c
commit fc3b16e3a3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ public:
/// requires the output size in advance because the algoirthm uses /// requires the output size in advance because the algoirthm uses
/// output size as a parameter to the hash function. /// output size as a parameter to the hash function.
/// \since Crypto++ 8.1 /// \since Crypto++ 8.1
SHAKE128(unsigned int outputSize) : SHAKE_Final(outputSize) {} SHAKE128(unsigned int outputSize) : SHAKE_Final<128>(outputSize) {}
}; };
/// \brief SHAKE256 message digest /// \brief SHAKE256 message digest
@ -155,7 +155,7 @@ public:
/// requires the output size in advance because the algoirthm uses /// requires the output size in advance because the algoirthm uses
/// output size as a parameter to the hash function. /// output size as a parameter to the hash function.
/// \since Crypto++ 8.1 /// \since Crypto++ 8.1
SHAKE256(unsigned int outputSize) : SHAKE_Final(outputSize) {} SHAKE256(unsigned int outputSize) : SHAKE_Final<256>(outputSize) {}
}; };
NAMESPACE_END NAMESPACE_END