Botan 3.6.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 |
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 |
Return the modular inverse of *this
If *this is zero then returns zero.
Definition at line 119 of file pcurves.h.
Referenced by Botan::EC_Scalar_Data_PC::invert().
|
inline |
|
inline |
Negate modulo the group order (ie return p - *this where p is the group order)
Definition at line 107 of file pcurves.h.
Referenced by Botan::EC_Scalar_Data_PC::negate().
|
inline |
|
inline |
Square modulo the group order
Definition at line 112 of file pcurves.h.
Referenced by Botan::EC_Scalar_Data_PC::square_self().