#[repr(transparent)]pub struct RngHwFlags(pub u32);
Expand description
Hardware configuration of RNG engine. Reset value holds the supported features.
Tuple Fields§
§0: u32
Implementations§
Source§impl RngHwFlags
impl RngHwFlags
Sourcepub fn set_ehr_width(&mut self, val: EhrWidth)
pub fn set_ehr_width(&mut self, val: EhrWidth)
Data width supported by the entropy collector
Sourcepub const fn crngt_exists(&self) -> bool
pub const fn crngt_exists(&self) -> bool
If this flag is set, the engine include support for continuous random number generator test.
Sourcepub fn set_crngt_exists(&mut self, val: bool)
pub fn set_crngt_exists(&mut self, val: bool)
If this flag is set, the engine include support for continuous random number generator test.
Sourcepub const fn autocorr_exists(&self) -> bool
pub const fn autocorr_exists(&self) -> bool
If this flag is set, the engine include support for autocorrelation test.
Sourcepub fn set_autocorr_exists(&mut self, val: bool)
pub fn set_autocorr_exists(&mut self, val: bool)
If this flag is set, the engine include support for autocorrelation test.
Sourcepub const fn bypass_exists(&self) -> bool
pub const fn bypass_exists(&self) -> bool
If this flag is set, the engine include support for bypassing TRNG tests.
Sourcepub fn set_bypass_exists(&mut self, val: bool)
pub fn set_bypass_exists(&mut self, val: bool)
If this flag is set, the engine include support for bypassing TRNG tests.
Sourcepub const fn prng_exists(&self) -> bool
pub const fn prng_exists(&self) -> bool
If this flag is set, the engine include a pseudo-random number generator.
Sourcepub fn set_prng_exists(&mut self, val: bool)
pub fn set_prng_exists(&mut self, val: bool)
If this flag is set, the engine include a pseudo-random number generator.
Sourcepub const fn kat_exists(&self) -> bool
pub const fn kat_exists(&self) -> bool
If this flag is set, the engine include support for known answer tests.
Sourcepub fn set_kat_exists(&mut self, val: bool)
pub fn set_kat_exists(&mut self, val: bool)
If this flag is set, the engine include support for known answer tests.
Sourcepub const fn reseeding_exists(&self) -> bool
pub const fn reseeding_exists(&self) -> bool
If this flag is set, the engine include support for automatic reseeding.
Sourcepub fn set_reseeding_exists(&mut self, val: bool)
pub fn set_reseeding_exists(&mut self, val: bool)
If this flag is set, the engine include support for automatic reseeding.
pub const fn rng_use_5_sboxes(&self) -> bool
pub fn set_rng_use_5_sboxes(&mut self, val: bool)
Trait Implementations§
Source§impl Clone for RngHwFlags
impl Clone for RngHwFlags
Source§fn clone(&self) -> RngHwFlags
fn clone(&self) -> RngHwFlags
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more