pub struct W(_);
Expand description
Register KEYR0
writer
Implementations
sourceimpl W
impl W
sourcepub fn key(&mut self) -> KEY_W<'_, 0>
pub fn key(&mut self) -> KEY_W<'_, 0>
Bits 0:31 - Cryptographic key, bits [31:0] This bitfield contains the bits [31:0] of the AES encryption or decryption key, depending on the operating mode: - In Mode 1 (encryption), Mode 2 (key derivation) and Mode 4 (key derivation then single decryption): the value to write into the bitfield is the encryption key. - In Mode 3 (decryption): the value to write into the bitfield is the encryption key to be derived before being used for decryption. After writing the encryption key into the bitfield, its reading before enabling AES returns the same value. Its reading after enabling AES and after the CCF flag is set returns the decryption key derived from the encryption key. Note: In mode 4 (key derivation then single decryption) the bitfield always contains the encryption key. The AES_KEYRx registers may be written only when KEYSIZE value is correct and when the AES peripheral is disabled (EN bit of the AES_CR register cleared). Note that, if, the key is directly loaded to AES_KEYRx registers (hence writes to key register is ignored and KEIF is set). Refer to for more details.
Methods from Deref<Target = W<KEYR0_SPEC>>
Trait Implementations
sourceimpl From<W<KEYR0_SPEC>> for W
impl From<W<KEYR0_SPEC>> for W
sourcefn from(writer: W<KEYR0_SPEC>) -> Self
fn from(writer: W<KEYR0_SPEC>) -> Self
Converts to this type from the input type.
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