Closed tilenmarc closed 4 years ago
I spit the test to random and precomputed primes. As you will see, there is a nice way to do so in Go. I added a bit more comments to the code.
Nice one! I only have one additional minor comment - dDHTestParam looks somehow strange, perhaps it would be better having ddhTestParam?
This PR introduces the following:
NewSchemePrecomp
that chooses the Z_p group based on precomputed prime numbers and generators. This allows a fast scheme initialization for realistic parameters, i.e. prime numbers with bit length 2048 or more.NewSchemePrecomp
is used.readme.md
file that shows a grade for the code quality given by Codacy