|
Botan 3.14.1
Crypto and TLS for C&
|
Classes | |
| class | FieldElement |
| class | FieldElement2 |
| class | Fp12 |
| class | Fp6 |
| class | G1Affine |
| class | G1Projective |
| class | G2Affine |
| class | G2Projective |
| class | GroupOps |
| class | Gt |
| class | PointMul |
| class | Scalar |
Functions | |
| FieldElement | operator* (const FieldElement &a, const FieldElement &b) |
| FieldElement2 | operator* (const FieldElement2 &a, const FieldElement2 &b) |
| Fp12 | operator* (const Fp12 &a, const Fp12 &b) |
| Fp6 | operator* (const Fp6 &a, const Fp6 &b) |
| Scalar | operator* (const Scalar &a, const Scalar &b) |
| FieldElement | operator+ (const FieldElement &a, const FieldElement &b) |
| FieldElement2 | operator+ (const FieldElement2 &a, const FieldElement2 &b) |
| Fp12 | operator+ (const Fp12 &a, const Fp12 &b) |
| Fp6 | operator+ (const Fp6 &a, const Fp6 &b) |
| Scalar | operator+ (const Scalar &a, const Scalar &b) |
| FieldElement | operator- (const FieldElement &a, const FieldElement &b) |
| FieldElement2 | operator- (const FieldElement2 &a, const FieldElement2 &b) |
| Fp12 | operator- (const Fp12 &a, const Fp12 &b) |
| Fp6 | operator- (const Fp6 &a, const Fp6 &b) |
| Scalar | operator- (const Scalar &a, const Scalar &b) |
| size_t | pippenger_window_bits (size_t n) |
| template<typename FE, size_t N> | |
| FE | pow_msb (const FE &x, const std::array< word, N > &exp) |
| FieldElement2 | pow_p2_minus_9_over_16 (const FieldElement2 &x) |
| std::pair< size_t, CT::Choice > | scalar_booth_window (std::span< const uint8_t, Scalar::BYTES > bytes, size_t window, size_t window_bits) |
| size_t | scalar_window_at (std::span< const uint8_t, Scalar::BYTES > bytes, size_t bit, size_t c) |
Variables | |
| constexpr uint64_t | BLS_Z_ABS = 0xD201000000010000 |
|
inline |
Definition at line 147 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement::mul().
|
inline |
Definition at line 282 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement2::mul().
Definition at line 187 of file bls12_381_tower.h.
References Botan::BLS12_381::Fp12::mul().
Multiplication modulo r
Definition at line 182 of file bls12_381.h.
References Botan::BLS12_381::Scalar::mul().
|
inline |
Definition at line 139 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement::add().
|
inline |
Definition at line 274 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement2::add().
Definition at line 179 of file bls12_381_tower.h.
References Botan::BLS12_381::Fp12::add().
Addition modulo r
Definition at line 172 of file bls12_381.h.
References Botan::BLS12_381::Scalar::add().
|
inline |
Definition at line 143 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement::sub().
|
inline |
Definition at line 278 of file bls12_381_fields.h.
References Botan::BLS12_381::FieldElement2::sub().
Definition at line 183 of file bls12_381_tower.h.
References Botan::BLS12_381::Fp12::sub().
Subtraction modulo r
Definition at line 177 of file bls12_381.h.
References Botan::BLS12_381::Scalar::sub().
|
inline |
Window size heuristic for the Pippenger bucket method, approximately ln(n) + 2
Definition at line 29 of file bls12_381_point_mul.h.
Referenced by Botan::BLS12_381::PointMul< Pt >::msm_vartime().
| FE Botan::BLS12_381::pow_msb | ( | const FE & | x, |
| const std::array< word, N > & | exp ) |
Generic MSB-first exponentiation with a fixed public exponent
Since every exponent used is a fixed constant, each user could instead use an addchain generated chain (as invert does), reducing the multiplication count roughly 3x; the sqrts during G1 and especially G2 deserialization would benefit the most.
Definition at line 297 of file bls12_381_fields.h.
Referenced by Botan::BLS12_381::FieldElement2::sqrt(), and Botan::BLS12_381::FieldElement::sqrt().
| FieldElement2 Botan::BLS12_381::pow_p2_minus_9_over_16 | ( | const FieldElement2 & | x | ) |
Definition at line 144 of file bls12_381_fp2.cpp.
References Botan::BLS12_381::FieldElement2::conjugate(), and Botan::BLS12_381::FieldElement2::square().
|
inline |
Extract the Booth recoded window of a serialized scalar; constant time with respect to the scalar bytes
Definition at line 61 of file bls12_381_point_mul.h.
References Botan::booth_recode(), and scalar_window_at().
Referenced by Botan::BLS12_381::PointMul< Pt >::msm_vartime(), Botan::BLS12_381::PointMul< Pt >::mul(), Botan::BLS12_381::PointMul< Pt >::mul2(), Botan::BLS12_381::PointMul< Pt >::mul2_vartime(), and Botan::BLS12_381::PointMul< Pt >::mul_vartime().
|
inline |
Extract the c-bit window starting at bit offset bit (counted from the least significant end) of a big-endian encoded scalar
Definition at line 44 of file bls12_381_point_mul.h.
References Botan::BLS12_381::Scalar::BYTES.
Referenced by scalar_booth_window().
|
constexpr |
Definition at line 23 of file bls12_381_point_mul.h.
Referenced by Botan::BLS12_381::PointMul< Pt >::mul_by_z_abs().