1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Core building blocks for `uselesskey`.
//!
//! Most users should depend on the `uselesskey` facade crate instead.
//!
//! This crate provides:
//! - deterministic, order-independent artifact derivation
//! - a concurrency-friendly cache
//! - tempfile sinks
//! - generic "negative fixture" helpers (corrupt PEM, truncate DER)
//!
//! # Architecture
//!
//! The core concept is the [`Factory`], which manages artifact generation and caching.
//! It operates in two modes:
//!
//! - **Random mode**: Artifacts are generated with OS randomness, cached per-factory.
//! - **Deterministic mode**: Artifacts are derived from a master seed using BLAKE3,
//! ensuring the same `(domain, label, spec, variant)` always produces the same artifact.
//!
//! # Extension Pattern
//!
//! Key types (RSA, ECDSA, etc.) are added via extension traits that add methods to `Factory`.
//! See `uselesskey-rsa` for an example implementation.
//!
//! ```
//! use uselesskey_core::Factory;
//!
//! let fx = Factory::random();
//! // Extension crates add methods like: fx.rsa("label", spec)
//! ```
pub use crateError;
pub use crate;
pub use crate;
pub use crateTempArtifact;
extern crate alloc;