cryptonite/tests
Luke Taylor a8c80e9531 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-08-22 13:41:42 +02:00
..
KAT_AES [tests] expands tabs, and remove redundant binding 2015-08-30 07:49:30 +01:00
KAT_PubKey [tests] expands tabs, and remove redundant binding 2015-08-30 07:49:30 +01:00
BCrypt.hs Add a check for salt length in bcrypt function 2016-08-22 13:41:42 +02:00
BlockCipher.hs Minor haddock fixes 2015-06-07 13:26:26 +02:00
ChaCha.hs [ChaCha] opaquify the state to be handled directly in the C level just like the hash function 2015-05-22 14:04:27 +01:00
ChaChaPoly1305.hs Fix endianness of incrementNonce function for ChaChaPoly1305 2015-11-16 12:59:01 -05:00
Hash.hs [blake2] uncapitalize the modules and types as it's not abbreviation. 2015-11-19 14:24:54 +00:00
Imports.hs fix warnings 2015-04-05 12:19:26 +01:00
KAT_AES.hs [AES] add KAT and properties tests for AES128,192,256 2015-04-18 07:33:34 +01:00
KAT_AFIS.hs [tests] more refactoring 2015-05-12 14:36:20 +01:00
KAT_Blowfish.hs fix some warnings 2015-04-08 22:30:01 +01:00
KAT_Camellia.hs remove tabs 2015-04-08 22:44:28 +01:00
KAT_CMAC.hs [CMAC] drop the accessor in favor of just using the ByteArrayAccess constraint 2016-04-09 10:31:13 +01:00
KAT_Curve25519.hs [Curve25519] use the Crypto.Error api instead of an Either type for parsing types 2015-11-02 11:17:19 +00:00
KAT_DES.hs fix DES tests 2015-04-08 20:43:31 +01:00
KAT_Ed448.hs [Ed448] Fixed incorrect base point 2016-08-22 13:05:44 +02:00
KAT_Ed25519.hs [Ed25519] Add haskell bindings and tests 2015-04-19 09:24:37 +01:00
KAT_HKDF.hs Add support for HKDF (RFC 5869) 2015-12-28 14:32:07 +00:00
KAT_HMAC.hs Fix typo: Kekkak -> Keccak 2015-10-27 14:56:42 +00:00
KAT_PBKDF2.hs [KDF] move PBKDF2 and Scrypt to not be pinned to ByteString 2015-05-22 15:19:42 +01:00
KAT_PubKey.hs [tests] add first P256 test 2015-05-30 10:38:39 +01:00
KAT_RC4.hs add RC4 2014-07-21 10:58:42 +01:00
KAT_Scrypt.hs [KDF] move PBKDF2 and Scrypt to not be pinned to ByteString 2015-05-22 15:19:42 +01:00
KAT_TripleDES.hs add missing KAT file 2015-04-09 19:59:53 +01:00
Number.hs [tests] fix last number test problem 2015-08-27 15:42:08 +01:00
Padding.hs [Padding] add PKCS5/PKCS7 padding/unpadding methods 2015-08-18 12:03:05 +01:00
Poly1305.hs [Poly1305] make initialize explicitely failable 2015-07-29 09:49:49 +01:00
Salsa.hs [Salsa] opaquify the state just like for hash functions 2015-05-22 14:04:54 +01:00
Tests.hs Add test-suite of CMAC. 2016-04-01 19:26:16 +09:00
Utils.hs [tests] make sure we don't use 0 for number parameters 2015-08-27 15:03:07 +01:00