#[repr(transparent)]pub struct SgiConfig(pub u32);Expand description
SHA Configuration Reg
Tuple Fields§
§0: u32Implementations§
Source§impl SgiConfig
impl SgiConfig
Sourcepub const fn set_has_aes(&mut self, val: bool)
pub const fn set_has_aes(&mut self, val: bool)
HAS AES
Sourcepub const fn set_has_des(&mut self, val: bool)
pub const fn set_has_des(&mut self, val: bool)
HAS DES
Sourcepub const fn set_has_sha(&mut self, val: bool)
pub const fn set_has_sha(&mut self, val: bool)
HAS SHA
Sourcepub const fn set_has_movem(&mut self, val: bool)
pub const fn set_has_movem(&mut self, val: bool)
HAS MOVEM
Sourcepub const fn set_has_cmac(&mut self, val: bool)
pub const fn set_has_cmac(&mut self, val: bool)
HAS CMAC
Sourcepub const fn set_has_gfmul(&mut self, val: bool)
pub const fn set_has_gfmul(&mut self, val: bool)
HAS GFMUL
Sourcepub const fn internal_prng(&self) -> bool
pub const fn internal_prng(&self) -> bool
HAS INTERNAL PRNG
Sourcepub const fn set_internal_prng(&mut self, val: bool)
pub const fn set_internal_prng(&mut self, val: bool)
HAS INTERNAL PRNG
Sourcepub const fn key_digest(&self) -> bool
pub const fn key_digest(&self) -> bool
HAS KEY DIGEST
Sourcepub const fn set_key_digest(&mut self, val: bool)
pub const fn set_key_digest(&mut self, val: bool)
HAS KEY DIGEST
Sourcepub const fn count_size(&self) -> bool
pub const fn count_size(&self) -> bool
0 - COUNT=16, 1 - COUNT=32
Sourcepub const fn set_count_size(&mut self, val: bool)
pub const fn set_count_size(&mut self, val: bool)
0 - COUNT=16, 1 - COUNT=32
Sourcepub const fn configc_rsvd(&self) -> bool
pub const fn configc_rsvd(&self) -> bool
reserved
Sourcepub const fn set_configc_rsvd(&mut self, val: bool)
pub const fn set_configc_rsvd(&mut self, val: bool)
reserved
Sourcepub const fn configb2_rsvd(&self) -> bool
pub const fn configb2_rsvd(&self) -> bool
reserved
Sourcepub const fn set_configb2_rsvd(&mut self, val: bool)
pub const fn set_configb2_rsvd(&mut self, val: bool)
reserved
Sourcepub const fn set_bus_width(&mut self, val: bool)
pub const fn set_bus_width(&mut self, val: bool)
0 - BUS_WIDTH=16, 1 - BUS_WIDTH=32
Sourcepub const fn set_num_datin(&mut self, val: u8)
pub const fn set_num_datin(&mut self, val: u8)
NUMBER OF DATIN REGBANKS
Sourcepub const fn set_num_key(&mut self, val: u8)
pub const fn set_num_key(&mut self, val: u8)
NUMBER OR KEY REGBANKS
Sourcepub const fn configb_rsvd(&self) -> u8
pub const fn configb_rsvd(&self) -> u8
reserved
Sourcepub const fn set_configb_rsvd(&mut self, val: u8)
pub const fn set_configb_rsvd(&mut self, val: u8)
reserved
Sourcepub const fn sha_256_only(&self) -> bool
pub const fn sha_256_only(&self) -> bool
HAS SHA-256 ONLY
Sourcepub const fn set_sha_256_only(&mut self, val: bool)
pub const fn set_sha_256_only(&mut self, val: bool)
HAS SHA-256 ONLY
Sourcepub const fn spb_support(&self) -> bool
pub const fn spb_support(&self) -> bool
ID_CFG_SGI_SPB_SUPPORT is set
Sourcepub const fn set_spb_support(&mut self, val: bool)
pub const fn set_spb_support(&mut self, val: bool)
ID_CFG_SGI_SPB_SUPPORT is set
Sourcepub const fn spb_masking(&self) -> bool
pub const fn spb_masking(&self) -> bool
ID_CFG_SGI_SPB_MASKING is set
Sourcepub const fn set_spb_masking(&mut self, val: bool)
pub const fn set_spb_masking(&mut self, val: bool)
ID_CFG_SGI_SPB_MASKING is set
Sourcepub const fn sfr_sw_mask(&self) -> bool
pub const fn sfr_sw_mask(&self) -> bool
ID_CFG_SGI_USE_SFR_SW_MASK is set
Sourcepub const fn set_sfr_sw_mask(&mut self, val: bool)
pub const fn set_sfr_sw_mask(&mut self, val: bool)
ID_CFG_SGI_USE_SFR_SW_MASK is set
Sourcepub const fn configa_rsvd(&self) -> u8
pub const fn configa_rsvd(&self) -> u8
reserved
Sourcepub const fn set_configa_rsvd(&mut self, val: u8)
pub const fn set_configa_rsvd(&mut self, val: u8)
reserved
Trait Implementations§
impl Copy for SgiConfig
impl Eq for SgiConfig
impl StructuralPartialEq for SgiConfig
Auto Trait Implementations§
impl Freeze for SgiConfig
impl RefUnwindSafe for SgiConfig
impl Send for SgiConfig
impl Sync for SgiConfig
impl Unpin for SgiConfig
impl UnwindSafe for SgiConfig
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
Mutably borrows from an owned value. Read more