Skip to content

Commit 2b60f0b

Browse files
committed
Address CI failures
1 parent e538099 commit 2b60f0b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/internal.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,12 +954,14 @@ static void wp11_Session_Final(WP11_Session* session)
954954
}
955955
#endif
956956
#endif
957+
#ifndef NO_HMAC
957958
if ((session->init & ~WP11_INIT_DIGEST_MASK) == WP11_INIT_HMAC_SIGN ||
958959
(session->init & ~WP11_INIT_DIGEST_MASK) == WP11_INIT_HMAC_VERIFY) {
959960
wc_HmacFree(&session->params.hmac.hmac);
960961
session->init = 0;
961962
}
962-
#ifdef WOLFSSL_CMAC
963+
#endif
964+
#ifdef HAVE_AESCMAC
963965
if ((session->init & ~WP11_INIT_DIGEST_MASK) == WP11_INIT_AES_CMAC_SIGN ||
964966
(session->init & ~WP11_INIT_DIGEST_MASK) == WP11_INIT_AES_CMAC_VERIFY) {
965967
(void)wc_CmacFree(&session->params.cmac.cmac);
@@ -11459,7 +11461,7 @@ int WP11_Rsa_Verify_Recover(CK_MECHANISM_TYPE mechanism, unsigned char* sig,
1145911461
}
1146011462
}
1146111463
if (data_out != NULL) {
11462-
*outLen = (out + *outLen) - data_out;
11464+
*outLen = (CK_ULONG)((out + *outLen) - data_out);
1146311465
XMEMMOVE(out, data_out, *outLen);
1146411466
}
1146511467
}

0 commit comments

Comments
 (0)