[−][src]Struct ed448_goldilocks::curve::edwards::ExtendedPoint
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]
fn clone(&self) -> ExtendedPoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConditionallySelectable for ExtendedPoint
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[src]
impl ConstantTimeEq for ExtendedPoint
[src]
impl Copy for ExtendedPoint
[src]
impl Debug for ExtendedPoint
[src]
impl Default for ExtendedPoint
[src]
fn default() -> ExtendedPoint
[src]
impl Eq for ExtendedPoint
[src]
impl PartialEq<ExtendedPoint> for ExtendedPoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtendedPoint
impl Send for ExtendedPoint
impl Sync for ExtendedPoint
impl Unpin for ExtendedPoint
impl UnwindSafe for ExtendedPoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,