pub struct EquationAIsGeneric {}Expand description
The ๐-coefficient of the short Weierstrass equation does not have specific properties which allow for an optimized implementation.
Trait Implementationsยง
Sourceยงimpl<C: PrimeCurveParams> PointArithmetic<C> for EquationAIsGeneric
 
impl<C: PrimeCurveParams> PointArithmetic<C> for EquationAIsGeneric
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 any curve
Implements the complete addition formula from Renes-Costello-Batina 2015 (Algorithm 1). 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 any a
Implements the complete mixed addition formula from Renes-Costello-Batina 2015 (Algorithm 2). 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 any a
Implements the exception-free point doubling formula from Renes-Costello-Batina 2015 (Algorithm 3). The comments after each line indicate which algorithm steps are being performed.