|
Botan 3.14.1
Crypto and TLS for C&
|
#include <bls12_381_group.h>
Public Types | |
| using | Affine = typename Group::Affine |
| using | FE = typename Group::FE |
| using | Projective = typename Group::Projective |
Static Public Member Functions | |
| static Projective | add (const Projective &a, const Projective &b) |
| static Projective | add_mixed (const Projective &a, const Affine &other, bool negate_other) |
| static void | conditional_negate (Projective &pt, uint32_t negate) |
| static Projective | dbl (const Projective &pt) |
| static std::optional< Affine > | deserialize_unchecked (std::span< const uint8_t > bytes) |
| static Projective | from_affine (const Affine &affine) |
| static Projective | negate (const Projective &pt) |
| static std::array< uint8_t, Affine::BYTES > | serialize (const Affine &pt) |
| static Affine | to_affine (const Projective &pt) |
| static std::vector< Affine > | to_affine_batch (std::span< const Projective > points) |
The group law, point codec, and affine conversion logic, shared by G1 and G2. The Group traits provide the point and field element types, the coordinate load/store, and the curve constants.
Definition at line 27 of file bls12_381_group.h.
| using Botan::BLS12_381::GroupOps< Group >::Affine = typename Group::Affine |
Definition at line 29 of file bls12_381_group.h.
| using Botan::BLS12_381::GroupOps< Group >::FE = typename Group::FE |
Definition at line 31 of file bls12_381_group.h.
| using Botan::BLS12_381::GroupOps< Group >::Projective = typename Group::Projective |
Definition at line 30 of file bls12_381_group.h.
|
inlinestatic |
Definition at line 159 of file bls12_381_group.h.
|
inlinestatic |
Definition at line 206 of file bls12_381_group.h.
References Botan::CT::conditional_assign_mem(), and Botan::CT::Choice::from_int().
|
inlinestatic |
Definition at line 124 of file bls12_381_group.h.
References Botan::CT::Choice::from_int(), and negate().
|
inlinestatic |
Definition at line 130 of file bls12_381_group.h.
|
inlinestatic |
Deserialization without the subgroup check, which is group specific and remains the caller's responsibility for any point other than the identity
Definition at line 263 of file bls12_381_group.h.
References Botan::CT::all_zeros(), Botan::copy_mem(), and Botan::CT::Choice::from_int().
|
inlinestatic |
Definition at line 35 of file bls12_381_group.h.
References Botan::CT::Choice::from_int().
|
inlinestatic |
|
inlinestatic |
Definition at line 309 of file bls12_381_group.h.
References Botan::CT::Choice::from_int().
|
inlinestatic |
Definition at line 42 of file bls12_381_group.h.
|
inlinestatic |
Definition at line 56 of file bls12_381_group.h.