diff options
author | Daniel Neus <[email protected]> | 2016-02-08 21:01:11 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-02-08 21:07:18 +0100 |
commit | 4242b7593b5aae2b2d1483fcc7ff002c1deeb956 (patch) | |
tree | fcaaab2bf7d050852e90b6694813fdd3b6551786 /src/lib/pbkdf | |
parent | 9102d33dbd35e36d385ad813220446384a214030 (diff) |
V816 It is more efficient to catch exception by reference rather than by value. asn1_time.cpp 159
Diffstat (limited to 'src/lib/pbkdf')
-rw-r--r-- | src/lib/pbkdf/pbkdf2/pbkdf2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp index 94c587f05..5a8f529c6 100644 --- a/src/lib/pbkdf/pbkdf2/pbkdf2.cpp +++ b/src/lib/pbkdf/pbkdf2/pbkdf2.cpp @@ -40,7 +40,7 @@ pbkdf2(MessageAuthenticationCode& prf, { prf.set_key(reinterpret_cast<const byte*>(passphrase.data()), passphrase.size()); } - catch(Invalid_Key_Length) + catch(Invalid_Key_Length&) { throw Exception("PBKDF2 with " + prf.name() + " cannot accept passphrases of length " + |