diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 4629143d47e492..8308c9c7928ffd 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -906,7 +906,7 @@ bool PublicKeyCipher::Cipher( void* label = OPENSSL_memdup(oaep_label.data(), oaep_label.size()); CHECK_NOT_NULL(label); if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(), - reinterpret_cast(label), + static_cast(label), oaep_label.size())) { OPENSSL_free(label); return false; diff --git a/src/crypto/crypto_rsa.cc b/src/crypto/crypto_rsa.cc index 5fa91cce1a6ad2..5bbeb01ab58ac7 100644 --- a/src/crypto/crypto_rsa.cc +++ b/src/crypto/crypto_rsa.cc @@ -210,7 +210,10 @@ WebCryptoCipherStatus RSA_Cipher( if (label_len > 0) { void* label = OPENSSL_memdup(params.label.get(), label_len); CHECK_NOT_NULL(label); - if (EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(), label, label_len) <= 0) { + if (EVP_PKEY_CTX_set0_rsa_oaep_label( + ctx.get(), + static_cast(label), + label_len) <= 0) { OPENSSL_free(label); return WebCryptoCipherStatus::FAILED; }