Botan 3.9.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Types | |
using | Self = AffineCurvePoint<FieldElement, Params> |
Public Member Functions | |
constexpr void | _const_time_poison () const |
constexpr void | _const_time_unpoison () const |
constexpr | AffineCurvePoint () |
constexpr | AffineCurvePoint (const FieldElement &x, const FieldElement &y) |
AffineCurvePoint (const Self &other)=default | |
AffineCurvePoint (Self &&other)=default | |
constexpr void | conditional_assign (CT::Choice cond, const Self &pt) |
constexpr CT::Choice | is_identity () const |
constexpr Self | negate () const |
AffineCurvePoint & | operator= (const Self &other)=default |
AffineCurvePoint & | operator= (Self &&other)=default |
constexpr void | serialize_to (std::span< uint8_t, Self::BYTES > bytes) const |
constexpr const FieldElement & | x () const |
constexpr const FieldElement & | y () const |
~AffineCurvePoint ()=default |
Static Public Member Functions | |
static constexpr auto | ct_select (std::span< const Self > pts, size_t idx) |
static constexpr Self | identity () |
static constexpr Self | identity (const Self &) |
Static Public Attributes | |
static constexpr size_t | BYTES = 1 + 2 * FieldElement::BYTES |
Affine Curve Point
This contains a pair of integers (x,y) which satisfy the curve equation
Definition at line 875 of file pcurves_impl.h.
using Botan::AffineCurvePoint< FieldElement, Params >::Self = AffineCurvePoint<FieldElement, Params> |
Definition at line 879 of file pcurves_impl.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 885 of file pcurves_impl.h.
|
default |
|
default |
|
default |
|
inlineconstexpr |
Definition at line 951 of file pcurves_impl.h.
References Botan::CT::poison_all().
|
inlineconstexpr |
Definition at line 953 of file pcurves_impl.h.
References Botan::CT::unpoison_all().
|
inlineconstexpr |
Conditional assignment of an affine point
Definition at line 947 of file pcurves_impl.h.
|
inlinestaticconstexpr |
If idx is zero then return the identity element. Otherwise return pts[idx - 1]
Returns the identity element also if idx is out of range
Definition at line 921 of file pcurves_impl.h.
References identity(), and Botan::CT::Mask< T >::is_equal().
|
inlinestaticconstexpr |
Definition at line 887 of file pcurves_impl.h.
Referenced by ct_select().
|
inlinestaticconstexpr |
Definition at line 890 of file pcurves_impl.h.
|
inlineconstexpr |
Definition at line 894 of file pcurves_impl.h.
Referenced by Botan::ProjectiveCurvePoint< FieldElement, Params >::from_affine(), and serialize_to().
|
inlineconstexpr |
|
default |
References AffineCurvePoint().
|
default |
References AffineCurvePoint().
|
inlineconstexpr |
Serialize the point in uncompressed format
Definition at line 907 of file pcurves_impl.h.
References BOTAN_DEBUG_ASSERT, BOTAN_STATE_CHECK, is_identity(), x(), and y().
|
inlineconstexpr |
Return the affine x coordinate
Definition at line 937 of file pcurves_impl.h.
Referenced by AffineCurvePoint(), conditional_assign(), Botan::ProjectiveCurvePoint< FieldElement, Params >::from_affine(), is_identity(), negate(), and serialize_to().
|
inlineconstexpr |
Return the affine y coordinate
Definition at line 942 of file pcurves_impl.h.
Referenced by AffineCurvePoint(), conditional_assign(), Botan::ProjectiveCurvePoint< FieldElement, Params >::from_affine(), is_identity(), negate(), and serialize_to().
|
staticconstexpr |
Definition at line 877 of file pcurves_impl.h.