#[repr(transparent)]pub struct HashHwFlags(pub u32);Expand description
Hardware configuration of the HASH engine. Reset value holds the supported features.
Tuple Fields§
§0: u32Implementations§
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more