<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr">
<div></div>
<div>
<div><span class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">Hi,</span>
<div class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">
I am working on this function.</div>
<div class="elementToProof" style="font-size:12pt;caret-color:rgb(33, 33, 33);color:rgb(33, 33, 33);font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">
<div style="background-color:rgb(30, 30, 30);font-family:"Droid Sans Mono", monospace, monospace;font-weight:normal;font-size:14px;line-height:19px">
<span class="ContentPasted0"><font color="#9cdcfe" style="line-height:1.5">result</font><font color="#d4d4d4" style="line-height:1.5"> =<span class="Apple-converted-space"> </span></font></span><span class="ContentPasted0" style="color:rgb(220, 220, 170)">EVP_PKEY_decrypt</span><span class="ContentPasted0" style="color:rgb(212, 212, 212)">(ctx,
 D</span><span class="ContentPasted0" style="color:rgb(156, 220, 254)">ecryptedData</span><span class="ContentPasted0" style="color:rgb(212, 212, 212)">, &outlen</span><span class="ContentPasted0" style="color:rgb(212, 212, 212)">, E</span><span class="ContentPasted0" style="color:rgb(156, 220, 254)">ncryptedData</span><span class="ContentPasted0" style="color:rgb(212, 212, 212)">,</span><span class="ContentPasted0" style="color:rgb(86, 156, 214)">256</span><span class="ContentPasted0" style="color:rgb(212, 212, 212)">);</span></div>
<br>
</div>
<div class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">
I am getting the encrypted data from a different location and code is in such a way that w<span class="ContentPasted2" style="background-color:rgb(255, 255, 255);display:inline !important">e just have a pointer pointing to the starting of Encrypted data.</span> Meaning
 -We don't know the encrypted data length.<span class="Apple-converted-space"> </span></div>
<div class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">
I passed a <span class="ContentPasted1" style="background-color:rgb(255, 255, 255);display:inline !important">pointer of</span><span class="Apple-converted-space"> </span>encrypted data to this function and decryption is also happening properly.</div>
<div class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">
My doubt is whether is there any openssl/EVP_PKEY function or any way by which we can find the exact encrypted data length before doing the decryption.</div>
<div class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5" dir="ltr">
<br>
</div>
<span class="elementToProof" style="font-size:12pt;font-family:Calibri, Arial, Helvetica, sans-serif;line-height:1.5">Thanks in advance for helping me out!</span><br>
</div>
<div dir="ltr" id="ms-outlook-mobile-signature">
<div></div>
</div>
</div>
</div>
</body>
</html>