mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Set randomness buffer pointer in get_entropy calls.
Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/4092)
This commit is contained in:
parent
cf37aaa335
commit
78632b6633
@ -143,6 +143,7 @@ size_t drbg_entropy_from_system(RAND_DRBG *drbg,
|
||||
memmove(rand_bytes.buff, &rand_bytes.buff[min_len], rand_bytes.curr);
|
||||
}
|
||||
CRYPTO_THREAD_unlock(rand_bytes.lock);
|
||||
*pout = drbg->randomness;
|
||||
return min_len;
|
||||
}
|
||||
|
||||
@ -163,6 +164,7 @@ size_t drbg_entropy_from_parent(RAND_DRBG *drbg,
|
||||
if (st == 0)
|
||||
return 0;
|
||||
drbg->filled = 1;
|
||||
*pout = drbg->randomness;
|
||||
return min_len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user