|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pcurves_mul.h>
Public Types | |
| using | AffinePoint = typename C::AffinePoint |
| using | FieldElement = typename C::FieldElement |
| using | ProjectivePoint = typename C::ProjectivePoint |
Public Member Functions | |
| const FieldElement & | a () const |
| AffinePoint | ct_select (size_t idx) const |
| SharedZPointTable (const AffinePoint &p, size_t n, const FieldElement &a, const FieldElement &u) | |
| SharedZPointTable (std::span< const ProjectivePoint > pts, const FieldElement &a, const FieldElement &one, const FieldElement &u) | |
| const FieldElement & | z () const |
Definition at line 309 of file pcurves_mul.h.
| using Botan::SharedZPointTable< C >::AffinePoint = typename C::AffinePoint |
Definition at line 311 of file pcurves_mul.h.
| using Botan::SharedZPointTable< C >::FieldElement = typename C::FieldElement |
Definition at line 313 of file pcurves_mul.h.
| using Botan::SharedZPointTable< C >::ProjectivePoint = typename C::ProjectivePoint |
Definition at line 312 of file pcurves_mul.h.
|
inline |
Table of the multiples [P, 2*P, ..., n*P]
The multiples are computed as a chain of mixed additions, each of which multiplies Z by a known value H, so the rescaling factors Zt/Z_i are products of H values.
| p | the point whose multiples are tabulated |
| n | the number of multiples |
| a | the a coefficient of the curve |
| u | the random isomorphism parameter, which must be nonzero |
Definition at line 327 of file pcurves_mul.h.
References a(), and SharedZPointTable().
Referenced by SharedZPointTable(), and SharedZPointTable().
|
inline |
Table of arbitrary points
Here Zt is the product of the Z coordinates, and the rescaling factors Zt/Z_i are computed using prefix and suffix products. Identity elements are excluded from the product and remain the identity.
| pts | the points to tabulate |
| a | the a coefficient of the curve |
| one | the field element 1 |
| u | the random isomorphism parameter, which must be nonzero |
Definition at line 342 of file pcurves_mul.h.
References a(), and SharedZPointTable().
|
inline |
Return the a coefficient of the isomorphic curve, a*z^4
Definition at line 361 of file pcurves_mul.h.
Referenced by Botan::mul2_exec(), SharedZPointTable(), SharedZPointTable(), Botan::varpoint_exec(), and Botan::varpoint_mul().
|
inline |
If idx is zero then return the identity element. Otherwise return pts[idx - 1]
Definition at line 351 of file pcurves_mul.h.
Referenced by Botan::mul2_exec(), Botan::varpoint_exec(), and Botan::varpoint_mul().
|
inline |
Return the shared Z coordinate
Definition at line 356 of file pcurves_mul.h.
Referenced by Botan::mul2_exec(), Botan::varpoint_exec(), and Botan::varpoint_mul().