atsamd_hal::pukcc::curves

Enum Nist256p

Source
pub enum Nist256p {}
Expand description

A type representing a standard curve defined by National Institute of Standards and Technology (variant 256p)

Trait Implementations§

Source§

impl Curve for Nist256p

Source§

const MOD_LENGTH: u2 = 32u16

Length of P modulus (bytes)
Source§

const SCALAR_LENGTH: u2 = 32u16

Length of the scalar (bytes)
Source§

const MODULO_P: &'static [u8]

P modulus parameter Length: MOD_LENGTH + 4
Source§

const A_CURVE: &'static [u8]

A parameter of a curve Length: MOD_LENGTH + 4
Source§

const B_CURVE: &'static [u8]

B parameter of a curve Length: MOD_LENGTH + 4
Source§

const BASE_POINT_A_X: &'static [u8]

X coordinate of a base point (point of origin on a curve) Length: MOD_LENGTH + 4
Source§

const BASE_POINT_A_Y: &'static [u8]

Y coordinate of a base point (point of origin on a curve) Length: MOD_LENGTH + 4
Source§

const BASE_POINT_A_Z: &'static [u8]

Z coordinate of a base point (point of origin on a curve) It is equal to 1 Length: MOD_LENGTH + 4
Source§

const ORDER_POINT: &'static [u8]

Order point of the curve Length: SCALAR_LENGTH + 4
Source§

const CNS: &'static [u8]

Modulo reduction constant precalculated with RedMod service in a SetupConstant mode Read more
Source§

fn verify_curve() -> Result<(), CurveVerificationFailure>

Function that can be used during runtime to verify if a curve is correctly defined. Read more

Auto Trait Implementations§

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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.