Skip to main content

Module aes_gcm

Module aes_gcm 

Source
Expand description

aes-gcm key creation (caller-nonce — see Aead’s nonce warning).

Functions§

derive_key
Mint an AES-GCM key of the declared variant from a parameterized derivation: the derivation runs at the variant’s key length and the result is subject to import_key_raw’s contract.
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) as an AES-GCM key of the declared variant. See the WIT mac-key.export-key-jwk doc for the package-wide JWK contract.
import_key_raw
Import raw key material as the declared AES variant.
unwrap_key_jwk
Mint an AES-GCM key from unwrapped key material read as an oct JWK, subject to import_key_jwk’s contract plus the unwrap-path use/key_ops checks. Consumes the UnwrapInput.
unwrap_key_raw
Mint an AES-GCM key of the declared variant from unwrapped key material read as raw bytes, subject to import_key_raw’s contract. Consumes the UnwrapInput.

Type Aliases§

AesVariant