Commit Graph

574 Commits

Author SHA1 Message Date
Vincent Hanquez
453e9a6f35 [number] internal serialize, unconditionally zero the buffer. 2015-06-01 13:02:53 +01:00
Vincent Hanquez
6028e95805 [number] cleanup 2015-06-01 11:50:24 +01:00
Vincent Hanquez
69723be05c [tests] add the reverse of the previous number kat test 2015-06-01 10:46:59 +01:00
Vincent Hanquez
360f4f51dc [tests] add some vectors for i2ospOf_ 2015-06-01 10:41:42 +01:00
Vincent Hanquez
bafde1f23d update CHANGELOG 2015-06-01 07:52:55 +01:00
Vincent Hanquez
f63a3c6025 [p256] fix all the bugs found by the now useful P256 test suite 2015-06-01 07:48:31 +01:00
Vincent Hanquez
2c112b8877 [tests] generate smaller number in one of the case 2015-06-01 07:47:40 +01:00
Vincent Hanquez
d873564c54 [number] split the serialization to support a more bit banging direct approach 2015-06-01 05:59:54 +01:00
Vincent Hanquez
e9c812e4fd [error] make CryptoFailable an instance of Show and Eq if possible 2015-06-01 05:59:25 +01:00
Vincent Hanquez
1d383a3d12 [ECC] add a simple property test for point addition 2015-06-01 05:59:08 +01:00
Vincent Hanquez
1634c6bbb5 [tests] add missing extension related to previous commit 2015-06-01 05:58:43 +01:00
Vincent Hanquez
df5ed2a4e9 [tests] add a more elaborate report testing for property checks 2015-06-01 05:58:32 +01:00
Vincent Hanquez
f79081670c [tests] add better range integer generation. by default the number generated are fairly small. 2015-06-01 05:58:15 +01:00
Vincent Hanquez
3eda859c8d [test] add marshalling tests for numbers 2015-06-01 05:57:09 +01:00
Vincent Hanquez
4edb580cda [P256] add warning for non constant time operation 2015-05-30 10:38:59 +01:00
Vincent Hanquez
e2c1b82234 [tests] add first P256 test 2015-05-30 10:38:39 +01:00
Vincent Hanquez
b9e6bff690 fix a bug in serialization 2015-05-30 10:37:24 +01:00
Vincent Hanquez
78fa0c3650 [P256] implement missing function, and remove un-implementable one.
remove temporary removal, and properly fixes #1
2015-05-29 15:47:25 +01:00
Vincent Hanquez
ac67e0d8fb Merge branch 'master' of https://github.com/vincenthz/cryptonite 2015-05-26 22:09:49 +01:00
Vincent Hanquez
e413290d8f [p256] temporary remove missing functions. fix #1 2015-05-26 22:09:12 +01:00
Vincent Hanquez
ecab33beef Merge pull request #3 from NicolasDP/master
add Ord instance on Digest
2015-05-26 21:54:45 +01:00
Nicolas DI PRIMA
57c814f20b add Ord instance on Digest 2015-05-26 19:10:26 +01:00
Vincent Hanquez
3e007eaff7 update CHANGELOG 2015-05-25 09:16:26 +01:00
Vincent Hanquez
73c5d2145e [random] fix entropy modules on windows 64 bits. 2015-05-25 07:44:15 +01:00
Vincent Hanquez
79efec7832 bump version to 0.1 2015-05-23 18:04:42 +01:00
Vincent Hanquez
0e048b77c4 [number] correct tweak function to mask things properly 2015-05-23 17:09:07 +01:00
Vincent Hanquez
e14d9cafc9 [number] add debugging in case of error 2015-05-23 16:28:50 +01:00
Vincent Hanquez
d0cb713ccb [tests] only generate prime > 48 bits 2015-05-23 16:22:58 +01:00
Vincent Hanquez
d9913a81f8 [tests] fix generate prime test to only start prime generation above 32 bits 2015-05-23 16:06:02 +01:00
Vincent Hanquez
e989d2a404 [tests] add a test for prime number 2015-05-23 15:55:05 +01:00
Vincent Hanquez
bc4a55ff74 [number] further cleanup random generation 2015-05-23 13:44:26 +01:00
Vincent Hanquez
c0e50547ad [number] remove the need for a random generator for testing primality
a DRG is implicitely created when calling the non gmp primality test
2015-05-23 12:55:29 +01:00
Vincent Hanquez
ed48246740 [random] Just export the type of MonadPseudoRandom 2015-05-23 12:30:52 +01:00
Vincent Hanquez
23b5146f0f [number] remove unnecessary random number generator 2015-05-23 12:02:05 +01:00
Vincent Hanquez
2153e5690f [number] generate number with bounds more effectively 2015-05-23 11:59:10 +01:00
Vincent Hanquez
a4baf9383b [test] add random number generation tests 2015-05-23 11:58:57 +01:00
Vincent Hanquez
ca2ec5a03d [random] export MonadPseudoRandom 2015-05-23 11:58:36 +01:00
Vincent Hanquez
05e0e1a587 [number] add helpers to get bits size ond bytes size
the later is already available as 'lengthBytes' in Serialize module
2015-05-23 09:16:36 +01:00
Vincent Hanquez
cddac096cd [number] rename generate into generateParams 2015-05-23 09:15:42 +01:00
Vincent Hanquez
27dacbfb21 add gmpSizeInBits 2015-05-23 09:15:15 +01:00
Vincent Hanquez
efedb38570 [number] add a new routine to generate random number 2015-05-22 21:36:13 +01:00
Vincent Hanquez
2b0cdcfd3c add missing modules for tests 2015-05-22 18:43:48 +01:00
Vincent Hanquez
a0009bf713 [hash] remove redundant module 2015-05-22 18:43:35 +01:00
Vincent Hanquez
f5f05e34f8 add CHANGELOG 2015-05-22 18:43:22 +01:00
Vincent Hanquez
a995f09173 improve README 2015-05-22 18:35:58 +01:00
Vincent Hanquez
8eaaa06e1e add optional support for deepseq 2015-05-22 18:35:46 +01:00
Vincent Hanquez
c78e9472b9 improve cabal description 2015-05-22 18:35:27 +01:00
Vincent Hanquez
02956f9ef0 [KDF] move PBKDF2 and Scrypt to not be pinned to ByteString 2015-05-22 15:19:42 +01:00
Vincent Hanquez
1dacb7fa94 [Salsa] opaquify the state just like for hash functions
add more tests
2015-05-22 14:04:54 +01:00
Vincent Hanquez
9a69c61e84 [ChaCha] opaquify the state to be handled directly in the C level just like the hash function
increase the number of tests
2015-05-22 14:04:27 +01:00