aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/gnump/gnump_pk.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded includeslloyd2010-03-151-12/+0
|
* Deconstify PK_Ops. It's quite reasonable that some op will want tolloyd2010-03-091-9/+9
| | | | | | | | | | | | | precompute only as needed, or will want to access some other expensive resource or etc. Change how the secret for generating blinding is done in cases where a PRNG isn't available. Use the operations public op to hide the secret, for instance the seed for a DH blinding variable is 2^x mod p. Make use of being able to mutate internal structures in the RW signer, since that does have access to a PRNG, so use it to initialize the blinder on first call to sign().
* On GMP 5.0 and later, use mpz_powm_sec, which is a version of modularlloyd2010-03-051-0/+6
| | | | exponentiation that has countermeasures against side-channel attacks.
* Add GMP PK filelloyd2010-03-051-0/+344