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 RSA-OAEP padding.
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.