Wire Sysio Wire Sysion 1.0.0
|
#include <fp2.hpp>
Public Types | |
typedef Fp_model< n, modulus > | my_Fp |
Public Member Functions | |
Fp2_model () | |
Fp2_model (const my_Fp &c0, const my_Fp &c1) | |
void | clear () |
void | print () const |
bool | is_zero () const |
bool | operator== (const Fp2_model &other) const |
bool | operator!= (const Fp2_model &other) const |
Fp2_model | operator+ (const Fp2_model &other) const |
Fp2_model | operator- (const Fp2_model &other) const |
Fp2_model | operator* (const Fp2_model &other) const |
Fp2_model | operator- () const |
Fp2_model | squared () const |
Fp2_model | inverse () const |
Fp2_model | Frobenius_map (unsigned long power) const |
Fp2_model | sqrt () const |
Fp2_model | squared_karatsuba () const |
Fp2_model | squared_complex () const |
template<mp_size_t m> | |
Fp2_model | operator^ (const bigint< m > &other) const |
Static Public Member Functions | |
static Fp2_model< n, modulus > | zero () |
static Fp2_model< n, modulus > | one () |
static Fp2_model< n, modulus > | random_element () |
static size_t | size_in_bits () |
static bigint< n > | base_field_char () |
Public Attributes | |
my_Fp | c0 |
my_Fp | c1 |
Static Public Attributes | |
static bigint< 2 *n > | euler |
static size_t | s |
static bigint< 2 *n > | t |
static bigint< 2 *n > | t_minus_1_over_2 |
static my_Fp | non_residue |
static Fp2_model< n, modulus > | nqr |
static Fp2_model< n, modulus > | nqr_to_t |
static my_Fp | Frobenius_coeffs_c1 [2] |
Friends | |
std::ostream & | operator (std::ostream &out, const Fp2_model< n, modulus > &el) |
std::istream & | operator>> (std::istream &in, Fp2_model< n, modulus > &el) |
Arithmetic in the field F[p^2].
Let p := modulus. This interface provides arithmetic for the extension field Fp2 = Fp[U]/(U^2-non_residue), where non_residue is in Fp.
ASSUMPTION: p = 1 (mod 6)
Fp_model<n, modulus> libff::Fp2_model< n, modulus >::my_Fp |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
Fp2_model libff::Fp2_model< n, modulus >::Frobenius_map | ( | unsigned long | power | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::inverse | ( | ) | const |
|
inline |
|
static |
bool libff::Fp2_model< n, modulus >::operator!= | ( | const Fp2_model< n, modulus > & | other | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::operator* | ( | const Fp2_model< n, modulus > & | other | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::operator+ | ( | const Fp2_model< n, modulus > & | other | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::operator- | ( | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::operator- | ( | const Fp2_model< n, modulus > & | other | ) | const |
bool libff::Fp2_model< n, modulus >::operator== | ( | const Fp2_model< n, modulus > & | other | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::operator^ | ( | const bigint< m > & | other | ) | const |
|
inline |
Definition at line 54 of file fp2.hpp.
|
static |
|
inlinestatic |
Fp2_model libff::Fp2_model< n, modulus >::sqrt | ( | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::squared | ( | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::squared_complex | ( | ) | const |
Fp2_model libff::Fp2_model< n, modulus >::squared_karatsuba | ( | ) | const |
|
static |
|
friend |
|
friend |
my_Fp libff::Fp2_model< n, modulus >::c0 |
my_Fp libff::Fp2_model< n, modulus >::c1 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |