Initialize array to zero(s)

This commit is contained in:
kaleb-himes
2018-07-31 10:35:14 -06:00
parent 2b3f94944d
commit 93c2f3b170

View File

@ -314,6 +314,8 @@ static int Hash_DRBG_Reseed(DRBG* drbg, const byte* entropy, word32 entropySz)
{
byte seed[DRBG_SEED_LEN];
XMEMSET(seed, 0, DRBG_SEED_LEN);
if (Hash_df(drbg, seed, sizeof(seed), drbgReseed, drbg->V, sizeof(drbg->V),
entropy, entropySz) != DRBG_SUCCESS) {
return DRBG_FAILURE;