aboutsummaryrefslogtreecommitdiffstats
path: root/src/emsa1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emsa1.cpp')
-rw-r--r--src/emsa1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emsa1.cpp b/src/emsa1.cpp
index 047d6bdbf..e4704ee3d 100644
--- a/src/emsa1.cpp
+++ b/src/emsa1.cpp
@@ -31,7 +31,7 @@ SecureVector<byte> EMSA1::encoding_of(const MemoryRegion<byte>& msg,
u32bit output_bits)
{
if(msg.size() != hash->OUTPUT_LENGTH)
- throw Invalid_Argument("EMSA1::encoding_of: Invalid size for input");
+ throw Encoding_Error("EMSA1::encoding_of: Invalid size for input");
if(8*msg.size() <= output_bits)
return msg;