aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pbkdf/pbkdf2/pbkdf2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pbkdf/pbkdf2/pbkdf2.cpp')
-rw-r--r--src/lib/pbkdf/pbkdf2/pbkdf2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp
index c1ac2c534..30cf7cbdf 100644
--- a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp
+++ b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp
@@ -42,7 +42,7 @@ pbkdf2(MessageAuthenticationCode& prf,
}
catch(Invalid_Key_Length)
{
- throw std::runtime_error("PBKDF2 with " + prf.name() +
+ throw Exception("PBKDF2 with " + prf.name() +
" cannot accept passphrases of length " +
std::to_string(passphrase.size()));
}