Enum stm32_metapac::saes::vals::Kmod
#[repr(u8)]pub enum Kmod {
NORMAL = 0,
WRAPPEDKEY = 1,
SHAREDKEY = 2,
_RESERVED_3 = 3,
}
Variants§
NORMAL = 0
AES peripheral
WRAPPEDKEY = 1
Wrapped key for SAES mode. Key loaded in key registers can only be used to encrypt or decrypt AES keys. Hence, when a decryption is selected, read-as-zero SAES_DOUTR register is automatically loaded into SAES key registers after a successful decryption process.
SHAREDKEY = 2
Shared key mode. After a successful decryption process (unwrapping), SAES key registers are shared with the peripheral described in KSHAREID[1:0] bitfield. This sharing is valid only while KMOD[1:0] at 0x2 and KEYVALID=1. When a decryption is selected, read-as-zero SAES_DOUTR register is automatically loaded into SAES key registers after a successful decryption process.
_RESERVED_3 = 3
Implementations§
Trait Implementations§
§impl Ord for Kmod
impl Ord for Kmod
§impl PartialOrd for Kmod
impl PartialOrd for Kmod
impl Copy for Kmod
impl Eq for Kmod
impl StructuralPartialEq for Kmod
Auto Trait Implementations§
impl Freeze for Kmod
impl RefUnwindSafe for Kmod
impl Send for Kmod
impl Sync for Kmod
impl Unpin for Kmod
impl UnwindSafe for Kmod
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)