From 2a05c13db856a44537140f91515c355b8e001a8f Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 20 May 2026 01:00:19 -0700 Subject: [PATCH] fix to use correct struct size for devcrypto memset --- wolfcrypt/src/port/devcrypto/wc_devcrypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/port/devcrypto/wc_devcrypto.c b/wolfcrypt/src/port/devcrypto/wc_devcrypto.c index 9a939157b4..e6d82dab4e 100644 --- a/wolfcrypt/src/port/devcrypto/wc_devcrypto.c +++ b/wolfcrypt/src/port/devcrypto/wc_devcrypto.c @@ -234,7 +234,7 @@ void wc_SetupCryptAead(struct crypt_auth_op* crt, WC_CRYPTODEV* dev, byte* src, word32 srcSz, byte* dst, byte* iv, word32 ivSz, int flag, byte* authIn, word32 authInSz, byte* authTag, word32 authTagSz) { - XMEMSET(crt, 0, sizeof(struct crypt_op)); + XMEMSET(crt, 0, sizeof(struct crypt_auth_op)); crt->ses = dev->sess.ses; crt->src = src; crt->len = srcSz;