Expand description
hmac-sha2 key creation.
Enums§
- Sha2
Variant - The SHA-2 variants: FIPS 180-4 closes this set, so it is an enum.
(Each algorithm interface names its closed set of parameterizations
<algorithm>-variant.)
Functions§
- derive_
key - Mint an HMAC key over
variantfrom a parameterized derivation: the derivation runs atlengthbits (Nonemeans the hash’s block size, thegenerate_keydefault) and the result is subject toimport_key_raw’s contract. - generate_
key - Generate a fresh random HMAC key over
variant. - import_
key_ jwk - Import an RFC 7517
octJSON Web Key (as JSON text) as an HMAC key overvariant. See the WITmac-key.export-key-jwkdoc for the package-wide JWK contract. - import_
key_ raw - Import raw key material as an HMAC key over
variant. - unwrap_
key_ jwk - Mint an HMAC key from unwrapped key material read as an
octJWK, with the unwrap-pathuse/key_opschecks. Consumes theUnwrapInput. - unwrap_
key_ raw - Mint an HMAC key over the declared SHA-2 variant from unwrapped key
material read as raw bytes. Consumes the
UnwrapInput.