Skip to content

Commit

Permalink
Fix SHAKE compile error with old GCC (GH #818)
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Mar 18, 2019
1 parent 0d17eea commit fc3b16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shake.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class SHAKE128 : public SHAKE_Final<128>
/// 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
Expand Down Expand Up @@ -155,7 +155,7 @@ class SHAKE256 : public SHAKE_Final<256>
/// 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
Expand Down

1 comment on commit fc3b16e

@noloader
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also see Issue 818.

Please sign in to comment.