Signing and Encryption with CMS
Working with CMS signing
Sign data as CMS SignedData with signed attributes, the format behind S/MIME, signed PDFs, and code signing. Then parse the message, verify the signature and the signer's certificate chain, and read the content.
Working with CMS certificate-based encryption
Encrypt a message as CMS EnvelopedData for two recipients, one with an RSA certificate (RSA-OAEP) and one with an elliptic-curve certificate (ECDH), and decrypt it with each recipient's private key.
Working with CMS password-based encryption
Encrypt a message as CMS EnvelopedData with a password, which derives the key-encryption key with PBKDF2, and decrypt it with the same password.
Working with PKCS#7 certificate bags (P7B)
7 certificate bags (P7B)