#[repr(transparent)]pub struct AesHwFlags(pub u32);Expand description
Hardware configuration of the AES engine. Reset value holds the supported features.
Tuple Fields§
§0: u32Implementations§
Source§impl AesHwFlags
impl AesHwFlags
Sourcepub const fn support_256_192_key(&self) -> bool
pub const fn support_256_192_key(&self) -> bool
If this flag is set, the engine support 192 bits and 256 bits key size.
Sourcepub fn set_support_256_192_key(&mut self, val: bool)
pub fn set_support_256_192_key(&mut self, val: bool)
If this flag is set, the engine support 192 bits and 256 bits key size.
Sourcepub const fn aes_large_rkek(&self) -> bool
pub const fn aes_large_rkek(&self) -> bool
If this flag is set, the engine support AES_LARGE_RKEK.
Sourcepub fn set_aes_large_rkek(&mut self, val: bool)
pub fn set_aes_large_rkek(&mut self, val: bool)
If this flag is set, the engine support AES_LARGE_RKEK.
Sourcepub const fn dpa_cntrmsr_exist(&self) -> bool
pub const fn dpa_cntrmsr_exist(&self) -> bool
If this flag is set, the engine support DPA countermeasures.
Sourcepub fn set_dpa_cntrmsr_exist(&mut self, val: bool)
pub fn set_dpa_cntrmsr_exist(&mut self, val: bool)
If this flag is set, the engine support DPA countermeasures.
Sourcepub fn set_ctr_exist(&mut self, val: bool)
pub fn set_ctr_exist(&mut self, val: bool)
If this flag is set, the engine support AES CTR mode.
Sourcepub const fn only_encrypt(&self) -> bool
pub const fn only_encrypt(&self) -> bool
If this flag is set, the engine only support encrypt operations.
Sourcepub fn set_only_encrypt(&mut self, val: bool)
pub fn set_only_encrypt(&mut self, val: bool)
If this flag is set, the engine only support encrypt operations.
Sourcepub const fn use_sbox_table(&self) -> bool
pub const fn use_sbox_table(&self) -> bool
If this flag is set, the engine uses SBOX tables.
Sourcepub fn set_use_sbox_table(&mut self, val: bool)
pub fn set_use_sbox_table(&mut self, val: bool)
If this flag is set, the engine uses SBOX tables.
Sourcepub const fn use_5_sboxes(&self) -> bool
pub const fn use_5_sboxes(&self) -> bool
If this flag is set, the engine uses 5 SBOX where each AES round takes 4 cycles.
Sourcepub fn set_use_5_sboxes(&mut self, val: bool)
pub fn set_use_5_sboxes(&mut self, val: bool)
If this flag is set, the engine uses 5 SBOX where each AES round takes 4 cycles.
Sourcepub const fn aes_support_prev_iv(&self) -> bool
pub const fn aes_support_prev_iv(&self) -> bool
If this flag is set, the engine contains the PREV_IV register for faster AES XCBC MAC calculation.
Sourcepub fn set_aes_support_prev_iv(&mut self, val: bool)
pub fn set_aes_support_prev_iv(&mut self, val: bool)
If this flag is set, the engine contains the PREV_IV register for faster AES XCBC MAC calculation.
Sourcepub const fn aes_tunnel_exist(&self) -> bool
pub const fn aes_tunnel_exist(&self) -> bool
If this flag is set, the engine support tunneling operations.
Sourcepub fn set_aes_tunnel_exist(&mut self, val: bool)
pub fn set_aes_tunnel_exist(&mut self, val: bool)
If this flag is set, the engine support tunneling operations.
Sourcepub const fn second_regs_set_exist(&self) -> bool
pub const fn second_regs_set_exist(&self) -> bool
If this flag is set, the engine support a second register set for tunneling operations.
Sourcepub fn set_second_regs_set_exist(&mut self, val: bool)
pub fn set_second_regs_set_exist(&mut self, val: bool)
If this flag is set, the engine support a second register set for tunneling operations.
Sourcepub const fn dfa_cntrmsr_exist(&self) -> bool
pub const fn dfa_cntrmsr_exist(&self) -> bool
If this flag is set, the engine support DFA countermeasures.
Sourcepub fn set_dfa_cntrmsr_exist(&mut self, val: bool)
pub fn set_dfa_cntrmsr_exist(&mut self, val: bool)
If this flag is set, the engine support DFA countermeasures.
Trait Implementations§
Source§impl Clone for AesHwFlags
impl Clone for AesHwFlags
Source§fn clone(&self) -> AesHwFlags
fn clone(&self) -> AesHwFlags
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more