Struct curve25519_dalek::curve::CachedPoint
[−]
[src]
pub struct CachedPoint { /* fields omitted */ }
A pre-computed point in the P³(𝔽ₚ) model for the curve, represented as (Y+X, Y-X, Z, 2dXY). These precomputations accelerate addition and subtraction.
Trait Implementations
impl Copy for CachedPoint
[src]
impl Clone for CachedPoint
[src]
fn clone(&self) -> CachedPoint
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 CachedPoint
[src]
fn identity() -> CachedPoint
Returns the identity element of the curve. Can be used as a constructor. Read more
impl CTAssignable for CachedPoint
[src]
fn conditional_assign(&mut self, other: &CachedPoint, choice: u8)
If choice == 1u8
, assign other
to self
. Otherwise, leave self
unchanged. Executes in constant time. Read more
impl<'a> Neg for &'a CachedPoint
[src]
type Output = CachedPoint
The resulting type after applying the -
operator
fn neg(self) -> CachedPoint
The method for the unary -
operator