From d5e83310b623f83e6bc35af8d2a4be0aec8e07f3 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 18 Dec 2023 17:11:33 -0800 Subject: [PATCH] Fix typo with HMAC determination of update/final. --- wolfcrypt/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 0d1bf239c..fe8e4ec92 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -49461,13 +49461,13 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx) /* set devId to invalid, so software is used */ info->hmac.hmac->devId = INVALID_DEVID; - if (info->hash.in != NULL) { + if (info->hmac.in != NULL) { ret = wc_HmacUpdate( info->hmac.hmac, info->hmac.in, info->hmac.inSz); } - else if (info->hash.digest != NULL) { + else if (info->hmac.digest != NULL) { ret = wc_HmacFinal( info->hmac.hmac, info->hmac.digest);