initialize hash size variable to 0 in the case that getting the digest size returns 0

This commit is contained in:
Jacob Barthelmeh
2021-03-26 17:52:52 +07:00
parent 4e8769ba6b
commit 71fea2bdd1

View File

@ -6120,7 +6120,7 @@ static int sakke_hash_to_range(SakkeKey* key, enum wc_HashType hashType,
int err = 0;
byte h[WC_MAX_DIGEST_SIZE];
byte v[WC_MAX_DIGEST_SIZE];
word32 hashSz;
word32 hashSz = 0;
word32 i;
/* Step 1: A = hashfn( s ), where s = data | extra