Initialize random for verification key generation too
This commit is contained in:
parent
8d33413276
commit
44c909e6b4
2
srp.c
2
srp.c
@ -586,6 +586,8 @@ void srp_create_salted_verification_key( SRP_HashAlgorithm alg,
|
|||||||
if(!ng)
|
if(!ng)
|
||||||
goto cleanup_and_exit;
|
goto cleanup_and_exit;
|
||||||
|
|
||||||
|
init_random(); /* Only happens once */
|
||||||
|
|
||||||
if (*bytes_s == NULL) {
|
if (*bytes_s == NULL) {
|
||||||
*len_s = 16;
|
*len_s = 16;
|
||||||
if (RAND_BUFF_MAX - g_rand_idx < 16)
|
if (RAND_BUFF_MAX - g_rand_idx < 16)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user