mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Initialize array to zero(s)
This commit is contained in:
@ -314,6 +314,8 @@ static int Hash_DRBG_Reseed(DRBG* drbg, const byte* entropy, word32 entropySz)
|
|||||||
{
|
{
|
||||||
byte seed[DRBG_SEED_LEN];
|
byte seed[DRBG_SEED_LEN];
|
||||||
|
|
||||||
|
XMEMSET(seed, 0, DRBG_SEED_LEN);
|
||||||
|
|
||||||
if (Hash_df(drbg, seed, sizeof(seed), drbgReseed, drbg->V, sizeof(drbg->V),
|
if (Hash_df(drbg, seed, sizeof(seed), drbgReseed, drbg->V, sizeof(drbg->V),
|
||||||
entropy, entropySz) != DRBG_SUCCESS) {
|
entropy, entropySz) != DRBG_SUCCESS) {
|
||||||
return DRBG_FAILURE;
|
return DRBG_FAILURE;
|
||||||
|
Reference in New Issue
Block a user