Botan  2.7.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::CurveGFp_Repr Class Referenceabstract

#include <curve_gfp.h>

Public Member Functions

virtual bool a_is_minus_3 () const =0
 
virtual bool a_is_zero () const =0
 
void curve_mul (BigInt &z, const BigInt &x, const BigInt &y, secure_vector< word > &ws) const
 
virtual void curve_mul_words (BigInt &z, const word x_words[], const size_t x_size, const BigInt &y, secure_vector< word > &ws) const =0
 
void curve_sqr (BigInt &z, const BigInt &x, secure_vector< word > &ws) const
 
virtual void curve_sqr_words (BigInt &z, const word x_words[], size_t x_size, secure_vector< word > &ws) const =0
 
virtual void from_curve_rep (BigInt &x, secure_vector< word > &ws) const =0
 
virtual const BigIntget_1_rep () const =0
 
virtual const BigIntget_a () const =0
 
virtual const BigIntget_a_rep () const =0
 
virtual const BigIntget_b () const =0
 
virtual const BigIntget_b_rep () const =0
 
virtual const BigIntget_p () const =0
 
virtual size_t get_p_words () const =0
 
virtual size_t get_ws_size () const =0
 
virtual BigInt invert_element (const BigInt &x, secure_vector< word > &ws) const =0
 
virtual bool is_one (const BigInt &x) const =0
 
virtual void redc_mod_p (BigInt &z, secure_vector< word > &ws) const =0
 
virtual void to_curve_rep (BigInt &x, secure_vector< word > &ws) const =0
 
virtual ~CurveGFp_Repr ()=default
 

Detailed Description

Definition at line 18 of file curve_gfp.h.

Constructor & Destructor Documentation

◆ ~CurveGFp_Repr()

virtual Botan::CurveGFp_Repr::~CurveGFp_Repr ( )
virtualdefault

Member Function Documentation

◆ a_is_minus_3()

virtual bool Botan::CurveGFp_Repr::a_is_minus_3 ( ) const
pure virtual

◆ a_is_zero()

virtual bool Botan::CurveGFp_Repr::a_is_zero ( ) const
pure virtual

◆ curve_mul()

void Botan::CurveGFp_Repr::curve_mul ( BigInt z,
const BigInt x,
const BigInt y,
secure_vector< word > &  ws 
) const
inline

Definition at line 60 of file curve_gfp.h.

References BOTAN_DEBUG_ASSERT, and Botan::BigInt::sig_words().

62  {
63  BOTAN_DEBUG_ASSERT(x.sig_words() <= m_p_words);
64  curve_mul_words(z, x.data(), x.size(), y, ws);
65  }
#define BOTAN_DEBUG_ASSERT(expr)
Definition: assert.h:111
virtual void curve_mul_words(BigInt &z, const word x_words[], const size_t x_size, const BigInt &y, secure_vector< word > &ws) const =0

◆ curve_mul_words()

virtual void Botan::CurveGFp_Repr::curve_mul_words ( BigInt z,
const word  x_words[],
const size_t  x_size,
const BigInt y,
secure_vector< word > &  ws 
) const
pure virtual

◆ curve_sqr()

void Botan::CurveGFp_Repr::curve_sqr ( BigInt z,
const BigInt x,
secure_vector< word > &  ws 
) const
inline

Definition at line 73 of file curve_gfp.h.

References BOTAN_DEBUG_ASSERT, and Botan::BigInt::sig_words().

75  {
76  BOTAN_DEBUG_ASSERT(x.sig_words() <= m_p_words);
77  curve_sqr_words(z, x.data(), x.size(), ws);
78  }
virtual void curve_sqr_words(BigInt &z, const word x_words[], size_t x_size, secure_vector< word > &ws) const =0
#define BOTAN_DEBUG_ASSERT(expr)
Definition: assert.h:111

◆ curve_sqr_words()

virtual void Botan::CurveGFp_Repr::curve_sqr_words ( BigInt z,
const word  x_words[],
size_t  x_size,
secure_vector< word > &  ws 
) const
pure virtual

◆ from_curve_rep()

virtual void Botan::CurveGFp_Repr::from_curve_rep ( BigInt x,
secure_vector< word > &  ws 
) const
pure virtual

◆ get_1_rep()

virtual const BigInt& Botan::CurveGFp_Repr::get_1_rep ( ) const
pure virtual

◆ get_a()

virtual const BigInt& Botan::CurveGFp_Repr::get_a ( ) const
pure virtual

◆ get_a_rep()

virtual const BigInt& Botan::CurveGFp_Repr::get_a_rep ( ) const
pure virtual

◆ get_b()

virtual const BigInt& Botan::CurveGFp_Repr::get_b ( ) const
pure virtual

◆ get_b_rep()

virtual const BigInt& Botan::CurveGFp_Repr::get_b_rep ( ) const
pure virtual

◆ get_p()

virtual const BigInt& Botan::CurveGFp_Repr::get_p ( ) const
pure virtual

◆ get_p_words()

virtual size_t Botan::CurveGFp_Repr::get_p_words ( ) const
pure virtual

◆ get_ws_size()

virtual size_t Botan::CurveGFp_Repr::get_ws_size ( ) const
pure virtual

◆ invert_element()

virtual BigInt Botan::CurveGFp_Repr::invert_element ( const BigInt x,
secure_vector< word > &  ws 
) const
pure virtual

◆ is_one()

virtual bool Botan::CurveGFp_Repr::is_one ( const BigInt x) const
pure virtual

◆ redc_mod_p()

virtual void Botan::CurveGFp_Repr::redc_mod_p ( BigInt z,
secure_vector< word > &  ws 
) const
pure virtual

◆ to_curve_rep()

virtual void Botan::CurveGFp_Repr::to_curve_rep ( BigInt x,
secure_vector< word > &  ws 
) const
pure virtual

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