Struct HashHwFlags
#[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§
§impl HashHwFlags
impl HashHwFlags
pub const fn cw(&self) -> Cw
pub const fn cw(&self) -> Cw
Indicates the number of concurrent words the hash is using to compute signature.
pub const fn set_cw(&mut self, val: Cw)
pub const fn set_cw(&mut self, val: Cw)
Indicates the number of concurrent words the hash is using to compute signature.
pub 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.
pub const fn set_ch(&mut self, val: Ch)
pub const 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.
pub 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.
pub const fn set_sha_512_exists(&mut self, val: bool)
pub const fn set_sha_512_exists(&mut self, val: bool)
If this flag is set, the engine include SHA-512 support.
pub const fn pad_exists(&self) -> bool
pub const fn pad_exists(&self) -> bool
If this flag is set, the engine include pad block support.
pub const fn set_pad_exists(&mut self, val: bool)
pub const fn set_pad_exists(&mut self, val: bool)
If this flag is set, the engine include pad block support.
pub const fn md5_exists(&self) -> bool
pub const fn md5_exists(&self) -> bool
If this flag is set, the engine include MD5 support.
pub const fn set_md5_exists(&mut self, val: bool)
pub const fn set_md5_exists(&mut self, val: bool)
If this flag is set, the engine include MD5 support.
pub const fn hmac_exists(&self) -> bool
pub const fn hmac_exists(&self) -> bool
If this flag is set, the engine include HMAC support.
pub const fn set_hmac_exists(&mut self, val: bool)
pub const fn set_hmac_exists(&mut self, val: bool)
If this flag is set, the engine include HMAC support.
pub 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.
pub const fn set_sha_256_exists(&mut self, val: bool)
pub const fn set_sha_256_exists(&mut self, val: bool)
If this flag is set, the engine include SHA-256 support.
pub 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.
pub const fn set_hash_compare_exists(&mut self, val: bool)
pub const fn set_hash_compare_exists(&mut self, val: bool)
If this flag is set, the engine include compare digest logic.
pub 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.
pub const fn set_dump_hash_to_dout_exists(&mut self, val: bool)
pub const 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§
§impl Clone for HashHwFlags
impl Clone for HashHwFlags
§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 more