Commit Graph

10 Commits

Author SHA1 Message Date
Olivier Chéron
00221a494c Ignore stack.yaml.lock 2019-07-28 08:46:18 +02:00
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
Luke Taylor
b741ab9ca0 Add .stack-work to .gitignore 2016-07-27 17:45:37 +02:00
Vincent Hanquez
b354cc3d82 [bench] ignore binaries 2015-05-02 05:43:06 +01:00
Vincent Hanquez
edc75500d3 ignore benchs binary 2015-05-01 09:26:42 +01:00
Vincent Hanquez
1efa712dc5 add QA "script". for now doesn't do anything except listing extensions 2015-04-03 08:19:48 +01:00
Vincent Hanquez
88ff52a10d add sublime-project file 2015-04-03 07:41:43 +01:00
Vincent Hanquez
7a2f4244f9 ignore gen/Crypto 2015-04-03 07:33:16 +01:00
Vincent Hanquez
9d0b965425 add gen/Gen in .gitignore 2015-02-08 12:04:47 +00:00
Vincent Hanquez
fb85f8639f initial commit. 2014-07-04 14:58:01 +01:00