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 }
-
Parameters
- sharedSecret: any
- wrapOid: any
- kekBytes: any
- cek: any
Returns { info: any; kek: any; wrapped: any }
{ kek, wrapped, info }
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.