commit a9a40fc64635cfb924279cae3c42e6946e89718c Author: tcely Date: Wed Mar 6 07:14:32 2019 -0500 fix protected Exception usage diff --git a/src/lib/crypto/Botan_ecb.cpp b/src/lib/crypto/Botan_ecb.cpp index f27276e..6947aab 100644 --- a/src/lib/crypto/Botan_ecb.cpp +++ b/src/lib/crypto/Botan_ecb.cpp @@ -108,7 +108,7 @@ void ECB_Encryption::finish(secure_vector& buffer, size_t offset) padding().add_padding(buffer, bytes_in_final_block, BS); if(buffer.size() % BS) - throw Exception("Did not pad to full block size in " + name()); + throw Invalid_State("Did not pad to full block size in " + name()); update(buffer, offset); }