diff --git a/wolfcrypt/src/wc_pkcs11.c b/wolfcrypt/src/wc_pkcs11.c index ccb7c95eab2..ff2597ec691 100644 --- a/wolfcrypt/src/wc_pkcs11.c +++ b/wolfcrypt/src/wc_pkcs11.c @@ -4919,7 +4919,7 @@ static int Pkcs11GetMldsaPublicKey(wc_MlDsaKey* key, ret = WC_KEY_SIZE_E; } if (ret == 0) - ret = wc_MlDsaKey_ImportPubRaw(key, pubKey, pubKeySize); + ret = wc_MlDsaKey_ImportPubRaw(key, pubKey, (word32)pubKeySize); if (pubKey != NULL) XFREE(pubKey, key->heap, DYNAMIC_TYPE_TMP_BUFFER); @@ -5231,7 +5231,7 @@ static int Pkcs11MldsaSign(Pkcs11Session* session, wc_CryptoInfo* info) } if (ret == 0) { - *info->pk.pqc_sign.outlen = outLen; + *info->pk.pqc_sign.outlen = (word32)outLen; } if (sessionKey)