Commit Graph

403 Commits

Author SHA1 Message Date
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
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
Vincent Hanquez
5d85834264 remove unnecessary extension 2015-05-21 14:51:23 +01:00
Vincent Hanquez
16839d3a43 [number] remove the ByteString from generation of high bits 2015-05-21 14:48:26 +01:00
Vincent Hanquez
7f11a66d50 [DSA] re-align imports 2015-05-21 14:46:45 +01:00
Vincent Hanquez
28958a6d03 [RSA] remove ByteString from Primitive module 2015-05-21 14:32:53 +01:00
Vincent Hanquez
c111dfeb8e [pubkey] remove bytestring from MaskGenFunction 2015-05-21 11:09:48 +01:00
Vincent Hanquez
22c1a1bb7f update memory to 0.2 minimum 2015-05-21 11:06:53 +01:00
Vincent Hanquez
ff736b47ca [cipher] use mconcat that force input to be the same as output 2015-05-21 11:06:41 +01:00
Vincent Hanquez
c7de32a6f6 [RSA] remove the need for bytestring in HashDescr and work towards more removal 2015-05-21 09:46:13 +01:00
Vincent Hanquez
8065c26c2d remove dangerous OverloadedStrings 2015-05-21 06:45:46 +01:00
Vincent Hanquez
dc34ce8289 [RSA] properly indent modules imports 2015-05-21 06:35:19 +01:00
Vincent Hanquez
94d0da9676 improve the README 2015-05-21 05:29:38 +01:00
Vincent Hanquez
d151597d09 [QA] define ARCH_X86 and add an extension exception for windows entropy module 2015-05-21 05:29:24 +01:00
Vincent Hanquez
4758df2c3a [entropy] missing CPP extension for windows entropy gather module 2015-05-21 05:28:50 +01:00
Vincent Hanquez
b39283f5f9 add proper cpp defines for architecture instead of using the usual system one 2015-05-21 05:28:27 +01:00
3noch
9c1d9695c5 support windows 64 bits 2015-05-20 09:11:33 +01:00
Vincent Hanquez
80b379c98d cleanup tests, and improve testing of hash algorithms 2015-05-20 07:14:05 +01:00
Vincent Hanquez
881d167cb5 more fixing up description and comments 2015-05-20 06:22:00 +01:00
Vincent Hanquez
92343f856a add comments and description 2015-05-20 06:07:31 +01:00
Vincent Hanquez
393b159d5f [hash] add haddock documentation 2015-05-19 11:51:18 +01:00
Vincent Hanquez
9794e2132b [hash] replace scrub by reset
reset make more sense as it leave the mutable context in a state where
it can be re-used by further update, whereas scrub doesn't.
2015-05-19 11:50:56 +01:00
Vincent Hanquez
987f9e7bb6 [internal] update to latest memory, and remove builtin support as memory is now available 2015-05-18 18:33:14 +01:00