<div dir="auto">Thanks. </div><div dir="auto">I managed to narrow this, it is not related to pss also if I pass pkcs1 I can reproduce. It has something to do with CMS_KEY_PARAM flag and add signer. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 19 Feb 2021 at 22:03 Thulasi Goriparthi <<a href="mailto:thulasi.goriparthi@gmail.com">thulasi.goriparthi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">With PSS,  for the first signature, PSS alg ID and params are encoded correctly, but not for the second signature(resign).<div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">2542:d=7  hl=2 l=   9 prim: OBJECT            :S/MIME Capabilities</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2553:d=7  hl=2 l= 108 cons: SET</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2555:d=8  hl=2 l= 106 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2557:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2559:d=10 hl=2 l=   9 prim: OBJECT            :aes-256-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2570:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2572:d=10 hl=2 l=   9 prim: OBJECT            :aes-192-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2583:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2585:d=10 hl=2 l=   9 prim: OBJECT            :aes-128-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2596:d=9  hl=2 l=  10 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2598:d=10 hl=2 l=   8 prim: OBJECT            :des-ede3-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2608:d=9  hl=2 l=  14 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2610:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2620:d=10 hl=2 l=   2 prim: INTEGER           :80</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2624:d=9  hl=2 l=  13 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2626:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2636:d=10 hl=2 l=   1 prim: INTEGER           :40</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2639:d=9  hl=2 l=   7 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2641:d=10 hl=2 l=   5 prim: OBJECT            :des-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2648:d=9  hl=2 l=  13 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2650:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2660:d=10 hl=2 l=   1 prim: INTEGER           :28</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(255,0,0)"> 2663:d=5  hl=2 l=   0 cons: SEQUENCE</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(255,0,0)"> 2665:d=5  hl=2 l=   0 prim: OCTET STRING</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;min-height:16px;color:rgb(0,0,0)"> 2667:d=4  hl=4 l= 723 cons: SEQUENCE<br><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"></span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;min-height:16px;color:rgb(0,0,0)"> 2671:d=5  hl=2 l=   1 prim: INTEGER           :01<br><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2674:d=5  hl=3 l= 149 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2677:d=6  hl=3 l= 143 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2680:d=7  hl=2 l=  11 cons: SET</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2682:d=8  hl=2 l=   9 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2684:d=9  hl=2 l=   3 prim: OBJECT            :countryName</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2689:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :IN</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2693:d=7  hl=2 l=  11 cons: SET</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace" style="font-family:monospace;color:rgb(0,0,0)">==multiple lines truncated==</font></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">2949:d=7  hl=2 l=   9 prim: OBJECT            :S/MIME Capabilities</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2960:d=7  hl=2 l= 108 cons: SET</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2962:d=8  hl=2 l= 106 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2964:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2966:d=10 hl=2 l=   9 prim: OBJECT            :aes-256-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2977:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2979:d=10 hl=2 l=   9 prim: OBJECT            :aes-192-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2990:d=9  hl=2 l=  11 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 2992:d=10 hl=2 l=   9 prim: OBJECT            :aes-128-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3003:d=9  hl=2 l=  10 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3005:d=10 hl=2 l=   8 prim: OBJECT            :des-ede3-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3015:d=9  hl=2 l=  14 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3017:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3027:d=10 hl=2 l=   2 prim: INTEGER           :80</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3031:d=9  hl=2 l=  13 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3033:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3043:d=10 hl=2 l=   1 prim: INTEGER           :40</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3046:d=9  hl=2 l=   7 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3048:d=10 hl=2 l=   5 prim: OBJECT            :des-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3055:d=9  hl=2 l=  13 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3057:d=10 hl=2 l=   8 prim: OBJECT            :rc2-cbc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3067:d=10 hl=2 l=   1 prim: INTEGER           :28</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3070:d=5  hl=2 l=  62 cons: SEQUENCE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,0)"> </font><font style="font-family:Menlo;color:rgb(0,0,255)">3072:d=6  hl=2 l=   9 prim: OBJECT            :rsassaPss</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3083:d=6  hl=2 l=  49 cons: SEQUENCE</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3085:d=7  hl=2 l=  13 cons: cont [ 0 ]</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3087:d=8  hl=2 l=  11 cons: SEQUENCE</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3089:d=9  hl=2 l=   9 prim: OBJECT            :sha256</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3100:d=7  hl=2 l=  26 cons: cont [ 1 ]</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3102:d=8  hl=2 l=  24 cons: SEQUENCE</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3104:d=9  hl=2 l=   9 prim: OBJECT            :mgf1</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3115:d=9  hl=2 l=  11 cons: SEQUENCE</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3117:d=10 hl=2 l=   9 prim: OBJECT            :sha256</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><font style="font-family:Menlo;color:rgb(0,0,255)"> 3128:d=7  hl=2 l=   4 cons: cont [ 2 ]</font></span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3130:d=8  hl=2 l=   2 prim: INTEGER           :DE</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"> 3134:d=5  hl=4 l= 256 prim: OCTET STRING      [HEX DUMP]:66C7A406905E0BEF3BE8A55B8BA05915020B6960BDE4700C3C3FB2F115FE5BA60B453EFF39BA37E4D16CA3A86582B3057D05875766BE99C51BC5BEC9CD1AAE3BEC34943160BB06784209F1A3773E07A101BA3E2231FDF85FAB91872A081E37410905A09DAF530600BF9099B054B1DF869826E864A95F5D55DAE84A0CEC43E52F6D13574E1EF66A4E3A65883788E265D6C174211ADBCFEA96A9DD186887BFE040D6D0B59547D8763157D322F0307D7AF31</span>23B0ECFB11E1E7EA228861F4363DBA8D478A7E44F1DEB77A3904FBD90CAA41E291A2E094ABCBD5134146FB1C0F42BC8D7B4829DEFEE7BACDFC024FB8B9FAF16F225EB3C96D866C535B2A06E83DCF007</p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">Thanks,</p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">Thulasi.</p></span></div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 20 Feb 2021 at 00:40, Alon Bar-Lev <<a href="mailto:alon.barlev@gmail.com" target="_blank">alon.barlev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">Thanks!</div><div dir="auto">Was about to write... I tested both 1.1 and master branches and result is the same. </div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 19 Feb 2021 at 21:04 Thulasi Goriparthi <<a href="mailto:thulasi.goriparthi@gmail.com" target="_blank">thulasi.goriparthi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div dir="ltr"><div dir="ltr">I am able to reproduce this issue with 1.1.1j too.<div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">openssl version -a</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">OpenSSL 1.1.1j  16 Feb 2021</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">built on: Fri Feb 19 18:56:06 2021 UTC</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">platform: darwin64-x86_64-cc</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr) </span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">compiler: cc -fPIC -arch x86_64 -g -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -D_REENTRANT -DNDEBUG</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">OPENSSLDIR: "/usr/local/ssl"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">ENGINESDIR: "/usr/local/lib/engines-1.1"</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Seeding source: os-specific</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">openssl cms -sign -in msg -text -signer cert1.pem -out 1.cms -keyopt rsa_padding_mode:pss</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">openssl cms -verify -in 1.cms -CAfile ca.pem</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Content-Type: text/plain</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;min-height:16px;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">hello world</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Verification successful</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">openssl cms -resign -in 1.cms -signer cert2.pem -out 2.cms -keyopt rsa_padding_mode:pss</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">openssl cms -verify -in 2.cms -CAfile ca.pem</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Error reading S/MIME message</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing:crypto/asn1/tasn_dec.c:425:Field=algorithm, Type=X509_ALGOR</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:646:Field=signatureAlgorithm, Type=CMS_SignerInfo</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:615:Field=signerInfos, Type=CMS_SignedData</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:646:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D08403A:asn1 encoding routines:asn1_template_ex_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:496:Field=d.signedData, Type=CMS_ContentInfo</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D0D106E:asn1 encoding routines:b64_read_asn1:decode error:crypto/asn1/asn_mime.c:143:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">4757167552:error:0D0D40CC:asn1 encoding routines:SMIME_read_ASN1:asn1 sig parse error:crypto/asn1/asn_mime.c:451:</span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Thanks,</span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo">Thulasi.</span></p></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 20 Feb 2021 at 00:09, Viktor Dukhovni <<a href="mailto:openssl-users@dukhovni.org" target="_blank">openssl-users@dukhovni.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On Fri, Feb 19, 2021 at 11:19:42PM +0530, Thulasi Goriparthi wrote:<br>
<br>
> I am able to reproduce this issue with 1.1.1i<br>
<br>
OpenSSL 1.1.1j has been released.  Do you still see the problem with<br>
1.1.1j?<br>
<br>
-- <br>
    Viktor.<br>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>