Protected
_apiProtected
_suiteThe parameters for Web Cryptography API
64
KdfId.HkdfSha512 (0x0003)
Protected
_checkProtected
_setupBuilds a labeled input keying material.
A byte string indicating the cryptographic context/operation.
An input keying material as bytes.
Builds a labeled info string.
A byte string indicating the cryptographic context/operation.
An additional byte string.
The length of the output byte string.
An info string as bytes.
Expands a pseudorandom key prk
.
A pseudorandom key.
An additional byte string.
The length in bytes of the output keying material.
An output keying material as bytes.
Extracts a pseudorandom key of fixed length (Nh) bytes.
An additional random byte string.
An input keying material
A pseudorandom key as bytes.
Extracts a pseudorandom key and expand it to a specified length keying material.
An additional random byte string.
An input keying material
An additional byte string.
The length in bytes of the output keying material.
An output keying material as bytes.
Initializes the instance by setting a suite_id
defined in RFC9180.
A suite_id
defined in RFC9180.
Extracts a pseudorandom key with label.
A pseudorandom key.
A byte string indicating the cryptographic context/operation.
An additional byte string.
The length in bytes of the output keying material.
An output keying material as bytes.
Extracts a pseudorandom key with label.
An additional random byte string.
A byte string indicating the cryptographic context/operation.
An input keying material
A pseudorandom key as bytes.
The HKDF-SHA512 for HPKE KDF implementing KdfInterface.
When using
@hpke/core
, the instance of this class must be specified to thekem
parameter of CipherSuiteParams instead ofKdfId.HkdfSha512
.The KDF class can only derive keys of the same length as the
hashSize
. If you want to derive keys longer than thehashSize
, please use hpke-js#CipherSuite.Example