From ad49aea17dcb0e679cb03ee9feaebeca569eddeb Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 25 May 2022 13:59:56 -0700 Subject: [PATCH] fix for setting AES-CCM decrypt nonce with crypto callback --- wolfcrypt/src/cryptocb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/cryptocb.c b/wolfcrypt/src/cryptocb.c index c198f639c..a24b1bee8 100644 --- a/wolfcrypt/src/cryptocb.c +++ b/wolfcrypt/src/cryptocb.c @@ -648,8 +648,8 @@ int wc_CryptoCb_AesCcmDecrypt(Aes* aes, byte* out, cryptoInfo.cipher.aesccm_dec.out = out; cryptoInfo.cipher.aesccm_dec.in = in; cryptoInfo.cipher.aesccm_dec.sz = sz; - cryptoInfo.cipher.aesccm_enc.nonce = nonce; - cryptoInfo.cipher.aesccm_enc.nonceSz = nonceSz; + cryptoInfo.cipher.aesccm_dec.nonce = nonce; + cryptoInfo.cipher.aesccm_dec.nonceSz = nonceSz; cryptoInfo.cipher.aesccm_dec.authTag = authTag; cryptoInfo.cipher.aesccm_dec.authTagSz = authTagSz; cryptoInfo.cipher.aesccm_dec.authIn = authIn;