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
impl Curve for Nist256p
Source§const MOD_LENGTH: u2 = 32u16
const MOD_LENGTH: u2 = 32u16
Length of P modulus (bytes)
Source§const SCALAR_LENGTH: u2 = 32u16
const SCALAR_LENGTH: u2 = 32u16
Length of the scalar (bytes)
Source§const BASE_POINT_A_X: &'static [u8]
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]
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]
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]
const ORDER_POINT: &'static [u8]
Order point of the curve
Length: SCALAR_LENGTH + 4
Source§const CNS: &'static [u8]
const CNS: &'static [u8]
Modulo reduction constant precalculated with RedMod service in a
SetupConstant mode Read more
Source§fn verify_curve() -> Result<(), CurveVerificationFailure>
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§
impl Freeze for Nist256p
impl RefUnwindSafe for Nist256p
impl Send for Nist256p
impl Sync for Nist256p
impl Unpin for Nist256p
impl UnwindSafe for Nist256p
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more