Botan 3.6.1
Crypto and TLS for C&
|
#include <ec_inner_pc.h>
Public Member Functions | |
std::unique_ptr< EC_AffinePoint_Data > | clone () const override |
EC_AffinePoint_Data_PC (std::shared_ptr< const EC_Group_Data > group, PCurve::PrimeOrderCurve::AffinePoint pt) | |
EC_AffinePoint_Data_PC (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 |
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 |
const PCurve::PrimeOrderCurve::AffinePoint & | value () const |
Static Public Member Functions | |
static const EC_AffinePoint_Data_PC & | checked_ref (const EC_AffinePoint_Data &data) |
Definition at line 56 of file ec_inner_pc.h.
Botan::EC_AffinePoint_Data_PC::EC_AffinePoint_Data_PC | ( | std::shared_ptr< const EC_Group_Data > | group, |
PCurve::PrimeOrderCurve::AffinePoint | pt ) |
Definition at line 86 of file ec_inner_pc.cpp.
References Botan::PCurve::PrimeOrderCurve::AffinePoint::is_identity().
Botan::EC_AffinePoint_Data_PC::EC_AffinePoint_Data_PC | ( | std::shared_ptr< const EC_Group_Data > | group, |
std::span< const uint8_t > | pt ) |
Definition at line 95 of file ec_inner_pc.cpp.
References Botan::PCurve::PrimeOrderCurve::AffinePoint::is_identity().
|
static |
Definition at line 104 of file ec_inner_pc.cpp.
Referenced by Botan::EC_Mul2Table_Data_PC::EC_Mul2Table_Data_PC().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 112 of file ec_inner_pc.cpp.
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 131 of file ec_inner_pc.cpp.
Referenced by serialize_compressed_to(), serialize_uncompressed_to(), serialize_x_to(), serialize_xy_to(), serialize_y_to(), and to_legacy_point().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 116 of file ec_inner_pc.cpp.
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 135 of file ec_inner_pc.cpp.
Referenced by serialize_compressed_to(), serialize_uncompressed_to(), serialize_x_to(), serialize_xy_to(), serialize_y_to(), and to_legacy_point().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 120 of file ec_inner_pc.cpp.
References BOTAN_ARG_CHECK, BOTAN_UNUSED, Botan::EC_Scalar_Data_PC::checked_ref(), Botan::EC_Scalar_Data::group(), and Botan::EC_Scalar_Data_PC::value().
|
overridevirtual |
Implements Botan::EC_AffinePoint_Data.
Definition at line 160 of file ec_inner_pc.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 171 of file ec_inner_pc.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 139 of file ec_inner_pc.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 153 of file ec_inner_pc.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 146 of file ec_inner_pc.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 178 of file ec_inner_pc.cpp.
References field_element_bytes(), Botan::BigInt::from_bytes(), and is_identity().
|
inline |
Definition at line 86 of file ec_inner_pc.h.