Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove PALEXPORT EVP_PKEY get/set RSA functions
  • Loading branch information
bartonjs committed Jun 17, 2021
commit 64b2f3787d5037120556e7585eca1a326c80be86
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ static const Entry s_cryptoNative[] =
DllImportEntry(CryptoNative_EvpPKeyDuplicate)
DllImportEntry(CryptoNative_EvpPkeyGetDsa)
DllImportEntry(CryptoNative_EvpPkeyGetEcKey)
DllImportEntry(CryptoNative_EvpPkeyGetRsa)
DllImportEntry(CryptoNative_EvpPkeySetDsa)
DllImportEntry(CryptoNative_EvpPkeySetEcKey)
DllImportEntry(CryptoNative_EvpPkeySetRsa)
DllImportEntry(CryptoNative_EvpPKeySize)
DllImportEntry(CryptoNative_EvpRC2Cbc)
DllImportEntry(CryptoNative_EvpRC2Ecb)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,6 @@ int32_t CryptoNative_RsaVerifyHash(EVP_PKEY* pkey,
return ret;
}

RSA* CryptoNative_EvpPkeyGetRsa(EVP_PKEY* pkey)
{
return EVP_PKEY_get1_RSA(pkey);
}

int32_t CryptoNative_EvpPkeySetRsa(EVP_PKEY* pkey, RSA* rsa)
{
return EVP_PKEY_set1_RSA(pkey, rsa);
}

static int HasNoPrivateKey(const RSA* rsa)
{
if (rsa == NULL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,3 @@ PALEXPORT int32_t CryptoNative_RsaVerifyHash(EVP_PKEY* pkey,
const uint8_t* signature,
int32_t signatureLen);

/*
Shims the EVP_PKEY_get1_RSA method.

Returns the RSA instance for the EVP_PKEY.
*/
PALEXPORT RSA* CryptoNative_EvpPkeyGetRsa(EVP_PKEY* pkey);

/*
Shims the EVP_PKEY_set1_RSA method to set the RSA
instance on the EVP_KEY.

Returns 1 upon success, otherwise 0.
*/
PALEXPORT int32_t CryptoNative_EvpPkeySetRsa(EVP_PKEY* pkey, RSA* rsa);
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ static int MakeSelfSignedCertificate(X509 * cert, EVP_PKEY* evp)

if (rsa != NULL)
{
if (CryptoNative_EvpPkeySetRsa(evp, rsa) == 1)
if (EVP_PKEY_set1_RSA(evp, rsa) == 1)
{
rsa = NULL;
}
Expand Down