Botan 3.4.0
Crypto and TLS for C&
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[], 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 to_curve_rep (BigInt &x, secure_vector< word > &ws) const =0
 
virtual ~CurveGFp_Repr ()=default
 

Detailed Description

Definition at line 21 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.

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

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

◆ curve_mul_words()

virtual void Botan::CurveGFp_Repr::curve_mul_words ( BigInt & z,
const word x_words[],
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 68 of file curve_gfp.h.

68 {
69 BOTAN_DEBUG_ASSERT(x.sig_words() <= get_p_words());
70 curve_sqr_words(z, x.data(), x.size(), ws);
71 }
virtual void curve_sqr_words(BigInt &z, const word x_words[], size_t x_size, secure_vector< word > &ws) const =0

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

◆ 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

◆ 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: