#[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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RngHwFlags
impl Default for RngHwFlags
Source§fn default() -> RngHwFlags
fn default() -> RngHwFlags
Source§impl PartialEq for RngHwFlags
impl PartialEq for RngHwFlags
impl Copy for RngHwFlags
impl Eq for RngHwFlags
impl StructuralPartialEq for RngHwFlags
Auto Trait Implementations§
impl Freeze for RngHwFlags
impl RefUnwindSafe for RngHwFlags
impl Send for RngHwFlags
impl Sync for RngHwFlags
impl Unpin for RngHwFlags
impl UnwindSafe for RngHwFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)