iya-sts
    Preparing search index...

    Variable smimeEnvelope

    smimeEnvelope: (
        mimeBytes: any,
        certificateDer: any,
        contentEncryption: any,
    ) => Promise<any> = smimeEnvelope

    Type Declaration

      • (mimeBytes: any, certificateDer: any, contentEncryption: any): Promise<any>
      • Encrypts a MIME entity to an S/MIME recipient certificate (the header), DER. By default a CMS ContentInfo holding an AuthEnvelopedData under AES-256-GCM (RFC 5083, RFC 5084; smime-type=authEnveloped-data); aes256-cbc asks for the EnvelopedData under AES-256-CBC that was sent before #2124 (smime-type=enveloped-data), which has no integrity protection. smimeTypeFor() names the MIME parameter for either. An ML-KEM certificate takes RFC 9629's KEMRecipientInfo; RSA and EC take pkijs's RSA-OAEP and ECDH RecipientInfos.

        Parameters

        • mimeBytes: any

          the inner MIME entity, headers and body

        • certificateDer: any

          the recipient's certificate (smimeRecipientCertificate()'s der)

        • contentEncryption: any

          mail.smimeContentEncryption: 'aes256-gcm' (the default, absent included) or 'aes256-cbc'

        Returns Promise<any>

        a promise of the DER