Wire Sysio Wire Sysion 1.0.0
|
#include <fp6_2over3.hpp>
Public Types | |
typedef Fp_model< n, modulus > | my_Fp |
typedef Fp2_model< n, modulus > | my_Fp2 |
typedef Fp3_model< n, modulus > | my_Fp3 |
typedef my_Fp3 | my_Fpe |
Public Member Functions | |
Fp6_2over3_model () | |
Fp6_2over3_model (const my_Fp3 &c0, const my_Fp3 &c1) | |
void | print () const |
void | clear () |
bool | is_zero () const |
bool | operator== (const Fp6_2over3_model &other) const |
bool | operator!= (const Fp6_2over3_model &other) const |
Fp6_2over3_model | operator+ (const Fp6_2over3_model &other) const |
Fp6_2over3_model | operator- (const Fp6_2over3_model &other) const |
Fp6_2over3_model | operator* (const Fp6_2over3_model &other) const |
Fp6_2over3_model | mul_by_2345 (const Fp6_2over3_model &other) const |
Fp6_2over3_model | operator- () const |
Fp6_2over3_model | squared () const |
Fp6_2over3_model | inverse () const |
Fp6_2over3_model | Frobenius_map (unsigned long power) const |
Fp6_2over3_model | unitary_inverse () const |
Fp6_2over3_model | cyclotomic_squared () const |
template<mp_size_t m> | |
Fp6_2over3_model | cyclotomic_exp (const bigint< m > &exponent) const |
Static Public Member Functions | |
static Fp6_2over3_model< n, modulus > | zero () |
static Fp6_2over3_model< n, modulus > | one () |
static Fp6_2over3_model< n, modulus > | random_element () |
static my_Fp3 | mul_by_non_residue (const my_Fp3 &elem) |
static bigint< n > | base_field_char () |
static constexpr size_t | extension_degree () |
Public Attributes | |
my_Fp3 | c0 |
my_Fp3 | c1 |
Static Public Attributes | |
static my_Fp | non_residue |
static my_Fp | Frobenius_coeffs_c1 [6] |
Friends | |
std::ostream & | operator (std::ostream &out, const Fp6_2over3_model< n, modulus > &el) |
std::istream & | operator>> (std::istream &in, Fp6_2over3_model< n, modulus > &el) |
Arithmetic in the finite field F[(p^3)^2].
Let p := modulus. This interface provides arithmetic for the extension field Fp6 = Fp3[Y]/(Y^2-X) where Fp3 = Fp[X]/(X^3-non_residue) and non_residue is in Fp.
ASSUMPTION: p = 1 (mod 6)
Definition at line 36 of file fp6_2over3.hpp.
Fp_model<n, modulus> libff::Fp6_2over3_model< n, modulus >::my_Fp |
Definition at line 38 of file fp6_2over3.hpp.
Fp2_model<n, modulus> libff::Fp6_2over3_model< n, modulus >::my_Fp2 |
Definition at line 39 of file fp6_2over3.hpp.
Fp3_model<n, modulus> libff::Fp6_2over3_model< n, modulus >::my_Fp3 |
Definition at line 40 of file fp6_2over3.hpp.
my_Fp3 libff::Fp6_2over3_model< n, modulus >::my_Fpe |
Definition at line 41 of file fp6_2over3.hpp.
|
inline |
Definition at line 47 of file fp6_2over3.hpp.
|
inline |
Definition at line 48 of file fp6_2over3.hpp.
|
inlinestatic |
Definition at line 77 of file fp6_2over3.hpp.
|
inline |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::cyclotomic_exp | ( | const bigint< m > & | exponent | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::cyclotomic_squared | ( | ) | const |
|
inlinestaticconstexpr |
Definition at line 78 of file fp6_2over3.hpp.
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::Frobenius_map | ( | unsigned long | power | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::inverse | ( | ) | const |
|
inline |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::mul_by_2345 | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
|
static |
|
static |
bool libff::Fp6_2over3_model< n, modulus >::operator!= | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::operator* | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::operator+ | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::operator- | ( | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::operator- | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
bool libff::Fp6_2over3_model< n, modulus >::operator== | ( | const Fp6_2over3_model< n, modulus > & | other | ) | const |
|
inline |
Definition at line 50 of file fp6_2over3.hpp.
|
static |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::squared | ( | ) | const |
Fp6_2over3_model libff::Fp6_2over3_model< n, modulus >::unitary_inverse | ( | ) | const |
|
static |
|
friend |
|
friend |
my_Fp3 libff::Fp6_2over3_model< n, modulus >::c0 |
Definition at line 46 of file fp6_2over3.hpp.
my_Fp3 libff::Fp6_2over3_model< n, modulus >::c1 |
Definition at line 46 of file fp6_2over3.hpp.
|
static |
Definition at line 44 of file fp6_2over3.hpp.
|
static |
Definition at line 43 of file fp6_2over3.hpp.