Skip to main content

Module health

Module health 

Source
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§

AdaptiveProportionTest
SP 800-90B Section 4.4.2 Adaptive Proportion Test (APT) for raw noise samples.
RawNoiseHealthMonitor
Lifecycle monitor connecting SP 800-90B startup, continuous, and on-demand health tests for an unconditioned raw noise source.
RepetitionCountTest
SP 800-90B Section 4.4.1 Repetition Count Test (RCT) for raw noise samples.

Enums§

AptSourceKind
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.