Botan 3.5.0
Crypto and TLS for C&
Botan::CurveGFp Class Referencefinal

#include <curve_gfp.h>

Public Member Functions

const BigIntget_a () const
 
const BigIntget_b () const
 
const BigIntget_p () const
 

Friends

class EC_Group
 
class EC_Group_Data
 
class EC_Point
 
class EC_Point_Base_Point_Precompute
 
class EC_Point_Var_Point_Precompute
 
void swap (CurveGFp &x, CurveGFp &y)
 

Detailed Description

This class represents an elliptic curve over GF(p)

There should not be any reason for applications to use this type. If you need EC primitives use the interfaces EC_Group and EC_Point

It is likely this class will be removed entirely in a future major release.

Definition at line 93 of file curve_gfp.h.

Member Function Documentation

◆ get_a()

const BigInt & Botan::CurveGFp::get_a ( ) const
inline
Returns
curve coefficient a

Definition at line 98 of file curve_gfp.h.

98{ return m_repr->get_a(); }

Referenced by Botan::OS2ECP().

◆ get_b()

const BigInt & Botan::CurveGFp::get_b ( ) const
inline
Returns
curve coefficient b

Definition at line 103 of file curve_gfp.h.

103{ return m_repr->get_b(); }

Referenced by Botan::OS2ECP().

◆ get_p()

const BigInt & Botan::CurveGFp::get_p ( ) const
inline

Get prime modulus of the field of the curve

Returns
prime modulus of the field of the curve

Definition at line 109 of file curve_gfp.h.

109{ return m_repr->get_p(); }

Referenced by Botan::EC_Point::add(), Botan::EC_Point::add_affine(), Botan::EC_Point::EC_Point(), Botan::EC_Point::encode(), Botan::EC_Point::mult2(), Botan::OS2ECP(), and Botan::EC_Point::randomize_repr().

Friends And Related Symbol Documentation

◆ EC_Group

friend class EC_Group
friend

Definition at line 113 of file curve_gfp.h.

◆ EC_Group_Data

friend class EC_Group_Data
friend

Definition at line 114 of file curve_gfp.h.

◆ EC_Point

friend class EC_Point
friend

Definition at line 112 of file curve_gfp.h.

◆ EC_Point_Base_Point_Precompute

friend class EC_Point_Base_Point_Precompute
friend

Definition at line 115 of file curve_gfp.h.

◆ EC_Point_Var_Point_Precompute

friend class EC_Point_Var_Point_Precompute
friend

Definition at line 116 of file curve_gfp.h.

◆ swap

void swap ( CurveGFp & x,
CurveGFp & y )
friend

Definition at line 201 of file curve_gfp.h.

201{ x.swap(y); }

The documentation for this class was generated from the following files: