Expand description
NIST SP 800-90B Section 4.4 raw-noise continuous, startup, and on-demand health tests.
§Critical FIPS 140-3 Scope Boundary
Per NIST SP 800-90B Sections 4.2–4.4 and CMVP FIPS 140-3 IG D.T / D.U, the Repetition Count Test (RCT) and Adaptive Proportion Test (APT) apply exclusively to unconditioned raw samples emitted directly by a physical or jitter noise source.
They MUST NOT be applied post-hoc to already-conditioned OS CSPRNG outputs (such as getrandom,
BCryptGenRandom, or WebCrypto) to claim ESV compliance.
Structs§
- Adaptive
Proportion Test - SP 800-90B Section 4.4.2 Adaptive Proportion Test (APT) for raw noise samples.
- RawNoise
Health Monitor - Lifecycle monitor connecting SP 800-90B startup, continuous, and on-demand health tests for an unconditioned raw noise source.
- Repetition
Count Test - SP 800-90B Section 4.4.1 Repetition Count Test (RCT) for raw noise samples.
Enums§
- AptSource
Kind - Standard SP 800-90B Section 4.4.2 APT alphabet category locking the fixed window size
W.
Constants§
- APT_
BINARY_ WINDOW - SP 800-90B Section 4.4.2 Adaptive Proportion Test window size for binary (
0/1) noise samples (1,024). - APT_
NON_ BINARY_ WINDOW - Default SP 800-90B Section 4.4.2 Adaptive Proportion Test window size for non-binary
(multi-bit / byte) noise samples (
512). - STARTUP_
SAMPLE_ COUNT - Minimum number of consecutive raw noise samples required for the SP 800-90B Section 4.3
startup health test (
1,024).
Functions§
- run_
raw_ noise_ health_ test - Runs a standalone SP 800-90B Section 4.3 startup / on-demand health test (RCT + APT) over
a slice of at least
STARTUP_SAMPLE_COUNT(1,024) consecutive unconditioned raw samples.