From a15531d10ce9ead07fa39177eeab62df811af604 Mon Sep 17 00:00:00 2001 From: "mcgreer%netscape.com" Date: Sat, 4 Nov 2000 01:11:48 +0000 Subject: [PATCH] set up RNG for self-test (DSA needs it), and set default RSA public exponent to 2**16 + 1 --- security/nss/cmd/bltest/blapitest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/security/nss/cmd/bltest/blapitest.c b/security/nss/cmd/bltest/blapitest.c index 4b1b9be5eed..92c0c2e43d1 100644 --- a/security/nss/cmd/bltest/blapitest.c +++ b/security/nss/cmd/bltest/blapitest.c @@ -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;