Botan
1.10.9
|
#include <curve_gfp.h>
Public Member Functions | |
CurveGFp () | |
CurveGFp (const BigInt &p, const BigInt &a, const BigInt &b) | |
const BigInt & | get_a () const |
const BigInt & | get_a_r () const |
const BigInt & | get_b () const |
const BigInt & | get_b_r () const |
const BigInt & | get_p () const |
word | get_p_dash () const |
size_t | get_p_words () const |
const BigInt & | get_r2 () const |
bool | operator== (const CurveGFp &other) const |
void | swap (CurveGFp &other) |
This class represents an elliptic curve over GF(p)
Definition at line 20 of file curve_gfp.h.
|
inline |
Create an uninitialized CurveGFp
Definition at line 27 of file curve_gfp.h.
Construct the elliptic curve E: y^2 = x^3 + ax + b over GF(p)
p | prime number of the field |
a | first coefficient |
b | second coefficient |
Definition at line 35 of file curve_gfp.h.
References Botan::inverse_mod(), Botan::BigInt::Power2, and r.
|
inline |
Definition at line 53 of file curve_gfp.h.
Referenced by Botan::EC_Group::DER_encode().
|
inline |
Definition at line 74 of file curve_gfp.h.
Referenced by Botan::PointGFp::on_the_curve().
|
inline |
Definition at line 58 of file curve_gfp.h.
Referenced by Botan::EC_Group::DER_encode().
|
inline |
Definition at line 79 of file curve_gfp.h.
Referenced by Botan::PointGFp::on_the_curve().
|
inline |
Get prime modulus of the field of the curve
Definition at line 64 of file curve_gfp.h.
Referenced by Botan::ECDH_KA_Operation::agree(), Botan::EC_Group::DER_encode(), Botan::EC2OSP(), Botan::PointGFp::get_affine_x(), and Botan::PointGFp::get_affine_y().
|
inline |
|
inline |
|
inline |
Definition at line 69 of file curve_gfp.h.
Referenced by Botan::PointGFp::get_affine_x(), Botan::PointGFp::get_affine_y(), and Botan::PointGFp::PointGFp().
|
inline |
Equality operator
other | curve to compare with |
Definition at line 116 of file curve_gfp.h.
|
inline |
swaps the states of *this and other, does not throw
other | curve to swap values with |
Definition at line 95 of file curve_gfp.h.
References std::swap().
Referenced by Botan::PointGFp::swap().