Botan
2.1.0
Crypto and TLS for C++11
|
#include <curve_gfp.h>
Public Member Functions | |
CurveGFp ()=default | |
CurveGFp (const BigInt &p, const BigInt &a, const BigInt &b) | |
CurveGFp (const CurveGFp &)=default | |
void | from_rep (BigInt &x, secure_vector< word > &ws) const |
BigInt | from_rep (const BigInt &x, secure_vector< word > &ws) const |
const BigInt & | get_a () const |
const BigInt & | get_a_rep () const |
const BigInt & | get_b () const |
const BigInt & | get_b_rep () const |
const BigInt & | get_p () const |
void | mul (BigInt &z, const BigInt &x, const BigInt &y, secure_vector< word > &ws) const |
BigInt | mul (const BigInt &x, const BigInt &y, secure_vector< word > &ws) const |
CurveGFp & | operator= (const CurveGFp &)=default |
void | sqr (BigInt &z, const BigInt &x, secure_vector< word > &ws) const |
BigInt | sqr (const BigInt &x, secure_vector< word > &ws) const |
void | swap (CurveGFp &other) |
void | to_rep (BigInt &x, secure_vector< word > &ws) const |
This class represents an elliptic curve over GF(p)
Definition at line 53 of file curve_gfp.h.
|
default |
Create an uninitialized CurveGFp
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 68 of file curve_gfp.h.
|
default |
|
inline |
Definition at line 102 of file curve_gfp.h.
Referenced by Botan::PointGFp::get_affine_x(), and Botan::PointGFp::on_the_curve().
|
inline |
Definition at line 107 of file curve_gfp.h.
|
inline |
Definition at line 80 of file curve_gfp.h.
Referenced by Botan::EC_Group::DER_encode(), Botan::operator==(), and Botan::EC_Group::verify_group().
|
inline |
Definition at line 93 of file curve_gfp.h.
Referenced by Botan::PointGFp::on_the_curve().
|
inline |
Definition at line 85 of file curve_gfp.h.
Referenced by Botan::EC_Group::DER_encode(), Botan::operator==(), and Botan::EC_Group::verify_group().
|
inline |
Definition at line 95 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 91 of file curve_gfp.h.
Referenced by Botan::EC_Group::DER_encode(), Botan::EC2OSP(), Botan::PointGFp::get_affine_x(), Botan::PointGFp::get_affine_y(), Botan::EC_PublicKey::key_length(), Botan::operator==(), Botan::PointGFp::PointGFp(), and Botan::EC_Group::verify_group().
|
inline |
Definition at line 116 of file curve_gfp.h.
|
inline |
Definition at line 121 of file curve_gfp.h.
|
inline |
Definition at line 128 of file curve_gfp.h.
|
inline |
Definition at line 133 of file curve_gfp.h.
|
inline |
Definition at line 140 of file curve_gfp.h.
Referenced by Botan::PointGFp::swap().
|
inline |
Definition at line 97 of file curve_gfp.h.
Referenced by Botan::PointGFp::get_affine_y(), Botan::PointGFp::PointGFp(), and Botan::PointGFp::randomize_repr().