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.