Botan 3.9.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Classes | |
class | FieldParams |
class | ScalarParams |
Public Types | |
using | AffinePoint = AffineCurvePoint<FieldElement, Params> |
using | FieldElement = IntMod<FieldRep<FieldParams>> |
using | ProjectivePoint = ProjectiveCurvePoint<FieldElement, Params> |
using | Scalar = IntMod<MontgomeryRep<ScalarParams>> |
typedef Params::W | W |
typedef W | WordType |
Static Public Member Functions | |
static constexpr FieldElement | x3_ax_b (const FieldElement &x) |
Static Public Attributes | |
static constexpr FieldElement | A = FieldElement::from_words(Params::AW) |
static constexpr auto | AW = Params::AW |
static constexpr FieldElement | B = FieldElement::from_words(Params::BW) |
static constexpr AffinePoint | G |
static constexpr auto | NW = Params::NW |
static constexpr size_t | OrderBits = Scalar::BITS |
static constexpr bool | OrderIsLessThanField = bigint_cmp(NW.data(), Words, PW.data(), Words) == -1 |
static constexpr size_t | PrimeFieldBits = FieldElement::BITS |
static constexpr auto | PW = Params::PW |
static constexpr FieldElement | SSWU_Z = FieldElement::constant(Params::Z) |
static constexpr bool | ValidForSswuHash |
static constexpr size_t | Words = PW.size() |
Elliptic Curve
Takes as input a set of parameters, and instantiates the elliptic curve
Definition at line 1194 of file pcurves_impl.h.
using Botan::EllipticCurve< Params, FieldRep >::AffinePoint = AffineCurvePoint<FieldElement, Params> |
Definition at line 1217 of file pcurves_impl.h.
using Botan::EllipticCurve< Params, FieldRep >::FieldElement = IntMod<FieldRep<FieldParams>> |
Definition at line 1215 of file pcurves_impl.h.
using Botan::EllipticCurve< Params, FieldRep >::ProjectivePoint = ProjectiveCurvePoint<FieldElement, Params> |
Definition at line 1218 of file pcurves_impl.h.
using Botan::EllipticCurve< Params, FieldRep >::Scalar = IntMod<MontgomeryRep<ScalarParams>> |
Definition at line 1211 of file pcurves_impl.h.
typedef Params::W Botan::EllipticCurve< Params, FieldRep >::W |
Definition at line 1196 of file pcurves_impl.h.
typedef W Botan::EllipticCurve< Params, FieldRep >::WordType |
Definition at line 1198 of file pcurves_impl.h.
|
inlinestaticconstexpr |
Return (x^3 + A*x + B) mod p
Definition at line 1241 of file pcurves_impl.h.
References A, B, and Botan::IntMod< Rep >::square().
|
staticconstexpr |
Definition at line 1223 of file pcurves_impl.h.
Referenced by x3_ax_b().
|
staticconstexpr |
Definition at line 1202 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1224 of file pcurves_impl.h.
Referenced by x3_ax_b().
|
staticconstexpr |
Definition at line 1228 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1201 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1220 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1236 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1221 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1200 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1231 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1233 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1207 of file pcurves_impl.h.