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