Skip to content

Commit 357c2ad

Browse files
fixes for CAAM port without hash store
1 parent e5594a6 commit 357c2ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wolfcrypt/src/port/caam/wolfcaam_hash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ static int _ShaUpdate(byte* buffer, word32* buffLen, const byte* ctx,
7272
CAAM_BUFFER buf[2];
7373
word32 arg[4];
7474
int ret;
75+
int idx = 0;
7576

7677
if (buffer == NULL || ctx == NULL || (data == NULL && len > 0)) {
7778
return BAD_FUNC_ARG;
@@ -262,7 +263,7 @@ int wc_CAAM_Sha224Hash(wc_Sha224* sha224, const byte* in, word32 inSz,
262263
ret = wc_Sha224_Grow(sha224, in, inSz);
263264
#else
264265
ret = _ShaUpdate(sha224->buffer, &sha224->bufferLen,
265-
(byte*)sha224->digest, data, len, SHA224_DIGEST_SIZE, CAAM_SHA224);
266+
(byte*)sha224->digest, in, inSz, SHA224_DIGEST_SIZE, CAAM_SHA224);
266267
#endif
267268
}
268269

0 commit comments

Comments
 (0)