[][src]Enum efm32gg11b820::crypto0::wac::MODULUSR

pub enum MODULUSR {
    BIN256,
    BIN128,
    ECCBIN233P,
    ECCBIN163P,
    GCMBIN128,
    ECCPRIME256P,
    ECCPRIME224P,
    ECCPRIME192P,
    ECCBIN233N,
    ECCBIN233KN,
    ECCBIN163N,
    ECCBIN163KN,
    ECCPRIME256N,
    ECCPRIME224N,
    ECCPRIME192N,
    _Reserved(u8),
}

Possible values of the field MODULUS

Variants

BIN256

Generic modulus. p = 2^256

BIN128

Generic modulus. p = 2^128

ECCBIN233P

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

ECCBIN163P

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

GCMBIN128

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

ECCPRIME256P

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

ECCPRIME224P

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

ECCPRIME192P

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

ECCBIN233N

P modulus for B-233 ECC curve

ECCBIN233KN

P modulus for K-233 ECC curve

ECCBIN163N

P modulus for B-163 ECC curve

ECCBIN163KN

P modulus for K-163 ECC curve

ECCPRIME256N

P modulus for P-256 ECC curve

ECCPRIME224N

P modulus for P-224 ECC curve

ECCPRIME192N

P modulus for P-192 ECC curve

_Reserved(u8)

Reserved

Methods

impl MODULUSR[src]

pub fn bits(&self) -> u8[src]

Value of the field as raw bits

pub fn is_bin256(&self) -> bool[src]

Checks if the value of the field is BIN256

pub fn is_bin128(&self) -> bool[src]

Checks if the value of the field is BIN128

pub fn is_eccbin233p(&self) -> bool[src]

Checks if the value of the field is ECCBIN233P

pub fn is_eccbin163p(&self) -> bool[src]

Checks if the value of the field is ECCBIN163P

pub fn is_gcmbin128(&self) -> bool[src]

Checks if the value of the field is GCMBIN128

pub fn is_eccprime256p(&self) -> bool[src]

Checks if the value of the field is ECCPRIME256P

pub fn is_eccprime224p(&self) -> bool[src]

Checks if the value of the field is ECCPRIME224P

pub fn is_eccprime192p(&self) -> bool[src]

Checks if the value of the field is ECCPRIME192P

pub fn is_eccbin233n(&self) -> bool[src]

Checks if the value of the field is ECCBIN233N

pub fn is_eccbin233kn(&self) -> bool[src]

Checks if the value of the field is ECCBIN233KN

pub fn is_eccbin163n(&self) -> bool[src]

Checks if the value of the field is ECCBIN163N

pub fn is_eccbin163kn(&self) -> bool[src]

Checks if the value of the field is ECCBIN163KN

pub fn is_eccprime256n(&self) -> bool[src]

Checks if the value of the field is ECCPRIME256N

pub fn is_eccprime224n(&self) -> bool[src]

Checks if the value of the field is ECCPRIME224N

pub fn is_eccprime192n(&self) -> bool[src]

Checks if the value of the field is ECCPRIME192N

Trait Implementations

impl Copy for MODULUSR[src]

impl Debug for MODULUSR[src]

impl PartialEq<MODULUSR> for MODULUSR[src]

impl Clone for MODULUSR[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MODULUSR

impl Sync for MODULUSR

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self