Skip to main content

Crate qssm_utils

Crate qssm_utils 

Source
Expand description

Cryptographic utilities: versioned domain strings, BLAKE3, and Merkle trees.

Re-exports§

pub use entropy_audit::validate_entropy_full;
pub use entropy_audit::EntropyAuditError;
pub use entropy_density::verify_density;
pub use entropy_density::MIN_RAW_BYTES;
pub use entropy_stats::validate_entropy_distribution;
pub use entropy_stats::EntropyStatsError;
pub use hashing::blake3_hash;
pub use hashing::hash_domain;
pub use hashing::DOMAIN_LE;
pub use hashing::DOMAIN_MERKLE_PARENT;
pub use hashing::DOMAIN_MS;
pub use hashing::DOMAIN_SDK_LE_MASK;
pub use hashing::DOMAIN_SDK_LE_WITNESS;
pub use hashing::DOMAIN_SDK_MS_SEED;
pub use hashing::LE_FS_PUBLIC_BINDING_LAYOUT_VERSION;
pub use merkle::merkle_parent;
pub use merkle::MerkleError;
pub use merkle::PositionAwareTree;

Modules§

entropy_audit
Unified entropy audit: hardware-style density screen + χ² / distinct-byte stats.
entropy_density
Heuristic min-entropy / density gate (not a full NIST SP 800-90B certification).
entropy_stats
Byte-level entropy quality checks (chi-square vs uniform + simple pattern guards).
hashing
Single source of truth for protocol domain strings (v1.0 hygiene).
merkle