iya-sts
    Preparing search index...

    Variable smimeKemWrap

    smimeKemWrap: (
        sharedSecret: any,
        wrapOid: any,
        kekBytes: any,
        cek: any,
    ) => { info: any; kek: any; wrapped: any } = smimeKemWrap

    Type Declaration

      • (
            sharedSecret: any,
            wrapOid: any,
            kekBytes: any,
            cek: any,
        ): { info: any; kek: any; wrapped: any }
      • HKDF-SHA-256 of a KEM shared secret, then AES Key Wrap of the content- encryption key. RFC 9629: the info is CMSORIforKEMOtherInfo, the salt is absent (RFC 5869's HashLen zeros; this runtime's empty salt is that), and the output length is kekLength.

        Parameters

        • sharedSecret: any

          the KEM shared secret

        • wrapOid: any

          the wrap algorithm

        • kekBytes: any

          16 or 32

        • cek: any

          the content-encryption key

        Returns { info: any; kek: any; wrapped: any }

        { kek, wrapped, info }