Botan 3.7.1
Crypto and TLS for C&
|
#include <pcurves.h>
Public Member Functions | |
const auto & | _curve () const |
const auto & | _x () const |
const auto & | _y () const |
AffinePoint (AffinePoint &&other)=default | |
AffinePoint (const AffinePoint &other)=default | |
size_t | bytes () const |
size_t | compressed_bytes () const |
bool | is_identity () const |
AffinePoint | negate () const |
AffinePoint & | operator= (AffinePoint &&other)=default |
AffinePoint & | operator= (const AffinePoint &other)=default |
template<concepts::resizable_byte_buffer T = std::vector<uint8_t>> | |
T | serialize () const |
template<concepts::resizable_byte_buffer T = std::vector<uint8_t>> | |
T | serialize_compressed () const |
template<concepts::resizable_byte_buffer T = secure_vector<uint8_t>> | |
T | x_bytes () const |
~AffinePoint ()=default | |
Static Public Member Functions | |
static AffinePoint | _create (CurvePtr curve, StorageUnit x, StorageUnit y) |
static AffinePoint | generator (CurvePtr curve) |
A point on the elliptic curve in affine form
These points can be serialized, or converted to projective form for computation
|
default |
Referenced by _create().
|
default |
|
default |
|
inlinestatic |
Definition at line 217 of file pcurves.h.
References AffinePoint().
|
inline |
Definition at line 211 of file pcurves.h.
Referenced by Botan::PCurve::PrimeOrderCurve::ProjectivePoint::from_affine().
|
inline |
|
inline |
|
inline |
Return the size of the uncompressed encoding of points
Definition at line 164 of file pcurves.h.
Referenced by serialize(), serialize_compressed(), and x_bytes().
|
inline |
Return the size of the compressed encoding of points
Definition at line 169 of file pcurves.h.
Referenced by serialize_compressed().
|
inlinestatic |
Definition at line 159 of file pcurves.h.
References generator().
Referenced by generator().
|
inline |
Return true if this is the curve identity element (aka the point at infinity)
Definition at line 209 of file pcurves.h.
Referenced by Botan::EC_AffinePoint_Data_PC::EC_AffinePoint_Data_PC(), and Botan::EC_AffinePoint_Data_PC::EC_AffinePoint_Data_PC().
|
inline |
|
default |
|
default |
|
inline |
|
inline |
Return the serialization of the point in compressed form
Definition at line 185 of file pcurves.h.
References bytes(), compressed_bytes(), and T.
|
inline |