stm32-metapac

Crates

git

Versions

stm32h7s7z8

Flavors

Skip to main content

Mode

Enum Mode 

#[repr(u8)]
pub enum Mode {
Show 64 variants MontgomeryParamModularExp = 0, MontgomeryParam = 1, ModularExpFast = 2, ModularExpProtect = 3, _RESERVED_4 = 4, _RESERVED_5 = 5, _RESERVED_6 = 6, RsaCrtExp = 7, ModularInv = 8, ArithmeticAdd = 9, ArithmeticSub = 10, ArithmeticMul = 11, Comparison = 12, ModularRed = 13, ModularAdd = 14, ModularSub = 15, MontgomeryMul = 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, EccMul = 32, _RESERVED_21 = 33, _RESERVED_22 = 34, EccCompleteAdd = 35, EcdsaSign = 36, _RESERVED_25 = 37, EcdsaVerification = 38, EccDoubleBaseLadder = 39, PointCheck = 40, _RESERVED_29 = 41, _RESERVED_2a = 42, _RESERVED_2b = 43, _RESERVED_2c = 44, _RESERVED_2d = 45, _RESERVED_2e = 46, EccProjectiveToAffine = 47, _RESERVED_30 = 48, _RESERVED_31 = 49, _RESERVED_32 = 50, _RESERVED_33 = 51, _RESERVED_34 = 52, _RESERVED_35 = 53, _RESERVED_36 = 54, _RESERVED_37 = 55, _RESERVED_38 = 56, _RESERVED_39 = 57, _RESERVED_3a = 58, _RESERVED_3b = 59, _RESERVED_3c = 60, _RESERVED_3d = 61, _RESERVED_3e = 62, _RESERVED_3f = 63,
}

Variants§

§

MontgomeryParamModularExp = 0

Montgomery parameter computation then modular exponentiation.

§

MontgomeryParam = 1

Montgomery parameter computation only.

§

ModularExpFast = 2

Modular exponentiation only (Montgomery parameter must be loaded first).

§

ModularExpProtect = 3

Modular exponentiation (protected, used when manipulating secrets).

§

_RESERVED_4 = 4

§

_RESERVED_5 = 5

§

_RESERVED_6 = 6

§

RsaCrtExp = 7

RSA CRT exponentiation.

§

ModularInv = 8

Modular inversion.

§

ArithmeticAdd = 9

Arithmetic addition.

§

ArithmeticSub = 10

Arithmetic subtraction.

§

ArithmeticMul = 11

Arithmetic multiplication.

§

Comparison = 12

Arithmetic comparison.

§

ModularRed = 13

Modular reduction.

§

ModularAdd = 14

Modular addition.

§

ModularSub = 15

Modular subtraction.

§

MontgomeryMul = 16

Montgomery multiplication.

§

_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

§

EccMul = 32

Montgomery parameter computation then ECC scalar multiplication.

§

_RESERVED_21 = 33

§

_RESERVED_22 = 34

§

EccCompleteAdd = 35

ECC complete addition.

§

EcdsaSign = 36

ECDSA sign.

§

_RESERVED_25 = 37

§

EcdsaVerification = 38

ECDSA verification.

§

EccDoubleBaseLadder = 39

ECC double base ladder.

§

PointCheck = 40

Point on elliptic curve Fp check.

§

_RESERVED_29 = 41

§

_RESERVED_2a = 42

§

_RESERVED_2b = 43

§

_RESERVED_2c = 44

§

_RESERVED_2d = 45

§

_RESERVED_2e = 46

§

EccProjectiveToAffine = 47

ECC projective to affine.

§

_RESERVED_30 = 48

§

_RESERVED_31 = 49

§

_RESERVED_32 = 50

§

_RESERVED_33 = 51

§

_RESERVED_34 = 52

§

_RESERVED_35 = 53

§

_RESERVED_36 = 54

§

_RESERVED_37 = 55

§

_RESERVED_38 = 56

§

_RESERVED_39 = 57

§

_RESERVED_3a = 58

§

_RESERVED_3b = 59

§

_RESERVED_3c = 60

§

_RESERVED_3d = 61

§

_RESERVED_3e = 62

§

_RESERVED_3f = 63

Implementations§

§

impl Mode

pub const fn from_bits(val: u8) -> Mode

pub const fn to_bits(self) -> u8

Trait Implementations§

§

impl Clone for Mode

§

fn clone(&self) -> Mode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Mode

§

impl Eq for Mode

§

impl From<Mode> for u8

§

fn from(val: Mode) -> u8

Converts to this type from the input type.
§

impl From<u8> for Mode

§

fn from(val: u8) -> Mode

Converts to this type from the input type.
§

impl Ord for Mode

§

fn cmp(&self, other: &Mode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Mode

§

fn eq(&self, other: &Mode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl PartialOrd for Mode

§

fn partial_cmp(&self, other: &Mode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.