CMS EnvelopedData representation that doesn't use the Channel Session Protocol.

Consequently, it uses the key transport choice (KeyTransRecipientInfo) from CMS.

Hierarchy (view full)

Methods

  • Return the plaintext for the ciphertext contained in the current EnvelopedData value.

    Parameters

    • privateKey: CryptoKey

      The private key to decrypt the ciphertext.

    Returns Promise<ArrayBuffer>

  • 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.

    Returns Buffer

Generated using TypeDoc