set up RNG for self-test (DSA needs it), and set default RSA public exponent

to 2**16 + 1
This commit is contained in:
mcgreer%netscape.com 2000-11-04 01:11:48 +00:00
parent d35236198f
commit 93f388db16

View File

@ -1531,6 +1531,8 @@ blapi_selftest(char **modesToTest, int numModesToTest,
char *mode;
int i, j, nummodes;
RNG_RNGInit();
RNG_SystemInfoForRNG();
PORT_Memset(&info, 0, sizeof(info));
info.repetitions = 1;
info.useseed = PR_TRUE;
@ -1628,6 +1630,7 @@ decrypt:
}
}
}
RNG_RNGShutdown();
return SECSuccess;
}
@ -1696,7 +1699,7 @@ int main(int argc, char **argv)
PORT_Memset(&info, 0, sizeof(info));
info.bufsize = 8;
info.keysize = DES_KEY_LENGTH;
info.rsapubexp = 17;
info.rsapubexp = 65537;
info.rounds = 10;
info.wordsize = 4;
infile=outfile=keyfile=pqgfile=ivfile=sigfile=seedfile=sigseedfile=NULL;