cryptonite/Crypto
Luke Taylor fb66c35f46 Add a check for salt length in bcrypt function
Raises an error (as the original doc claimed) if the salt is not the
required length of 16 bytes.

validatePasswordEither doesn't require separate checking since the hash
length as a whole is checked, implicitly ensuring the salt is the right
length. Therefore it shouldn't be possible to trigger the error by
calling this function.

Fixes #93.
2016-07-27 17:45:33 +02:00
..
Cipher Add a check for salt length in bcrypt function 2016-07-27 17:45:33 +02:00
ConstructHash apply zero-padding to miyaguchi-preneel. 2016-06-08 22:26:14 +09:00
Data fix unpad of zero-padding and add tests. 2016-06-08 22:57:35 +09:00
Error [Poly1305] Add a way to create AuthTag from ByteArray. 2015-11-05 15:02:50 +00:00
Hash Improve context memory usage of Keccak and SHA3 2016-03-26 10:29:33 +00:00
Internal [endianess] fix some issues on non supported arches 2015-08-28 17:10:27 +01:00
KDF Fix buffer length in scrypt 2016-06-13 21:08:06 +01:00
MAC [CMAC] drop the accessor in favor of just using the ByteArrayAccess constraint 2016-04-09 10:31:13 +01:00
Math merge crypto-numbers minus all the random parts 2015-02-09 05:47:11 +00:00
Number removed bounded names for useless parameter 2016-02-04 07:28:42 +00:00
PubKey [Ed448] Fixed incorrect base point 2016-04-18 13:25:11 -07:00
Random fix documentation typo 2016-05-05 19:51:22 +03:00
Error.hs add crypto errors standard enumeration and some helper. 2015-04-07 10:56:38 +01:00
Hash.hs add comments and description 2015-05-20 06:07:31 +01:00
Random.hs [random] add a seed capability with export/import from integer. 2016-04-09 08:33:37 +01:00