Return the key of the ECDH key of the originator/producer of the EnvelopedData value.
Return the id of the recipient's key used to encrypt the content.
This id will often be the recipient's certificate's serial number, in which case the issuer will be ignored: This method is meant to be used by the recipient so it can look up the corresponding private key to decrypt the content. We could certainly extract the issuer to verify it matches the expected one, but if the id doesn't match any key decryption won't even be attempted, so there's really no risk from ignoring the issuer.
Static
deserializeDeserialize an EnvelopedData value into a SessionlessEnvelopedData
or SessionEnvelopedData
instance.
Depending on the type of RecipientInfo.
Static
encryptReturn an EnvelopedData value using the Channel Session Protocol.
The plaintext whose ciphertext has to be embedded in the EnvelopedData value.
The ECDH public key of the recipient.
Any encryption options.
Generated using TypeDoc
CMS EnvelopedData representation using the Channel Session Protocol.
Consequently, it uses the key agreement (
KeyAgreeRecipientInfo
) from CMS.