diff options
Diffstat (limited to 'src/lib/modes/aead/ccm/ccm.cpp')
-rw-r--r-- | src/lib/modes/aead/ccm/ccm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/modes/aead/ccm/ccm.cpp b/src/lib/modes/aead/ccm/ccm.cpp index f630dc39a..effe3a1ff 100644 --- a/src/lib/modes/aead/ccm/ccm.cpp +++ b/src/lib/modes/aead/ccm/ccm.cpp @@ -263,7 +263,7 @@ void CCM_Decryption::finish(secure_vector<uint8_t>& buffer, size_t offset) T ^= S0; if(!constant_time_compare(T.data(), buf_end, tag_size())) - throw Integrity_Failure("CCM tag check failed"); + throw Invalid_Authentication_Tag("CCM tag check failed"); buffer.resize(buffer.size() - tag_size()); } |