diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-03-18 08:06:48 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-03-18 08:06:48 -0400 |
commit | fc3b16e3a39ddd782a9787d7cd904b93728966f4 (patch) | |
tree | ac295d9d0259b64473280b4ffaa7e401dc2e7ccd /shake.h | |
parent | 0d17eea82cbbfa386926c3c0ac1cb2c0d4da960e (diff) | |
download | cryptopp-git-fc3b16e3a39ddd782a9787d7cd904b93728966f4.tar.gz |
Fix SHAKE compile error with old GCC (GH #818)
Diffstat (limited to 'shake.h')
-rw-r--r-- | shake.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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
|