<div dir="ltr">Hi,<div><br></div><div>I could see this with openssl version 1.1.1d.</div><div><br></div><div>Sure I'll update.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 31, 2021 at 1:34 PM Dmitry Belyavsky <<a href="mailto:beldmit@gmail.com">beldmit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>First, may I ask you which version of OpenSSL do you use?</div><div>Secondly, could you please report the issue via GitHub to make sure that it will not be lost?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 31, 2021 at 10:01 AM Brahmaji K <<a href="mailto:brahmaji.k@gmail.com" target="_blank">brahmaji.k@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Team,</div><div><br></div><div>I'm trying to decode the RSA private key which was DER encoded earlier without CRT components (p, q, dmp1, dmq1 and iqmp is NULL). I'm using the same openssl version for both encoding and decoding, encoding works fine but decode fails. In decode, we call EVP_PKEY2PKCS8() function, this is failing with below error:<br></div><br>469393408:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:425:Field=p, Type=RSAPrivateKey<br><br>The above error is because field p is NULL, but with same p is NULL encoding is successful. Any idea why encode is Success but decode fails?<br><div><br></div><div>Thanks and Regards,</div><div>Brahmaji K</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">SY, Dmitry Belyavsky</div>
</blockquote></div>