<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1494232820337_4227" dir="ltr">Im using the cmd client openssl cms -decrypt with the "debug_decrypt" option to have the same behaviour as before the bleichenbach security patch to use decryption without recipient public keys.</div><div id="yui_3_16_0_ym19_1_1494232820337_4227" dir="ltr"><br id="yui_3_16_0_ym19_1_1494232820337_4682"></div><div id="yui_3_16_0_ym19_1_1494232820337_4227" dir="ltr">For some reason, some messages will produce the following error on OpenSSL 1.0.2d and even OpenSSL 1.0.2k</div><div id="yui_3_16_0_ym19_1_1494232820337_4227" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4625">Error decrypting CMS structure</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4626">6828:error:0607A082:digital envelope routines:EVP_CIPHER_CTX_set_key_length:invalid key length:evp_enc.c:593:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627">6828:error:2E078076:CMS routines:cms_EncryptedContent_init_bio:invalid key length:cms_enc.c:163:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627">Calling cms -decrypt without the debug_decrypt option produces no error.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627">What is weird, is that its always basically the same source e-mail encrypted using openssl cms with aes-128-cbc and rsaesOaep and sometimes the resulting message</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627">will produce this error and other times it works.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1494232820337_4627"><br></div></div></body></html>