Struct curve25519_dalek::curve::PreComputedPoint
[−]
[src]
pub struct PreComputedPoint { 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.
Fields
y_plus_x: FieldElement
y_minus_x: FieldElement
xy2d: FieldElement
Trait Implementations
impl Copy for PreComputedPoint
[src]
impl Clone for PreComputedPoint
[src]
fn clone(&self) -> PreComputedPoint
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 Identity for PreComputedPoint
[src]
fn identity() -> PreComputedPoint
Returns the identity element of the curve. Can be used as a constructor. Read more
impl CTAssignable for PreComputedPoint
[src]
fn conditional_assign(&mut self, other: &PreComputedPoint, choice: u8)
If choice == 1u8
, assign other
to self
. Otherwise, leave self
unchanged. Executes in constant time. Read more
impl<'a> Neg for &'a PreComputedPoint
[src]
type Output = PreComputedPoint
The resulting type after applying the -
operator
fn neg(self) -> PreComputedPoint
The method for the unary -
operator