diff options
author | lloyd <[email protected]> | 2013-04-04 14:33:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-04-04 14:33:28 +0000 |
commit | 1a9d22bd22653c2eeaed0d8098facacb39c80dc1 (patch) | |
tree | e8b3af5c4c05cc2fdc58f11d6abd1f6875a08a48 /src/block/blowfish | |
parent | 1f1b5ac0d8bf3646c72bd2cb0616fd1c06e21320 (diff) |
Change the default PKCS #8 PBKDF runtime from 200 to 300 milliseconds.
Round PBKDF1 and PBKDF2 time-based iterations to multiples of 10000
instead of 8192.
Update the password hashing docs a bit.
Diffstat (limited to 'src/block/blowfish')
-rw-r--r-- | src/block/blowfish/blowfish.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block/blowfish/blowfish.cpp b/src/block/blowfish/blowfish.cpp index c758a6a31..e93359141 100644 --- a/src/block/blowfish/blowfish.cpp +++ b/src/block/blowfish/blowfish.cpp @@ -127,7 +127,8 @@ void Blowfish::eks_key_schedule(const byte key[], size_t length, * time being. */ if(workfactor > 18) - throw std::invalid_argument("Requested Bcrypt work factor too large"); + throw std::invalid_argument("Requested Bcrypt work factor " + + std::to_string(workfactor) + " too large"); P.resize(18); std::copy(P_INIT, P_INIT + 18, P.begin()); |