Fix bug 75770: RSA_NewKey returns an incomplete key. Reviewed by mcgreer

and nelsonb.


git-svn-id: svn://10.0.0.236/trunk@92111 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nicolson%netscape.com
2001-04-12 20:23:42 +00:00
parent 65831f917f
commit b706a3912a

View File

@@ -35,7 +35,7 @@
/*
* RSA key generation, public key op, private key op.
*
* $Id: rsa.c,v 1.24 2001-01-31 15:49:19 mcgreer%netscape.com Exp $
* $Id: rsa.c,v 1.25 2001-04-12 20:23:42 nicolson%netscape.com Exp $
*/
#include "secerr.h"
@@ -259,6 +259,7 @@ RSA_NewKey(int keySizeInBits, SECItem *publicExponent)
SECITEM_TO_MPINT(*publicExponent, &e);
kiter = 0;
do {
prerr = 0;
PORT_SetError(0);
CHECK_SEC_OK( generate_prime(&p, primeLen) );
CHECK_SEC_OK( generate_prime(&q, primeLen) );