diff options
author | weidai <weidai11@users.noreply.github.com> | 2009-03-03 03:28:39 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2009-03-03 03:28:39 +0000 |
commit | 8565900724e0cf4cf60ceeea62d97ff66763d477 (patch) | |
tree | bbbd178df43bdc71503320cd87f5ec0c84c9d494 /authenc.cpp | |
parent | 7d88bbd9edd5a084b34be61a933789412821db0d (diff) | |
download | cryptopp-git-8565900724e0cf4cf60ceeea62d97ff66763d477.tar.gz |
tweaks/fixes for 5.6
Diffstat (limited to 'authenc.cpp')
-rw-r--r-- | authenc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/authenc.cpp b/authenc.cpp index c9c22e33..e74cd3f8 100644 --- a/authenc.cpp +++ b/authenc.cpp @@ -104,7 +104,7 @@ void AuthenticatedSymmetricCipherBase::Update(const byte *input, size_t length) void AuthenticatedSymmetricCipherBase::ProcessData(byte *outString, const byte *inString, size_t length)
{
m_totalMessageLength += length;
- if (m_totalMessageLength > MaxMessageLength())
+ if (m_state >= State_IVSet && m_totalMessageLength > MaxMessageLength())
throw InvalidArgument(AlgorithmName() + ": message length exceeds maximum");
reswitch:
|