Skip to main content

Crate uselesskey_core_kid

Crate uselesskey_core_kid 

Source
Expand description

Deterministic key-ID generation from raw key bytes.

Produces URL-safe, base64url-encoded BLAKE3 hashes truncated to 96 bits by default. Use kid_from_bytes for the standard length or kid_from_bytes_with_prefix for a custom hash prefix. Deterministic key-id (kid) helpers for uselesskey fixture crates.

Generates URL-safe base64 key identifiers by hashing public key material with BLAKE3. The default prefix length (12 bytes / 96 bits) provides sufficient collision resistance for test fixture scenarios.

Constants§

DEFAULT_KID_PREFIX_BYTES
Default number of hash bytes used for key IDs.

Functions§

kid_from_bytes
Generate a deterministic key ID from key bytes.
kid_from_bytes_with_prefix
Generate a deterministic key ID from key bytes with a custom hash prefix length.