Botan 3.7.1
Crypto and TLS for C&
|
#include <ec_inner_bn.h>
Public Member Functions | |
std::unique_ptr< EC_AffinePoint_Data > | clone () const override |
EC_AffinePoint_Data_BN (std::shared_ptr< const EC_Group_Data > group, EC_Point pt) | |
EC_AffinePoint_Data_BN (std::shared_ptr< const EC_Group_Data > group, std::span< const uint8_t > pt) | |
size_t | field_element_bytes () const override |
const std::shared_ptr< const EC_Group_Data > & | group () const override |
bool | is_identity () const override |
std::unique_ptr< EC_AffinePoint_Data > | mul (const EC_Scalar_Data &scalar, RandomNumberGenerator &rng, std::vector< BigInt > &ws) const override |
secure_vector< uint8_t > | mul_x_only (const EC_Scalar_Data &scalar, RandomNumberGenerator &rng, std::vector< BigInt > &ws) const override |
void | serialize_compressed_to (std::span< uint8_t > bytes) const override |
void | serialize_uncompressed_to (std::span< uint8_t > bytes) const override |
void | serialize_x_to (std::span< uint8_t > bytes) const override |
void | serialize_xy_to (std::span< uint8_t > bytes) const override |
void | serialize_y_to (std::span< uint8_t > bytes) const override |
EC_Point | to_legacy_point () const override |
Definition at line 57 of file ec_inner_bn.h.
Botan::EC_AffinePoint_Data_BN::EC_AffinePoint_Data_BN | ( | std::shared_ptr< const EC_Group_Data > | group, |
EC_Point | pt ) |
Definition at line 78 of file ec_inner_bn.cpp.
References Botan::EC_Point::is_zero().
Botan::EC_AffinePoint_Data_BN::EC_AffinePoint_Data_BN | ( | std::shared_ptr< const EC_Group_Data > | group, |
std::span< const uint8_t > | pt ) |
Definition at line 86 of file ec_inner_bn.cpp.
References BOTAN_ASSERT_NONNULL, Botan::EC_Point::is_zero(), Botan::OS2ECP(), and Botan::EC_Point::xy_bytes().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 96 of file ec_inner_bn.cpp.
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 140 of file ec_inner_bn.cpp.
Referenced by serialize_compressed_to(), serialize_uncompressed_to(), serialize_x_to(), serialize_xy_to(), and serialize_y_to().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 100 of file ec_inner_bn.cpp.
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 144 of file ec_inner_bn.cpp.
Referenced by serialize_compressed_to(), serialize_uncompressed_to(), serialize_x_to(), serialize_xy_to(), and serialize_y_to().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 104 of file ec_inner_bn.cpp.
References BOTAN_ARG_CHECK, Botan::EC_Scalar_Data_BN::checked_ref(), Botan::EC_Scalar_Data::group(), and mul().
Referenced by mul(), and mul_x_only().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 122 of file ec_inner_bn.cpp.
References BOTAN_ARG_CHECK, Botan::EC_Scalar_Data_BN::checked_ref(), Botan::EC_Scalar_Data::group(), and mul().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 169 of file ec_inner_bn.cpp.
References Botan::BufferStuffer::append(), BOTAN_ARG_CHECK, BOTAN_STATE_CHECK, field_element_bytes(), is_identity(), Botan::BufferStuffer::next(), and serialize_x_to().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 180 of file ec_inner_bn.cpp.
References Botan::BufferStuffer::append(), BOTAN_ARG_CHECK, BOTAN_STATE_CHECK, field_element_bytes(), and is_identity().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 148 of file ec_inner_bn.cpp.
References BOTAN_ARG_CHECK, BOTAN_STATE_CHECK, Botan::copy_mem(), field_element_bytes(), and is_identity().
Referenced by serialize_compressed_to().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 162 of file ec_inner_bn.cpp.
References BOTAN_ARG_CHECK, BOTAN_STATE_CHECK, Botan::copy_mem(), field_element_bytes(), and is_identity().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 155 of file ec_inner_bn.cpp.
References BOTAN_ARG_CHECK, BOTAN_STATE_CHECK, Botan::copy_mem(), field_element_bytes(), and is_identity().
|
inlineoverride |
Definition at line 89 of file ec_inner_bn.h.