<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">Hi All,</font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"><br></font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">We are upgrading our code to openSSL 3.0.</font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"><br></font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">I have replaced  AES_set_encrypt_key  and AES_encrypt with EVP_CipherInit_ex, EVP_CipherUpdate and EVP_CipherFinal_ex.</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">In the below function what should be the cipher parameter(second argument). Because in AES_encryt api, we don't mention any block cipher. </font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">Is it EVP_aes_128_cbc() algorithm that we should use?</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"><br></font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">                                 </font><font face="arial, sans-serif" style="background-color:rgb(255,255,255)" color="#ff0000"><b><i>const EVP_CIPHER *cipher,</i></b></font><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"> ENGINE *impl,</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">                                 const unsigned char *key,</font></div><div class="gmail_default"><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">                                 const unsigned char *iv, int enc);</font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)"> </font></div><div class="gmail_default" style=""><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">Thanks & Regards,</font></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><font face="arial, sans-serif" color="#000000" style="background-color:rgb(255,255,255)">Samiya khanum</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div>

<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>