Skip to content

Commit c44d421

Browse files
committed
wolfcrypt/src/hmac.c: fix FIPS version gate on wc_HmacFree() in wc_HmacSetKey().
1 parent 2cf1253 commit c44d421

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ int wc_HmacSetKey(Hmac* hmac, int type, const byte* key, word32 length)
392392
return BAD_FUNC_ARG;
393393
}
394394

395-
#ifndef HAVE_FIPS
395+
#if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(5,0,0)
396396
/* if set key has already been run then make sure and free existing */
397397
/* This is for async and PIC32MZ situations, and just normally OK,
398398
provided the user calls wc_HmacInit() first. That function is not

0 commit comments

Comments
 (0)