iya-sts
    Preparing search index...

    Variable cmsKeyTransportDecrypt

    cmsKeyTransportDecrypt: (
        transport: any,
        privateKey: any,
        encryptedKey: any,
        oaepHash: any,
    ) => any = cmsKeyTransportDecrypt

    Type Declaration

      • (transport: any, privateKey: any, encryptedKey: any, oaepHash: any): any
      • Unwraps a CMS content-encryption key with an RSA private key.

        Parameters

        • transport: any

          rsaes-pkcs1-v1_5 or rsaes-oaep

        • privateKey: any

          the recipient's private key (a PEM or a KeyObject)

        • encryptedKey: any

          the KeyTransRecipientInfo's encryptedKey

        • oaepHash: any

          for OAEP, one of CMS_OAEP_HASHES

        Returns any

        the content-encryption key

        Error for a transport or hash outside the lists, or what node throws