diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-18 23:01:33 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-18 23:01:33 -0500 |
commit | fa99ece0c5819823fcd82c6c59bdb11f5a203b65 (patch) | |
tree | 19ec8663b077048fdb2289a8edcaa3db5df483a5 /poly1305.cpp | |
parent | ba00b9e46be65b7cae07b918b811f35270de5fd8 (diff) | |
download | cryptopp-git-fa99ece0c5819823fcd82c6c59bdb11f5a203b65.tar.gz |
Add call to ThrowIfInvalidTruncatedSize in SipHash Final
Diffstat (limited to 'poly1305.cpp')
-rw-r--r-- | poly1305.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poly1305.cpp b/poly1305.cpp index e79cf386..0473dc5f 100644 --- a/poly1305.cpp +++ b/poly1305.cpp @@ -165,6 +165,7 @@ void Poly1305_Base<T>::HashBlocks(const byte *input, size_t length, word32 padbi template <class T>
void Poly1305_Base<T>::TruncatedFinal(byte *mac, size_t size)
{
+ CRYPTOPP_ASSERT(mac); // Pointer is valid
CRYPTOPP_ASSERT(!m_used); // Nonce is fresh
ThrowIfInvalidTruncatedSize(size);
|