[][src]Struct ed448_goldilocks::curve::edwards::ExtendedPoint

pub struct ExtendedPoint { /* fields omitted */ }

Represent points on the (untwisted) edwards curve using Extended Homogenous Projective Co-ordinates (x, y) -> (X/Z, Y/Z, Z, T) a = 1, d = -39081 XXX: Make this more descriptive Should this be renamed to EdwardsPoint so that we are consistent with Dalek crypto? Necessary as ExtendedPoint is not regular lingo?

Implementations

impl ExtendedPoint[src]

pub fn identity() -> ExtendedPoint[src]

Identity point

pub const fn generator() -> ExtendedPoint[src]

Generator for the prime subgroup

pub fn to_montgomery(&self) -> MontgomeryPoint[src]

pub fn scalar_mul(&self, scalar: &Scalar) -> ExtendedPoint[src]

Generic scalar multiplication to compute s*P

pub fn scalar_mod_four(&self, scalar: &Scalar) -> ExtendedPoint[src]

Returns (scalar mod 4) * P in constant time

pub fn compress(&self) -> CompressedEdwardsY[src]

pub fn add(&self, other: &ExtendedPoint) -> ExtendedPoint[src]

pub fn double(&self) -> ExtendedPoint[src]

pub fn to_affine(&self) -> AffinePoint[src]

pub fn to_twisted(&self) -> TwistedExtendedPoint[src]

pub fn negate(&self) -> ExtendedPoint[src]

pub fn torque(&self) -> ExtendedPoint[src]

Trait Implementations

impl Clone for ExtendedPoint[src]

impl ConditionallySelectable for ExtendedPoint[src]

impl ConstantTimeEq for ExtendedPoint[src]

impl Copy for ExtendedPoint[src]

impl Debug for ExtendedPoint[src]

impl Default for ExtendedPoint[src]

impl Eq for ExtendedPoint[src]

impl PartialEq<ExtendedPoint> for ExtendedPoint[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.