diff options
author | lloyd <[email protected]> | 2010-01-05 23:06:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-05 23:06:31 +0000 |
commit | 2837e915d82e439730624f15bfc8c820475c9d65 (patch) | |
tree | aeb1ec26572fb29c1bd60baab582699279201d71 /src/pk_pad | |
parent | 968a4250218d40f3da9eee8ff50432a3169605c6 (diff) |
Clean up exceptions. Remove some unused ones like Config_Error. Make
Invalid_Argument just a typedef for std::invalid_argument. Make
Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion
a public exception, and use it in other places where memory allocations
can fail.
Diffstat (limited to 'src/pk_pad')
-rw-r--r-- | src/pk_pad/eme1/eme1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pk_pad/eme1/eme1.cpp b/src/pk_pad/eme1/eme1.cpp index 13f68f8e4..d99ffaf58 100644 --- a/src/pk_pad/eme1/eme1.cpp +++ b/src/pk_pad/eme1/eme1.cpp @@ -21,7 +21,7 @@ SecureVector<byte> EME1::pad(const byte in[], u32bit in_length, key_length /= 8; if(in_length > key_length - 2*HASH_LENGTH - 1) - throw Exception("EME1: Input is too large"); + throw Invalid_Argument("EME1: Input is too large"); SecureVector<byte> out(key_length); |