#[repr(transparent)]pub struct SgiCtrl(pub u32);Expand description
SGI Control register.
Tuple Fields§
§0: u32Implementations§
Source§impl SgiCtrl
impl SgiCtrl
Sourcepub const fn start(&self) -> bool
pub const fn start(&self) -> bool
Start crypto operation. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = StartOp: Set to start operation.
Sourcepub const fn set_start(&mut self, val: bool)
pub const fn set_start(&mut self, val: bool)
Start crypto operation. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = StartOp: Set to start operation.
Sourcepub const fn decrypt(&self) -> bool
pub const fn decrypt(&self) -> bool
Sets Cipher direction(AES and DES). Raw bit values: false (0) = Enc: Encryption.; true (1) = Dec: Decryption.
Sourcepub const fn set_decrypt(&mut self, val: bool)
pub const fn set_decrypt(&mut self, val: bool)
Sets Cipher direction(AES and DES). Raw bit values: false (0) = Enc: Encryption.; true (1) = Dec: Decryption.
Sourcepub const fn set_aeskeysz(&mut self, val: Aeskeysz)
pub const fn set_aeskeysz(&mut self, val: Aeskeysz)
Sets AES key size.
Sourcepub const fn set_crypto_op(&mut self, val: CryptoOp)
pub const fn set_crypto_op(&mut self, val: CryptoOp)
Sets ‘Crypto Operation’ type.
Sourcepub const fn set_outsel(&mut self, val: Outsel)
pub const fn set_outsel(&mut self, val: Outsel)
no description available.
Sourcepub const fn datout_res(&self) -> DatoutRes
pub const fn datout_res(&self) -> DatoutRes
Kernels data out options.
Sourcepub const fn set_datout_res(&mut self, val: DatoutRes)
pub const fn set_datout_res(&mut self, val: DatoutRes)
Kernels data out options.
Sourcepub const fn set_aes_en(&mut self, val: bool)
pub const fn set_aes_en(&mut self, val: bool)
AES Kernel Enable.
Sourcepub const fn set_des_en(&mut self, val: bool)
pub const fn set_des_en(&mut self, val: bool)
DES Kernel Enable.
Sourcepub const fn set_gcm_en(&mut self, val: bool)
pub const fn set_gcm_en(&mut self, val: bool)
GFMUL Kernel Enable.
Sourcepub const fn set_prng_en(&mut self, val: bool)
pub const fn set_prng_en(&mut self, val: bool)
PRNG Enable (only if SGI has internal PRNG).
Sourcepub const fn set_inkeysel(&mut self, val: u8)
pub const fn set_inkeysel(&mut self, val: u8)
Input key selection.
Sourcepub const fn tdeskey(&self) -> bool
pub const fn tdeskey(&self) -> bool
Triple-DES Key Configuration. Raw bit values: false (0) = TwoKey: 2-key TDES.; true (1) = ThreeKey: 3-key TDES.
Sourcepub const fn set_tdeskey(&mut self, val: bool)
pub const fn set_tdeskey(&mut self, val: bool)
Triple-DES Key Configuration. Raw bit values: false (0) = TwoKey: 2-key TDES.; true (1) = ThreeKey: 3-key TDES.
Sourcepub const fn aes_no_kl(&self) -> bool
pub const fn aes_no_kl(&self) -> bool
AES No decryption key scheduleThis bit is only supported for select configurations of the SGI. Raw bit values: false (0) = New: new AES key will be loaded.; true (1) = No: No AES key will be loaded, and previously loaded key will be used.
Sourcepub const fn set_aes_no_kl(&mut self, val: bool)
pub const fn set_aes_no_kl(&mut self, val: bool)
AES No decryption key scheduleThis bit is only supported for select configurations of the SGI. Raw bit values: false (0) = New: new AES key will be loaded.; true (1) = No: No AES key will be loaded, and previously loaded key will be used.
Sourcepub const fn aes_sel(&self) -> bool
pub const fn aes_sel(&self) -> bool
AES Dual Selection. Raw bit values: false (0) = FirstAes: First AES selected.; true (1) = SecondAes: Second AES selected (when enabled).
Sourcepub const fn set_aes_sel(&mut self, val: bool)
pub const fn set_aes_sel(&mut self, val: bool)
AES Dual Selection. Raw bit values: false (0) = FirstAes: First AES selected.; true (1) = SecondAes: Second AES selected (when enabled).