mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
set up RNG for self-test (DSA needs it), and set default RSA public exponent
to 2**16 + 1
This commit is contained in:
parent
d35236198f
commit
93f388db16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user