pub struct EquationAIsMinusThree {}Expand description
The ๐-coefficient of the short Weierstrass equation is -3.
Trait Implementationsยง
Sourceยงimpl<C: PrimeCurveParams> PointArithmetic<C> for EquationAIsMinusThree
 
impl<C: PrimeCurveParams> PointArithmetic<C> for EquationAIsMinusThree
Sourceยงfn add(lhs: &ProjectivePoint<C>, rhs: &ProjectivePoint<C>) -> ProjectivePoint<C>
 
fn add(lhs: &ProjectivePoint<C>, rhs: &ProjectivePoint<C>) -> ProjectivePoint<C>
Implements complete addition for curves with a = -3
Implements the complete addition formula from Renes-Costello-Batina 2015 (Algorithm 4). The comments after each line indicate which algorithm steps are being performed.
Sourceยงfn add_mixed(
    lhs: &ProjectivePoint<C>,
    rhs: &AffinePoint<C>,
) -> ProjectivePoint<C>
 
fn add_mixed( lhs: &ProjectivePoint<C>, rhs: &AffinePoint<C>, ) -> ProjectivePoint<C>
Implements complete mixed addition for curves with a = -3
Implements the complete mixed addition formula from Renes-Costello-Batina 2015 (Algorithm 5). The comments after each line indicate which algorithm steps are being performed.
Sourceยงfn double(point: &ProjectivePoint<C>) -> ProjectivePoint<C>
 
fn double(point: &ProjectivePoint<C>) -> ProjectivePoint<C>
Implements point doubling for curves with a = -3
Implements the exception-free point doubling formula from Renes-Costello-Batina 2015 (Algorithm 6). The comments after each line indicate which algorithm steps are being performed.
Auto Trait Implementationsยง
impl Freeze for EquationAIsMinusThree
impl RefUnwindSafe for EquationAIsMinusThree
impl Send for EquationAIsMinusThree
impl Sync for EquationAIsMinusThree
impl Unpin for EquationAIsMinusThree
impl UnwindSafe for EquationAIsMinusThree
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more