|
Botan 3.14.1
Crypto and TLS for C&
|
#include <bls12_381_tower.h>
Public Member Functions | |
| Fp6 | add (const Fp6 &x) const |
| const FieldElement2 & | c0 () const |
| const FieldElement2 & | c1 () const |
| const FieldElement2 & | c2 () const |
| void | conditional_assign (CT::Choice cnd, const Fp6 &other) |
| constexpr | Fp6 ()=default |
| constexpr | Fp6 (const FieldElement2 &c0, const FieldElement2 &c1, const FieldElement2 &c2) |
| Fp6 | frobenius_map () const |
| Fp6 | invert () const |
| CT::Choice | is_zero () const |
| Fp6 | mul (const Fp6 &x) const |
| Fp6 | mul_by_01 (const FieldElement2 &b0, const FieldElement2 &b1) const |
| Fp6 | mul_by_1 (const FieldElement2 &b1) const |
| Fp6 | mul_by_nonresidue () const |
| Fp6 | negate () const |
| CT::Choice | operator== (const Fp6 &other) const |
| Fp6 | square () const |
| Fp6 | sub (const Fp6 &x) const |
Static Public Member Functions | |
| static Fp6 | one () |
| static Fp6 | zero () |
An element of Fp6 = Fp2[v]/(v^3 - (u + 1))
Represented as c0 + c1*v + c2*v^2
Definition at line 19 of file bls12_381_tower.h.
|
constexprdefault |
Default constructed as zero
Referenced by add(), conditional_assign(), frobenius_map(), invert(), mul(), mul_by_01(), mul_by_1(), mul_by_nonresidue(), negate(), one(), operator==(), square(), sub(), and zero().
|
inlineconstexpr |
Definition at line 24 of file bls12_381_tower.h.
Definition at line 17 of file bls12_381_fp6.cpp.
References Fp6().
Referenced by Botan::BLS12_381::operator+().
|
inline |
Definition at line 31 of file bls12_381_tower.h.
|
inline |
Definition at line 33 of file bls12_381_tower.h.
Referenced by Botan::BLS12_381::Fp12::cyclotomic_square(), Fp6(), and invert().
|
inline |
Definition at line 35 of file bls12_381_tower.h.
| void Botan::BLS12_381::Fp6::conditional_assign | ( | CT::Choice | cnd, |
| const Fp6 & | other ) |
Definition at line 109 of file bls12_381_fp6.cpp.
References Fp6().
| Fp6 Botan::BLS12_381::Fp6::frobenius_map | ( | ) | const |
The Frobenius endomorphism x -> x^p
Definition at line 87 of file bls12_381_fp6.cpp.
References Botan::BLS12_381::FieldElement2::_unchecked_from_words(), Fp6(), and Botan::hex_to_words().
| Fp6 Botan::BLS12_381::Fp6::invert | ( | ) | const |
Return the inverse of this element, or zero for zero
Definition at line 57 of file bls12_381_fp6.cpp.
References c0(), c1(), c2(), Fp6(), and mul_by_nonresidue().
| CT::Choice Botan::BLS12_381::Fp6::is_zero | ( | ) | const |
Definition at line 13 of file bls12_381_fp6.cpp.
Definition at line 29 of file bls12_381_fp6.cpp.
References Fp6(), and mul_by_nonresidue().
Referenced by Botan::BLS12_381::operator*().
| Fp6 Botan::BLS12_381::Fp6::mul_by_01 | ( | const FieldElement2 & | b0, |
| const FieldElement2 & | b1 ) const |
Sparse multiplication by b0 + b1*v
Definition at line 76 of file bls12_381_fp6.cpp.
References Fp6(), and mul_by_nonresidue().
| Fp6 Botan::BLS12_381::Fp6::mul_by_1 | ( | const FieldElement2 & | b1 | ) | const |
Sparse multiplication by b1*v
Definition at line 72 of file bls12_381_fp6.cpp.
References Fp6(), and mul_by_nonresidue().
| Fp6 Botan::BLS12_381::Fp6::mul_by_nonresidue | ( | ) | const |
Multiplication by v
Definition at line 67 of file bls12_381_fp6.cpp.
References Fp6().
Referenced by invert(), mul(), mul_by_01(), and mul_by_1().
| Fp6 Botan::BLS12_381::Fp6::negate | ( | ) | const |
Definition at line 25 of file bls12_381_fp6.cpp.
References Fp6().
|
inlinestatic |
Definition at line 29 of file bls12_381_tower.h.
References Fp6(), Botan::BLS12_381::FieldElement2::one(), and Botan::BLS12_381::FieldElement2::zero().
Referenced by Botan::BLS12_381::Fp12::one().
| CT::Choice Botan::BLS12_381::Fp6::operator== | ( | const Fp6 & | other | ) | const |
Definition at line 105 of file bls12_381_fp6.cpp.
References Fp6().
| Fp6 Botan::BLS12_381::Fp6::square | ( | ) | const |
Definition at line 45 of file bls12_381_fp6.cpp.
References Fp6(), and square().
Referenced by square().
Definition at line 21 of file bls12_381_fp6.cpp.
References Fp6().
Referenced by Botan::BLS12_381::operator-().
|
inlinestatic |
Definition at line 27 of file bls12_381_tower.h.
References Fp6().
Referenced by Botan::BLS12_381::Fp12::one().