cryptonite/Crypto/KDF
Luke Taylor d27d464627 Fix cost parsing for bcrypt
The tens value was wrong for values of 20+, as reported in #230.
It should be 10*costTens not 10^costTens. This wasn't detected because
the values are the same when costTens is 1, and using high cost values
is rare with bcrypt because of the performance hit.

Also added a simple hash and validate test since the KAT tests only do
validation. This doesn't cover this bug since the cost value is too
high to include in the test. It allows similar issues to be tested
locally though.
2018-04-17 13:51:04 +01:00
..
Argon2.hs typo in documentation 2017-09-18 10:32:21 +01:00
BCrypt.hs Fix cost parsing for bcrypt 2018-04-17 13:51:04 +01:00
HKDF.hs making PRK an instance of ByteArrayAccess and removing fromPRK/toPRK. 2016-11-30 15:10:48 +09:00
PBKDF2.hs add fastpbkdf2 with sha512 2017-02-11 14:08:27 +00:00
Scrypt.hs Fix buffer length in scrypt 2016-06-13 21:08:06 +01:00