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 |
References AffinePoint().
Referenced by _create(), AffinePoint(), AffinePoint(), generator(), negate(), operator=(), and operator=().
|
default |
References AffinePoint().
|
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 AffinePoint(), and generator().
Referenced by generator().
|
inline |
|
inline |
Point negation
Definition at line 204 of file pcurves.h.
References AffinePoint().
|
default |
References AffinePoint().
|
default |
References AffinePoint().
|
inline |
|
inline |
Return the serialization of the point in compressed form
Definition at line 185 of file pcurves.h.
References bytes(), and compressed_bytes().
|
inline |