Struct curve25519_dalek::backend::vector::avx2::edwards::ExtendedPoint [−][src]
pub struct ExtendedPoint(pub(super) FieldElement2625x4);
simd_backend
and (target features avx2
or avx512ifma
) and target feature avx2
and non-target feature avx512ifma
only.Expand description
A point on Curve25519, using parallel Edwards formulas for curve operations.
Invariant
The coefficients of an ExtendedPoint
are bounded with
\( b < 0.007 \).
Tuple Fields
0: FieldElement2625x4
Implementations
Compute the double of this point.
Trait Implementations
Add an ExtendedPoint
and a CachedPoint
.
type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the +
operator.
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Returns the identity element of the curve. Can be used as a constructor. Read more
Implement subtraction by negating the point and adding.
Empirically, this seems about the same cost as a custom subtraction impl (maybe because the benefit is cancelled by increased code size?)
type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the -
operator.
Auto Trait Implementations
impl RefUnwindSafe for ExtendedPoint
impl Send for ExtendedPoint
impl Sync for ExtendedPoint
impl Unpin for ExtendedPoint
impl UnwindSafe for ExtendedPoint
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
.
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
.