Struct curve25519_dalek::backend::serial::curve_models::ProjectiveNielsPoint [−][src]
pub struct ProjectiveNielsPoint {
pub Y_plus_X: FieldElement51,
pub Y_minus_X: FieldElement51,
pub Z: FieldElement51,
pub T2d: FieldElement51,
}
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: FieldElement51
Y_minus_X: FieldElement51
Z: FieldElement51
T2d: FieldElement51
Trait Implementations
type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Returns the “default value” for a type. Read more
Returns the identity element of the curve. Can be used as a constructor. Read more
type Output = ProjectiveNielsPoint
type Output = ProjectiveNielsPoint
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
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
Mutably borrows from an owned value. Read more
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self
to T
.
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
Negate self
if choice == Choice(1)
; otherwise, leave it
unchanged. Read more
pub fn from_bits(t: T) -> T
pub fn from_bits(t: T) -> T
Safe lossless bitwise transmute from T
to Self
.
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T
to Self
.
pub fn into_bits(self) -> U
pub fn into_bits(self) -> U
Safe lossless bitwise transmute from self
to T
.