Re: [openssl-users] RSA_PKCS1_OAEP_PADDING

2017-05-19 Thread RudyAC
Hello Steve, you are right. I corrected the code (see below). Now it works! Thank you very much for your quick response. ... /* encrypt content */ cms = CMS_encrypt(NULL, in, cipher, nflags); if(!cms) { KWlog_appl ( EV_D_APPL_INFO , "CMS not allocated!" ); } for (i

Re: [openssl-users] RSA_PKCS1_OAEP_PADDING

2017-05-15 Thread Dr. Stephen Henson
On Mon, May 15, 2017, RudyAC wrote: > Hello Steve, > > first of all thanks for helpful advice. When printing out all the fields of > the message with the openssl command > I got for every recipient two blocks. One block includes the OAEP padding > and the other block (same recipient) includes

Re: [openssl-users] RSA_PKCS1_OAEP_PADDING

2017-05-15 Thread RudyAC
Hello Steve, first of all thanks for helpful advice. When printing out all the fields of the message with the openssl command I got for every recipient two blocks. One block includes the OAEP padding and the other block (same recipient) includes the default padding. d.ktri: version:

Re: [openssl-users] RSA_PKCS1_OAEP_PADDING

2017-05-11 Thread Dr. Stephen Henson
On Thu, May 11, 2017, RudyAC wrote: > Hello, > > I have the requirement to encrypt e-mails using RSA-OAEP padding. I use the > library openssl-1.0.2k and encrypt with CMS container. The following > function describes my method. My problem is that I'm not sure if this method > really uses the