Struct curve25519_dalek::backend::serial::curve_models::ProjectiveNielsPoint
source · pub struct ProjectiveNielsPoint {
pub Y_plus_X: FieldElement2625,
pub Y_minus_X: FieldElement2625,
pub Z: FieldElement2625,
pub T2d: FieldElement2625,
}
Expand description
A pre-computed point on the \( \mathbb P^3 \) model for the curve, represented as \((Y+X, Y-X, Z, 2dXY)\) in “Niels coordinates”.
More details on the relationships between the different curve models can be found in the module-level documentation.
Fields§
§Y_plus_X: FieldElement2625
§Y_minus_X: FieldElement2625
§Z: FieldElement2625
§T2d: FieldElement2625
Trait Implementations§
source§impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the
+
operator.source§fn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
Performs the
+
operation. Read moresource§impl Clone for ProjectiveNielsPoint
impl Clone for ProjectiveNielsPoint
source§fn clone(&self) -> ProjectiveNielsPoint
fn clone(&self) -> ProjectiveNielsPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConditionallySelectable for ProjectiveNielsPoint
impl ConditionallySelectable for ProjectiveNielsPoint
source§impl Debug for ProjectiveNielsPoint
impl Debug for ProjectiveNielsPoint
source§impl Default for ProjectiveNielsPoint
impl Default for ProjectiveNielsPoint
source§fn default() -> ProjectiveNielsPoint
fn default() -> ProjectiveNielsPoint
Returns the “default value” for a type. Read more
source§impl Identity for ProjectiveNielsPoint
impl Identity for ProjectiveNielsPoint
source§fn identity() -> ProjectiveNielsPoint
fn identity() -> ProjectiveNielsPoint
Returns the identity element of the curve.
Can be used as a constructor.
source§impl<'a> Neg for &'a ProjectiveNielsPoint
impl<'a> Neg for &'a ProjectiveNielsPoint
§type Output = ProjectiveNielsPoint
type Output = ProjectiveNielsPoint
The resulting type after applying the
-
operator.source§fn neg(self) -> ProjectiveNielsPoint
fn neg(self) -> ProjectiveNielsPoint
Performs the unary
-
operation. Read moresource§impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the
-
operator.source§fn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
Performs the
-
operation. Read moresource§impl Zeroize for ProjectiveNielsPoint
Available on crate feature zeroize
only.
impl Zeroize for ProjectiveNielsPoint
Available on crate feature
zeroize
only.impl Copy for ProjectiveNielsPoint
Auto Trait Implementations§
impl RefUnwindSafe for ProjectiveNielsPoint
impl Send for ProjectiveNielsPoint
impl Sync for ProjectiveNielsPoint
impl Unpin for ProjectiveNielsPoint
impl UnwindSafe for ProjectiveNielsPoint
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