cryptonite/Crypto
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
..
Cipher Use pattern matching 2018-02-04 14:35:43 +01:00
ConstructHash Various documentation copy editing 2017-11-18 14:27:44 -05:00
Data Various documentation copy editing 2017-11-18 14:27:44 -05:00
ECC Merge pull request #202 from ocheron/ed25519-arith-negate 2017-12-17 18:12:50 +00:00
Error remove dependency on foundation and moving to basement 2017-11-30 12:08:08 +00:00
Hash Add Read instance for Digest type 2018-02-11 09:15:05 +01:00
Internal Various documentation copy editing 2017-11-18 14:27:44 -05:00
KDF Fix cost parsing for bcrypt 2018-04-17 13:51:04 +01:00
MAC Various documentation copy editing 2017-11-18 14:27:44 -05:00
Math Various documentation copy editing 2017-11-18 14:27:44 -05:00
Number fix spelling of "exponent" 2018-04-05 21:44:40 -04:00
PubKey fix spelling of "exponent" 2018-04-05 21:44:40 -04:00
Random withDev: Close the FD on exception 2017-11-30 10:30:29 +03:00
ECC.hs Merge pull request #202 from ocheron/ed25519-arith-negate 2017-12-17 18:12:50 +00:00
Error.hs add crypto errors standard enumeration and some helper. 2015-04-07 10:56:38 +01:00
Hash.hs Hash: use Block instead of UArray to reduce memory usage 2018-02-04 23:06:02 +00:00
OTP.hs Drop use of 'time' library from OTP implementation 2016-04-11 17:52:59 +01:00
Random.hs [ChaCha] only required byteArrayAccess and add a way to convert from binary 2017-07-07 17:32:09 +01:00
Tutorial.hs Add Crypto.Hash examples to tutorial 2017-08-22 20:39:27 +02:00