Enum Mode
#[repr(u8)]pub enum Mode {
Show 32 variants
Bypass = 0,
AesActive = 1,
AesToHashActive = 2,
AesAndHashActive = 3,
_RESERVED_4 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
HashActive = 7,
_RESERVED_8 = 8,
AesmacAndBypassActive = 9,
AesToHashAndDoutActive = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
ChaChaActive = 16,
_RESERVED_11 = 17,
_RESERVED_12 = 18,
_RESERVED_13 = 19,
_RESERVED_14 = 20,
_RESERVED_15 = 21,
_RESERVED_16 = 22,
_RESERVED_17 = 23,
_RESERVED_18 = 24,
_RESERVED_19 = 25,
_RESERVED_1a = 26,
_RESERVED_1b = 27,
_RESERVED_1c = 28,
_RESERVED_1d = 29,
_RESERVED_1e = 30,
_RESERVED_1f = 31,
}Variants§
Bypass = 0
Bypass cryptographic engine.
AesActive = 1
Use AES engine.
AesToHashActive = 2
Pipe AES engine output to HASH engine input.
AesAndHashActive = 3
Process input using both AES and HASH engine in parallell.
_RESERVED_4 = 4
_RESERVED_5 = 5
_RESERVED_6 = 6
HashActive = 7
Use HASH engine.
_RESERVED_8 = 8
AesmacAndBypassActive = 9
Calculate AES MAC and bypass.
AesToHashAndDoutActive = 10
Pipe AES engine output to HASH engine input. The resulting digest output is piped to DOUT buffer.
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
ChaChaActive = 16
Use CHACHA engine.
_RESERVED_11 = 17
_RESERVED_12 = 18
_RESERVED_13 = 19
_RESERVED_14 = 20
_RESERVED_15 = 21
_RESERVED_16 = 22
_RESERVED_17 = 23
_RESERVED_18 = 24
_RESERVED_19 = 25
_RESERVED_1a = 26
_RESERVED_1b = 27
_RESERVED_1c = 28
_RESERVED_1d = 29
_RESERVED_1e = 30
_RESERVED_1f = 31
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
§impl Ord for Mode
impl Ord for Mode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Mode
impl PartialOrd for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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