pub enum Nist256p {}
Expand description
A type representing a standard curve defined by National Institute of Standards and Technology (variant 256p)
Trait Implementations
sourceimpl Curve for Nist256p
impl Curve for Nist256p
sourceconst MOD_LENGTH: u2 = 32u16
const MOD_LENGTH: u2 = 32u16
Length of P modulus (bytes)
sourceconst SCALAR_LENGTH: u2 = 32u16
const SCALAR_LENGTH: u2 = 32u16
Length of the scalar (bytes)
sourceconst 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 Read more
sourceconst 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 Read more
sourceconst 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 Read more
sourceconst ORDER_POINT: &'static [u8] = _
const ORDER_POINT: &'static [u8] = _
Order point of the curve
Length: SCALAR_LENGTH + 4 Read more
sourceconst CNS: &'static [u8] = _
const CNS: &'static [u8] = _
Modulo reduction constant precalculated with RedMod service in a
SetupConstant mode Read more
sourcefn 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 RefUnwindSafe for Nist256p
impl Send for Nist256p
impl Sync for Nist256p
impl Unpin for Nist256p
impl UnwindSafe for Nist256p
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more