iya-sts
    Preparing search index...

    Variable smimeKemAssemble

    smimeKemAssemble: (
        mimeBytes: any,
        certificate: any,
        row: any,
        kemOid: any,
        share: any,
        contentEncryption: any,
    ) => any = smimeKemAssemble

    Type Declaration

      • (
            mimeBytes: any,
            certificate: any,
            row: any,
            kemOid: any,
            share: any,
            contentEncryption: any,
        ): any
      • Builds the KEM envelope from a shared secret that is already in hand. Production obtains that secret from encapsulate. A test passes a fixed one, because a runtime without ML-KEM cannot encapsulate and must still be able to check the wrap and the DER. share.cek and share.iv, when set, are that test's content key and its IV (16 octets for CBC) or nonce (12 octets for GCM); production leaves them unset.

        Parameters

        • mimeBytes: any

          the inner MIME entity

        • certificate: any

          the pkijs certificate

        • row: any

          the SMIME_KEM row

        • kemOid: any

          the certificate's key oid

        • share: any

          { cipherText, sharedSecret, cek?, iv? }

        • contentEncryption: any

          'aes256-gcm' (the default: AuthEnvelopedData) or 'aes256-cbc' (EnvelopedData version 3), as smimeContentEncryption() reads it

        Returns any

        the ContentInfo DER