cryptonite/tests
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
..
ECC Add pointMulByCofactor and pointHasPrimeOrder 2017-12-17 11:56:33 +01:00
KAT_AES Improve types and indentation, fix typo 2018-02-03 19:05:20 +01:00
KAT_PubKey Add P256.pointNegate 2017-11-20 19:28:17 +01:00
Number Tests for Crypto.Number.F2m 2016-07-24 10:58:50 +02:00
BCrypt.hs Fix cost parsing for bcrypt 2018-04-17 13:51:04 +01:00
BlockCipher.hs Improve types and indentation, fix typo 2018-02-03 19:05:20 +01: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
ECC.hs Test ECC functions ecdh and ecdhRaw 2017-07-05 22:24:22 +02:00
Hash.hs add tests for the new digest sizes 2017-03-13 00:25:04 +00:00
Imports.hs fix warnings 2015-04-05 12:19:26 +01:00
KAT_AES.hs Improve types and indentation, fix typo 2018-02-03 19:05:20 +01:00
KAT_AFIS.hs [tests] more refactoring 2015-05-12 14:36:20 +01:00
KAT_Argon2.hs Argon2: add working hash function 2017-02-24 13:37:40 +00: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_CAST5.hs Add CAST5 aka CAST-128 2017-09-17 11:28:56 +02: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_Curve448.hs Use new module name Crypto.PubKey.Curve448 2017-01-19 20:26:25 +01:00
KAT_Curve25519.hs Test Curve25519.toPublic 2017-06-02 19:37:25 +02:00
KAT_DES.hs fix DES tests 2015-04-08 20:43:31 +01:00
KAT_Ed448.hs More EdDSA vectors from RFC 8032 2017-06-04 19:25:19 +02:00
KAT_Ed25519.hs More EdDSA vectors from RFC 8032 2017-06-04 19:25:19 +02:00
KAT_HKDF.hs Add support for HKDF (RFC 5869) 2015-12-28 14:32:07 +00:00
KAT_HMAC.hs Avoid warning with tasty-quickcheck-0.9.2 2018-02-04 15:27:45 +01:00
KAT_MiyaguchiPreneel.hs rename definitions which compute miyaguchi-preneel hash. 2016-06-08 01:13:23 +09:00
KAT_OTP.hs Add totpVerify function 2016-01-10 18:19:53 +00:00
KAT_PBKDF2.hs add tests for pbkdf2 sha512 for both haskell's and fast implementation 2017-02-11 14:08:28 +00: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
KAT_Twofish.hs Twofish 192 and 256 bit key support 2017-04-10 00:33:54 -04:00
Number.hs Update tests for new generate(Safe)Prime 2017-01-19 00:12:02 -05:00
Padding.hs fix unpad of zero-padding and add tests. 2016-06-08 22:57:35 +09: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 Rename to Edwards25519 2017-12-10 21:14:47 +01:00
Utils.hs [tests] make sure we don't use 0 for number parameters 2015-08-27 15:03:07 +01:00
XSalsa.hs Implement the XSalsa20 stream cipher 2016-10-09 15:25:31 +02:00