Botan 3.5.0
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 |
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 |
|
default |
|
default |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |