From 357c2ad8e9fb2505945e4e7e95a98dce97c72259 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 12 Mar 2026 15:55:19 -0600 Subject: [PATCH] fixes for CAAM port without hash store --- wolfcrypt/src/port/caam/wolfcaam_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/port/caam/wolfcaam_hash.c b/wolfcrypt/src/port/caam/wolfcaam_hash.c index 07ed2110a6..1fbf9f334f 100644 --- a/wolfcrypt/src/port/caam/wolfcaam_hash.c +++ b/wolfcrypt/src/port/caam/wolfcaam_hash.c @@ -72,6 +72,7 @@ static int _ShaUpdate(byte* buffer, word32* buffLen, const byte* ctx, CAAM_BUFFER buf[2]; word32 arg[4]; int ret; + int idx = 0; if (buffer == NULL || ctx == NULL || (data == NULL && len > 0)) { return BAD_FUNC_ARG; @@ -262,7 +263,7 @@ int wc_CAAM_Sha224Hash(wc_Sha224* sha224, const byte* in, word32 inSz, ret = wc_Sha224_Grow(sha224, in, inSz); #else ret = _ShaUpdate(sha224->buffer, &sha224->bufferLen, - (byte*)sha224->digest, data, len, SHA224_DIGEST_SIZE, CAAM_SHA224); + (byte*)sha224->digest, in, inSz, SHA224_DIGEST_SIZE, CAAM_SHA224); #endif }