Skip to content

Commit 90f5882

Browse files
committed
Fix typo with HMAC determination of update/final.
1 parent 005d883 commit 90f5882

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tls/client-tls-cryptocb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ static int myCryptoCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
358358
/* set devId to invalid, so software is used */
359359
info->hmac.hmac->devId = INVALID_DEVID;
360360

361-
if (info->hash.in != NULL) {
361+
if (info->hmac.in != NULL) {
362362
ret = wc_HmacUpdate(
363363
info->hmac.hmac,
364364
info->hmac.in,
365365
info->hmac.inSz);
366366
}
367-
else if (info->hash.digest != NULL) {
367+
else if (info->hmac.digest != NULL) {
368368
ret = wc_HmacFinal(
369369
info->hmac.hmac,
370370
info->hmac.digest);

0 commit comments

Comments
 (0)