pub struct W(_);
Expand description
Register CRYPTCFG
writer
Implementations
sourceimpl W
impl W
sourcepub fn msw1st_out(&mut self) -> MSW1ST_OUT_W<'_>
pub fn msw1st_out(&mut self) -> MSW1ST_OUT_W<'_>
Bit 0 - If 1, OUTDATA0 will be read Most significant word 1st for AES. Else it will be read in normal little endian - Least significant word 1st. Note: only if allowed by configuration.
sourcepub fn swapkey(&mut self) -> SWAPKEY_W<'_>
pub fn swapkey(&mut self) -> SWAPKEY_W<'_>
Bit 1 - If 1, will Swap the key input (bytes in each word).
sourcepub fn swapdat(&mut self) -> SWAPDAT_W<'_>
pub fn swapdat(&mut self) -> SWAPDAT_W<'_>
Bit 2 - If 1, will SWAP the data and IV inputs (bytes in each word).
sourcepub fn msw1st(&mut self) -> MSW1ST_W<'_>
pub fn msw1st(&mut self) -> MSW1ST_W<'_>
Bit 3 - If 1, load of key, IV, and data is MSW 1st for AES. Else, the words are little endian. Note: only if allowed by configuration.
sourcepub fn aesdecrypt(&mut self) -> AESDECRYPT_W<'_>
pub fn aesdecrypt(&mut self) -> AESDECRYPT_W<'_>
Bit 6 - AES ECB direction. Only encryption used if CTR mode or manual modes such as CFB
sourcepub fn aessecret(&mut self) -> AESSECRET_W<'_>
pub fn aessecret(&mut self) -> AESSECRET_W<'_>
Bit 7 - Selects the Hidden Secret key vs. User key, if provided. If security levels are used, only the highest level is permitted to select this.
sourcepub fn aeskeysz(&mut self) -> AESKEYSZ_W<'_>
pub fn aeskeysz(&mut self) -> AESKEYSZ_W<'_>
Bits 8:9 - Sets the AES key size
sourcepub fn aesctrpos(&mut self) -> AESCTRPOS_W<'_>
pub fn aesctrpos(&mut self) -> AESCTRPOS_W<'_>
Bits 10:12 - Halfword position of 16b counter in IV if AESMODE is CTR (position is fixed for Salsa and ChaCha). Only supports 16b counter, so application must control any additional bytes if using more. The 16-bit counter is read from the IV and incremented by 1 each time. Any other use CTR should use ECB directly and do its own XOR and so on.
sourcepub fn streamlast(&mut self) -> STREAMLAST_W<'_>
pub fn streamlast(&mut self) -> STREAMLAST_W<'_>
Bit 16 - Is 1 if last stream block. If not 1, then the engine will compute the next “hash”.
sourcepub fn icbsz(&mut self) -> ICBSZ_W<'_>
pub fn icbsz(&mut self) -> ICBSZ_W<'_>
Bits 20:21 - This sets the ICB size between 32 and 128 bits, using the following rules. Note that the counter is assumed to occupy the low order bits of the IV.
Methods from Deref<Target = W<CRYPTCFG_SPEC>>
Trait Implementations
sourceimpl From<W<CRYPTCFG_SPEC>> for W
impl From<W<CRYPTCFG_SPEC>> for W
sourcefn from(writer: W<CRYPTCFG_SPEC>) -> Self
fn from(writer: W<CRYPTCFG_SPEC>) -> Self
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more