From 71fea2bdd1f3501239a34767e0eaf9a80ea456fb Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 26 Mar 2021 17:52:52 +0700 Subject: [PATCH] initialize hash size variable to 0 in the case that getting the digest size returns 0 --- wolfcrypt/src/sakke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sakke.c b/wolfcrypt/src/sakke.c index 5f57fad46..c07f3e345 100644 --- a/wolfcrypt/src/sakke.c +++ b/wolfcrypt/src/sakke.c @@ -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