Botan 3.7.1
Crypto and TLS for C&
|
#include <pcurves.h>
Public Member Functions | |
const auto & | _curve () const |
const auto & | _value () const |
size_t | bytes () const |
Scalar | invert () const |
Scalar | invert_vartime () const |
bool | is_zero () const |
Scalar | negate () const |
Scalar & | operator= (const Scalar &other)=default |
Scalar & | operator= (Scalar &&other)=default |
Scalar (const Scalar &other)=default | |
Scalar (Scalar &&other)=default | |
template<concepts::resizable_byte_buffer T = std::vector<uint8_t>> | |
T | serialize () const |
Scalar | square () const |
~Scalar ()=default | |
Static Public Member Functions | |
static Scalar | _create (CurvePtr curve, StorageUnit v) |
Friends | |
Scalar | operator* (const Scalar &a, const Scalar &b) |
Scalar | operator+ (const Scalar &a, const Scalar &b) |
Scalar | operator- (const Scalar &a, const Scalar &b) |
bool | operator== (const Scalar &a, const Scalar &b) |
Elliptic curve scalar
This refers to the set of integers modulo the (prime) group order of the elliptic curve.
|
default |
References Scalar().
Referenced by _create(), invert(), invert_vartime(), negate(), operator*, operator+, operator-, operator=(), operator=(), operator==, Scalar(), Scalar(), and square().
|
default |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Return the size of the byte encoding of Scalars
Definition at line 72 of file pcurves.h.
Referenced by serialize().
|
inline |
|
inline |
|
inline |
|
inline |
References Scalar().
References Scalar().
|
inline |
|
inline |