Skip to main content

Module aes_kw

Module aes_kw 

Source
Expand description

aes-kw key creation (RFC 3394 / NIST SP 800-38F KW): dedicated key-wrapping keys for the key-wrap kind.

Functions§

derive_key
Mint an AES-KW key of the declared variant from a parameterized derivation (the aes-gcm.derive-key contract, minting a kw-key).
generate_key
Generate a fresh random key of the declared AES variant.
import_key_jwk
Import an RFC 7517 oct JSON Web Key (as JSON text; alg, when present, must name the declared variant) as an AES-KW key.
import_key_raw
Import raw key material as the declared AES variant.
unwrap_key_jwk
Mint an AES-KW key from unwrapped key material read as an oct JWK. Consumes the UnwrapInput.
unwrap_key_raw
Mint an AES-KW key from unwrapped key material read as raw bytes. Consumes the UnwrapInput.

Type Aliases§

AesVariant