Botan 3.5.0
Crypto and TLS for C&
|
#include <pcurves.h>
Public Member Functions | |
const auto & | _curve () const |
const auto & | _x () const |
const auto & | _y () const |
const auto & | _z () const |
ProjectivePoint | dbl () const |
ProjectivePoint | negate () const |
ProjectivePoint & | operator= (const ProjectivePoint &other)=default |
ProjectivePoint & | operator= (ProjectivePoint &&other)=default |
ProjectivePoint (const ProjectivePoint &other)=default | |
ProjectivePoint (ProjectivePoint &&other)=default | |
AffinePoint | to_affine () const |
~ProjectivePoint ()=default | |
Static Public Member Functions | |
static ProjectivePoint | _create (CurvePtr curve, StorageUnit x, StorageUnit y, StorageUnit z) |
static ProjectivePoint | from_affine (const AffinePoint &pt) |
Friends | |
ProjectivePoint | operator+ (const ProjectivePoint &x, const AffinePoint &y) |
ProjectivePoint | operator+ (const ProjectivePoint &x, const ProjectivePoint &y) |
A point on the elliptic curve in projective form
This is a form that is convenient for computation; it must be converted to affine form for comparisons or serialization.
|
default |
|
default |
|
default |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Convert a point from affine to projective form
Definition at line 234 of file pcurves.h.
References Botan::PCurve::PrimeOrderCurve::AffinePoint::_curve().
|
inline |
|
default |
|
default |
|
inline |
Convert a point from projective to affine form
This operation is expensive; perform it only when required for serialization
Definition at line 242 of file pcurves.h.
Referenced by Botan::PCurve::PrimeOrderCurveImpl< C >::base_point_mul_x_mod_order(), and Botan::PCurve::PrimeOrderCurveImpl< C >::mul2_vartime_x_mod_order().
|
friend |
|
friend |