#[repr(u8)]
pub enum MODULUS_A {
Show 15 variants BIN256, BIN128, ECCBIN233P, ECCBIN163P, GCMBIN128, ECCPRIME256P, ECCPRIME224P, ECCPRIME192P, ECCBIN233N, ECCBIN233KN, ECCBIN163N, ECCBIN163KN, ECCPRIME256N, ECCPRIME224N, ECCPRIME192N,
}
Expand description

Modular Operation Modulus

Value on reset: 0

Variants§

§

BIN256

0: Generic modulus. p = 2^256

§

BIN128

1: Generic modulus. p = 2^128

§

ECCBIN233P

2: Modulus for B-233 and K-233 ECC curves. p(t) = t^233 + t^74 + 1

§

ECCBIN163P

3: Modulus for B-163 and K-163 ECC curves. p(t) = t^163 + t^7 + t^6 + t^3 + 1

§

GCMBIN128

4: Modulus for GCM. P(t) = t^128 + t^7 + t^2 + t + 1

§

ECCPRIME256P

5: Modulus for P-256 ECC curve. p = 2^256 - 2^224 + 2^192 + 2^96 - 1

§

ECCPRIME224P

6: Modulus for P-224 ECC curve. p = 2^224 - 2^96 - 1

§

ECCPRIME192P

7: Modulus for P-192 ECC curve. p = 2^192 - 2^64 - 1

§

ECCBIN233N

8: P modulus for B-233 ECC curve

§

ECCBIN233KN

9: P modulus for K-233 ECC curve

§

ECCBIN163N

10: P modulus for B-163 ECC curve

§

ECCBIN163KN

11: P modulus for K-163 ECC curve

§

ECCPRIME256N

12: P modulus for P-256 ECC curve

§

ECCPRIME224N

13: P modulus for P-224 ECC curve

§

ECCPRIME192N

14: P modulus for P-192 ECC curve

Trait Implementations§

source§

impl Clone for MODULUS_A

source§

fn clone(&self) -> MODULUS_A

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for MODULUS_A

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<MODULUS_A> for u8

source§

fn from(variant: MODULUS_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq<MODULUS_A> for MODULUS_A

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for MODULUS_A

source§

impl Eq for MODULUS_A

source§

impl StructuralEq for MODULUS_A

source§

impl StructuralPartialEq for MODULUS_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.