mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 16:12:22 +01:00
20 lines
706 B
Diff
20 lines
706 B
Diff
commit a9a40fc64635cfb924279cae3c42e6946e89718c
|
|
Author: tcely <tcely@users.noreply.github.com>
|
|
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<byte>& 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);
|
|
}
|