Expand description
From-scratch, pure-Rust, #![no_std], #![forbid(unsafe_code)], zero-external-dependency
FIPS 140-3 DRBG and integrity-hash primitives for the quantaegis-* workspace.
§Provided Primitives
Sha256(NIST FIPS 180-4): 256-bit streaming & one-shot hash function.HmacSha256(NIST FIPS 198-1): 256-bit keyed-hash MAC shared byHMAC_DRBGand FIPS 140-3 software integrity verification.HmacDrbgSha256(NIST SP 800-90A Rev. 1 + SP 800-90C): 256-bit security strengthHMAC_DRBG(SHA-256)enforcing 384-bit RBG2 initialization min-entropy, 256-bit reseed entropy,2^17-bit (16,384-byte) cumulative output reseed threshold, prediction resistance, and Section 11.3 self-tests.health(NIST SP 800-90B Section 4.4): Repetition Count Test (RCT), Adaptive Proportion Test (APT), and 1,024-sample startup/on-demand test strictly for unconditioned raw noise sources.
§Security & Engineering Invariants
#,#![forbid(unsafe_code)], zero external runtime dependencies.- Division-free arithmetic audited across
x86_64,aarch64,wasm32, andthumbv7em. - Automatic zeroization on drop and redacted
Debugformatting for all secret state.
Re-exports§
pub use hmac::HmacSha256;pub use hmac_drbg::HmacDrbgSha256;pub use sha256::Sha256;
Modules§
- health
- NIST SP 800-90B Section 4.4 raw-noise continuous, startup, and on-demand health tests.
- hmac
- NIST FIPS 198-1 HMAC-SHA-256 keyed-hash message authentication code.
- hmac_
drbg - NIST SP 800-90A Rev. 1
HMAC_DRBG(SHA-256)with SP 800-90C reseed-budget enforcement. - sha256
- NIST FIPS 180-4 SHA-256 cryptographic hash function.