<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi All,
<div><br>
</div>
<div style="text-align: left;"> While migrating from 1.0.2 to 3.0, we are replacing deprecated APIs "RSA_public_encrypt" and "RSA_public_decrypt" with "EVP_PKEY_encrypt" and "EVP_PKEY_decrypt".</div>
<div style="text-align: left;"><br>
</div>
<div></div>
<div style="text-align: left;">In 1.0.2, "RSA_public_encrypt" and "RSA_public_decrypt" were taking RSA public key as parameter </div>
<div style="text-align: left;">created using "PEM_read_bio_RSA_PUBKEY" and "PEM_read_bio_RSAPublicKey" where the public key </div>
<div style="text-align: left;">was encoded using a SubjectPublicKeyInfo structure and PKCS#1 RSAPublicKey structure respectively.</div>
<div></div>
<div style="text-align: left;"><br>
</div>
<div style="text-align: left;">In 3.0, I replaced "PEM_read_bio_RSA_PUBKEY" with "PEM_read_bio_PUBKEY" to get EVP_PKEY</div>
<div style="text-align: left;">for creating EVP ctx(EVP_PKEY_CTX_new) to use in "EVP_PKEY_encrypt" and "EVP_PKEY_decrypt".</div>
<div style="text-align: left;"><br>
</div>
<div></div>
<div style="text-align: left;">But, I couldn't find equivallent API to replace "PEM_read_bio_RSAPublicKey" to get EVP_PKEY for </div>
<div style="text-align: left;">creating EVP ctx(EVP_PKEY_CTX_new) to use in "EVP_PKEY_encrypt" and "EVP_PKEY_decrypt".</div>
<div style="text-align: left;">    </div>
<div style="text-align: left;">Please suggest me an API(replacement for PEM_read_bio_RSAPublicKey) to use to get
</div>
<div style="text-align: left;">EVP_PKEY for public key encoded using PKCS#1 RSAPublicKey structure.</div>
<div style="text-align: left;"><br>
</div>
<div></div>
<div>Thanks and Regards,</div>
Sunil<br>
</div>
<br clear="both">
Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.<BR>
</body>
</html>