Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
#include <bn128_g2.hpp>
Public Types | |
typedef bn128_Fq | base_field |
typedef bn128_Fr | scalar_field |
Public Member Functions | |
void | fill_coord (bn::Fp2 coord[3]) const |
bn128_G2 () | |
bn128_G2 (bn::Fp2 coord[3]) | |
void | print () const |
void | print_coordinates () const |
void | to_affine_coordinates () |
void | to_special () |
bool | is_special () const |
bool | is_zero () const |
bool | operator== (const bn128_G2 &other) const |
bool | operator!= (const bn128_G2 &other) const |
bn128_G2 | operator+ (const bn128_G2 &other) const |
bn128_G2 | operator- () const |
bn128_G2 | operator- (const bn128_G2 &other) const |
bn128_G2 | add (const bn128_G2 &other) const |
bn128_G2 | mixed_add (const bn128_G2 &other) const |
bn128_G2 | dbl () const |
bn128_G2 | mul_by_cofactor () const |
bool | is_well_formed () const |
bool | is_in_safe_subgroup () const |
void | write_uncompressed (std::ostream &) const |
void | write_compressed (std::ostream &) const |
Static Public Member Functions | |
static const bn128_G2 & | zero () |
static const bn128_G2 & | one () |
static bn128_G2 | random_element () |
static size_t | size_in_bits () |
static bigint< base_field::num_limbs > | base_field_char () |
static bigint< scalar_field::num_limbs > | order () |
static void | read_uncompressed (std::istream &, bn128_G2 &) |
static void | read_compressed (std::istream &, bn128_G2 &) |
static void | batch_to_special_all_non_zeros (std::vector< bn128_G2 > &vec) |
Public Attributes | |
bn::Fp2 | X |
bn::Fp2 | Y |
bn::Fp2 | Z |
Static Public Attributes | |
static std::vector< size_t > | wnaf_window_table |
static std::vector< size_t > | fixed_base_exp_window_table |
static bn128_G2 | G2_zero |
static bn128_G2 | G2_one |
static const mp_size_t | h_bitcount = 256 |
static const mp_size_t | h_limbs |
static bigint< h_limbs > | h |
Definition at line 24 of file bn128_g2.hpp.
typedef bn128_Fq libff::bn128_G2::base_field |
Definition at line 39 of file bn128_g2.hpp.
Definition at line 40 of file bn128_g2.hpp.
libff::bn128_G2::bn128_G2 | ( | ) |
|
inline |
Definition at line 57 of file bn128_g2.hpp.
Definition at line 195 of file bn128_g2.cpp.
|
inlinestatic |
|
static |
bn128_G2 libff::bn128_G2::dbl | ( | ) | const |
Definition at line 295 of file bn128_g2.cpp.
|
inline |
bool libff::bn128_G2::is_in_safe_subgroup | ( | ) | const |
bool libff::bn128_G2::is_special | ( | ) | const |
Definition at line 121 of file bn128_g2.cpp.
bool libff::bn128_G2::is_well_formed | ( | ) | const |
bool libff::bn128_G2::is_zero | ( | ) | const |
bn128_G2 libff::bn128_G2::mul_by_cofactor | ( | ) | const |
Definition at line 309 of file bn128_g2.cpp.
|
static |
bool libff::bn128_G2::operator!= | ( | const bn128_G2 & | other | ) | const |
bn128_G2 libff::bn128_G2::operator- | ( | ) | const |
Definition at line 183 of file bn128_g2.cpp.
Definition at line 190 of file bn128_g2.cpp.
bool libff::bn128_G2::operator== | ( | const bn128_G2 & | other | ) | const |
Definition at line 125 of file bn128_g2.cpp.
|
inlinestatic |
void libff::bn128_G2::print | ( | ) | const |
void libff::bn128_G2::print_coordinates | ( | ) | const |
|
static |
|
static |
Definition at line 419 of file bn128_g2.cpp.
|
static |
Definition at line 388 of file bn128_g2.cpp.
|
inlinestatic |
void libff::bn128_G2::to_affine_coordinates | ( | ) |
Definition at line 101 of file bn128_g2.cpp.
void libff::bn128_G2::to_special | ( | ) |
void libff::bn128_G2::write_compressed | ( | std::ostream & | out | ) | const |
Definition at line 371 of file bn128_g2.cpp.
void libff::bn128_G2::write_uncompressed | ( | std::ostream & | out | ) | const |
Definition at line 352 of file bn128_g2.cpp.
|
static |
|
static |
Definition at line 35 of file bn128_g2.hpp.
|
static |
Definition at line 37 of file bn128_g2.hpp.
|
static |
Definition at line 36 of file bn128_g2.hpp.
|
static |
Definition at line 46 of file bn128_g2.hpp.
|
static |
Definition at line 43 of file bn128_g2.hpp.
|
static |
Definition at line 44 of file bn128_g2.hpp.
|
static |
Definition at line 34 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::X |
Definition at line 48 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::Y |
Definition at line 48 of file bn128_g2.hpp.
bn::Fp2 libff::bn128_G2::Z |
Definition at line 48 of file bn128_g2.hpp.