mcgreer%netscape.com 9ad702c579 Changes to RSA keygen:
* use mp_invmod instead of mp_xgcd.  nelsonb optimized mp_invmod for even moduli, and this will take advantage of it.
* Assure that p > q.
* Assure that n is actually keysizeInBits long by setting the two high-order bits of p and q during generation.  Previously, it was possible for n to be 1 bit short.


git-svn-id: svn://10.0.0.236/trunk@82101 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 16:52:31 +00:00
..
2000-10-31 16:52:31 +00:00
2000-05-09 01:30:38 +00:00