Changes needed for RSA key generation (#30)
Co-authored-by: neelimap <neelimaps@neominds.in> Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/30 Co-authored-by: Neelima P S <neelima.ps@neominds.in> Co-committed-by: Neelima P S <neelima.ps@neominds.in>
This commit is contained in:
committed by
neelimap
co-authored by
neelimap
parent
0d0e6f73c4
commit
67cbb5af87
@@ -708,6 +708,8 @@ int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
|
||||
if (!CRYPTO_atomic_or(&optsdone, opts, &tmp, optsdone_lock))
|
||||
return 0;
|
||||
|
||||
RAND_set_rand_method(RAND_OpenSSL());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -820,9 +822,7 @@ int ipcrypto_init_internal(SEM_ID semId)
|
||||
{
|
||||
init = 1;
|
||||
|
||||
#ifndef _WRS_CONFIG_OPENSSL_FIPSMODULE
|
||||
RAND_set_rand_method(vxRandLibMeth());
|
||||
#endif
|
||||
|
||||
|
||||
OpenSSL_add_all_algorithms();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user