Set the content-encryption cipher on an enveloped or encrypted PKCS#7 structure.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| p7 | PKCS#7 EnvelopedData, SignedAndEnvelopedData, or EncryptedData object. |
| cipher | Symmetric cipher used to encrypt the content (must support ASN.1 parameters). |