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
§fn partial_cmp(&self, other: &Kmod) -> Option<Ordering>
fn partial_cmp(&self, other: &Kmod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Kmod
impl Eq for Kmod
impl StructuralEq for Kmod
impl StructuralPartialEq for Kmod
Auto Trait Implementations§
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