#[repr(u8)]
pub enum MODE_A {
Show 18 variants MontgomeryCompExp, MontgomeryComp, MontgomeryExp, Rsa, ModularInv, ArithmeticAdd, ArithmeticSub, ArithmeticMul, ArithmeticComp, ModularRed, ModularAdd, ModularSub, ModularMul, MontgomeryCompScalar, MontgomeryScalar, Ecdsasign, Ecdsaverif, Elliptic,
}
Expand description

PKA operation code

Value on reset: 0

Variants

MontgomeryCompExp

0: Montgomery parameter computation then modular exponentiation

MontgomeryComp

1: Montgomery parameter computation only

MontgomeryExp

2: Modular exponentiation only (Montgomery parameter must be loaded first)

Rsa

7: RSA CRT exponentiation

ModularInv

8: Modular inversion

ArithmeticAdd

9: Arithmetic addition

ArithmeticSub

10: Arithmetic subtraction

ArithmeticMul

11: Arithmetic multiplication

ArithmeticComp

12: Arithmetic comparison

ModularRed

13: Modular reduction

ModularAdd

14: Modular addition

ModularSub

15: Modular subtraction

ModularMul

16: Montgomery multiplication

MontgomeryCompScalar

32: Montgomery parameter computation then ECC scalar multiplication

MontgomeryScalar

34: ECC scalar multiplication only (Montgomery parameter must be loaded first)

Ecdsasign

36: ECDSA sign

Ecdsaverif

38: ECDSA verification

Elliptic

40: Point on elliptic curve Fp check

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.