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/s2k/pbkdf1 | |
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/s2k/pbkdf1')
-rw-r--r-- | src/s2k/pbkdf1/pbkdf1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s2k/pbkdf1/pbkdf1.cpp b/src/s2k/pbkdf1/pbkdf1.cpp index 04e3aa453..fcc5b9a97 100644 --- a/src/s2k/pbkdf1/pbkdf1.cpp +++ b/src/s2k/pbkdf1/pbkdf1.cpp @@ -18,10 +18,10 @@ OctetString PKCS5_PBKDF1::derive(u32bit key_len, u32bit iterations) const { if(iterations == 0) - throw Invalid_Argument("PKCS#5 PBKDF1: Invalid iteration count"); + throw Invalid_Argument("PKCS5_PBKDF1: Invalid iteration count"); if(key_len > hash->OUTPUT_LENGTH) - throw Exception("PKCS#5 PBKDF1: Requested output length too long"); + throw Invalid_Argument("PKCS5_PBKDF1: Requested output length too long"); hash->update(passphrase); hash->update(salt, salt_size); |