uselesskey-core
Core factory, deterministic derivation, and cache primitives for
uselesskey test fixtures.
Most test suites should depend on the facade crate
(uselesskey). Use uselesskey-core
directly when building extension crates or when you need only the core
primitives.
What It Provides
Factoryin random and deterministic modes- Order-independent derivation from
(domain, label, spec, variant) - Per-process cache for generated artifacts (powered by
uselesskey-core-cache) - Generic negative helpers for corrupted PEM / truncated DER
- Tempfile sinks when
stdis enabled (implemented inuselesskey-core-sink)
Features
| Feature | Description |
|---|---|
std (default) |
Random mode, env seed helpers, tempfile sink, concurrent cache |
default-features = false |
no_std deterministic derivation and negative helpers |
Example
use ;
// Deterministic mode: same seed always produces the same artifacts
let seed = from_env_value.unwrap;
let fx = deterministic;
assert!;
// Random mode: different keys each run (still cached per-process)
let fx = random;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
See the uselesskey crate for full
documentation.