pub struct RepetitionCountTest { /* private fields */ }Expand description
SP 800-90B Section 4.4.1 Repetition Count Test (RCT) for raw noise samples.
Fails permanently with [Error::EntropyHealthCheckFailed] if the same sample value repeats
cutoff or more consecutive times.
Implementations§
Source§impl RepetitionCountTest
impl RepetitionCountTest
Sourcepub const fn new(cutoff: u32) -> Result<Self>
pub const fn new(cutoff: u32) -> Result<Self>
Creates a new RCT with cutoff C >= 2 (computed from the noise source’s assessed
min-entropy H and false-positive bound alpha per SP 800-90B §4.4.1).
Trait Implementations§
Source§impl Drop for RepetitionCountTest
impl Drop for RepetitionCountTest
Auto Trait Implementations§
impl Freeze for RepetitionCountTest
impl RefUnwindSafe for RepetitionCountTest
impl Send for RepetitionCountTest
impl Sync for RepetitionCountTest
impl Unpin for RepetitionCountTest
impl UnsafeUnpin for RepetitionCountTest
impl UnwindSafe for RepetitionCountTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more