diff --git a/wolfcrypt/src/port/kcapi/kcapi_hmac.c b/wolfcrypt/src/port/kcapi/kcapi_hmac.c index 4e96839fc..41d06da0f 100644 --- a/wolfcrypt/src/port/kcapi/kcapi_hmac.c +++ b/wolfcrypt/src/port/kcapi/kcapi_hmac.c @@ -234,7 +234,7 @@ int wc_HmacUpdate(Hmac* hmac, const byte* msg, word32 length) ret = wc_HmacUpdate_Software(hmac, msg, length); break; default: - ret = kcapi_md_update(hmac->handle, msg, length); + ret = (int)kcapi_md_update(hmac->handle, msg, length); if (ret >= 0) { ret = 0; } @@ -325,7 +325,7 @@ int wc_HmacFinal(Hmac* hmac, byte* hash) return wc_HmacFinal_Software(hmac, hash); #endif } - ret = kcapi_md_final(hmac->handle, hash, len); + ret = (int)kcapi_md_final(hmac->handle, hash, len); } if (ret >= 0) { ret = 0;