|
Botan 3.11.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Types | |
| using | Self = AffineCurvePoint<FieldElement> |
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 909 of file pcurves_impl.h.
| using Botan::AffineCurvePoint< FieldElement >::Self = AffineCurvePoint<FieldElement> |
Definition at line 913 of file pcurves_impl.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 919 of file pcurves_impl.h.
|
default |
|
default |
|
default |
|
inlineconstexpr |
Definition at line 985 of file pcurves_impl.h.
References Botan::CT::poison_all().
|
inlineconstexpr |
Definition at line 987 of file pcurves_impl.h.
References Botan::CT::unpoison_all().
|
inlineconstexpr |
Conditional assignment of an affine point
Definition at line 981 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 955 of file pcurves_impl.h.
References identity(), and Botan::CT::Mask< T >::is_equal().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 924 of file pcurves_impl.h.
|
inlineconstexpr |
Definition at line 928 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 941 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 971 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 976 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 911 of file pcurves_impl.h.