#[repr(transparent)]pub struct HashHwFlags(pub u32);
Expand description
Hardware configuration of the HASH engine. Reset value holds the supported features.
Tuple Fields§
§0: u32
Implementations§
Source§impl HashHwFlags
impl HashHwFlags
Sourcepub const fn cw(&self) -> Cw
pub const fn cw(&self) -> Cw
Indicates the number of concurrent words the hash is using to compute signature.
Sourcepub fn set_cw(&mut self, val: Cw)
pub fn set_cw(&mut self, val: Cw)
Indicates the number of concurrent words the hash is using to compute signature.
Sourcepub const fn ch(&self) -> Ch
pub const fn ch(&self) -> Ch
Indicate if Hi adders are present for each Hi value or 1 adder is shared for all Hi.
Sourcepub fn set_ch(&mut self, val: Ch)
pub fn set_ch(&mut self, val: Ch)
Indicate if Hi adders are present for each Hi value or 1 adder is shared for all Hi.
Sourcepub const fn sha_512_exists(&self) -> bool
pub const fn sha_512_exists(&self) -> bool
If this flag is set, the engine include SHA-512 support.
Sourcepub fn set_sha_512_exists(&mut self, val: bool)
pub fn set_sha_512_exists(&mut self, val: bool)
If this flag is set, the engine include SHA-512 support.
Sourcepub const fn pad_exists(&self) -> bool
pub const fn pad_exists(&self) -> bool
If this flag is set, the engine include pad block support.
Sourcepub fn set_pad_exists(&mut self, val: bool)
pub fn set_pad_exists(&mut self, val: bool)
If this flag is set, the engine include pad block support.
Sourcepub const fn md5_exists(&self) -> bool
pub const fn md5_exists(&self) -> bool
If this flag is set, the engine include MD5 support.
Sourcepub fn set_md5_exists(&mut self, val: bool)
pub fn set_md5_exists(&mut self, val: bool)
If this flag is set, the engine include MD5 support.
Sourcepub const fn hmac_exists(&self) -> bool
pub const fn hmac_exists(&self) -> bool
If this flag is set, the engine include HMAC support.
Sourcepub fn set_hmac_exists(&mut self, val: bool)
pub fn set_hmac_exists(&mut self, val: bool)
If this flag is set, the engine include HMAC support.
Sourcepub const fn sha_256_exists(&self) -> bool
pub const fn sha_256_exists(&self) -> bool
If this flag is set, the engine include SHA-256 support.
Sourcepub fn set_sha_256_exists(&mut self, val: bool)
pub fn set_sha_256_exists(&mut self, val: bool)
If this flag is set, the engine include SHA-256 support.
Sourcepub const fn hash_compare_exists(&self) -> bool
pub const fn hash_compare_exists(&self) -> bool
If this flag is set, the engine include compare digest logic.
Sourcepub fn set_hash_compare_exists(&mut self, val: bool)
pub fn set_hash_compare_exists(&mut self, val: bool)
If this flag is set, the engine include compare digest logic.
Sourcepub const fn dump_hash_to_dout_exists(&self) -> bool
pub const fn dump_hash_to_dout_exists(&self) -> bool
If this flag is set, the engine include HASH to DOUT support.
Sourcepub fn set_dump_hash_to_dout_exists(&mut self, val: bool)
pub fn set_dump_hash_to_dout_exists(&mut self, val: bool)
If this flag is set, the engine include HASH to DOUT support.
Trait Implementations§
Source§impl Clone for HashHwFlags
impl Clone for HashHwFlags
Source§fn clone(&self) -> HashHwFlags
fn clone(&self) -> HashHwFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for HashHwFlags
impl Default for HashHwFlags
Source§fn default() -> HashHwFlags
fn default() -> HashHwFlags
Source§impl PartialEq for HashHwFlags
impl PartialEq for HashHwFlags
impl Copy for HashHwFlags
impl Eq for HashHwFlags
impl StructuralPartialEq for HashHwFlags
Auto Trait Implementations§
impl Freeze for HashHwFlags
impl RefUnwindSafe for HashHwFlags
impl Send for HashHwFlags
impl Sync for HashHwFlags
impl Unpin for HashHwFlags
impl UnwindSafe for HashHwFlags
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
)