cryptonite/Crypto
Colin Atkinson 0cec622ddf Fix generate(Safe)Prime to guarantee prime size
Add check for size in generatePrime

Add size test in generateSafePrime

Require only that top bit is set, instead of top 2

This is the general standard, see e.g. OpenSSL

Add an error for too few bits being supplied to prime generator, and add documentation

Add some documentation and require highest two bits set

Simplify return syntax in generatePrime and generateSafePrime

Switch exponent to bit-shift for small performance boost
2017-01-19 00:10:50 -05:00
..
Cipher Add key length validation to several AES Ciphers. 2016-12-06 22:06:57 -05: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
ECC/Simple fix proxy 2016-12-02 21:07:13 +00:00
Error Fix generate(Safe)Prime to guarantee prime size 2017-01-19 00:10:50 -05:00
Hash Improve context memory usage of Keccak and SHA3 2016-03-26 10:29:33 +00:00
Internal add internal proxy type to create witnesses 2016-12-02 15:00:05 +00:00
KDF making PRK an instance of ByteArrayAccess and removing fromPRK/toPRK. 2016-11-30 15:10:48 +09: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 Fix generate(Safe)Prime to guarantee prime size 2017-01-19 00:10:50 -05:00
PubKey add support For Ed448 in Crypto.ECC. fix #121 2016-12-09 06:42:50 +00:00
Random fix documentation typo 2016-05-05 19:51:22 +03:00
ECC.hs add support For Ed448 in Crypto.ECC. fix #121 2016-12-09 06:42:50 +00: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
Tutorial.hs Just adding an example. Inspired by the Turtle doc 2016-04-28 10:10:10 +02:00