Struct curve25519_dalek::curve::AffineNielsPoint
[−]
[src]
pub struct AffineNielsPoint { pub y_plus_x: FieldElement, pub y_minus_x: FieldElement, pub xy2d: FieldElement, }
A pre-computed point in the affine model for the curve, represented as (y+x, y-x, 2dxy). These precomputations accelerate addition and subtraction, and were introduced by Niels Duif in the ed25519 paper "High-Speed High-Security Signatures".
Fields
y_plus_x: FieldElement
y_minus_x: FieldElement
xy2d: FieldElement
Trait Implementations
impl Copy for AffineNielsPoint
[src]
impl Clone for AffineNielsPoint
[src]
fn clone(&self) -> AffineNielsPoint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for AffineNielsPoint
[src]
impl PartialEq for AffineNielsPoint
[src]
fn eq(&self, __arg_0: &AffineNielsPoint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AffineNielsPoint) -> bool
This method tests for !=
.
impl Identity for AffineNielsPoint
[src]
fn identity() -> AffineNielsPoint
Returns the identity element of the curve. Can be used as a constructor. Read more
impl CTAssignable for AffineNielsPoint
[src]
fn conditional_assign(&mut self, other: &AffineNielsPoint, choice: u8)
If choice == 1u8
, assign other
to self
. Otherwise, leave self
unchanged. Executes in constant time. Read more
impl<'a> Neg for &'a AffineNielsPoint
[src]
type Output = AffineNielsPoint
The resulting type after applying the -
operator
fn neg(self) -> AffineNielsPoint
The method for the unary -
operator