I need to create a “authEnvelopedData“ (https://tools.ietf.org/html/rfc5083#2.1) ASN1 structure but I know how to archive this. I tried with “PKCS7_encrypt” but here I got only “envelopedData”.
This is not currently supported. I created a PR some time ago that adds support for it: https://github.com/openssl/openssl/pull/8024
It still waits for review from the OpenSSL devs...
I`ll try next with CMS_encrypt and to modify CMS_ContentInfo to add the authEnvelopedData parameter. Would this way work?
I guess you might end up with the similar result like my PR.
Cheers
Jakub