Creating PKCS7 envelop in kernel.

Is there any support for creating a PKCS7 envelop in the kernel? BCrypt
supports a lot of things, but I don’t see any equivalent to
CryptEncryptMessage.

Regards,