|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Types | |
| using | AffinePoint = typename C::AffinePoint |
| using | ProjectivePoint = typename C::ProjectivePoint |
| using | Scalar = typename C::Scalar |
Public Member Functions | |
| template<size_t GW> | |
| ProjectivePoint | mul2_vartime (const PrecomputedBaseMulTable< C, GW > &g_table, const Scalar &x, const Scalar &y) const |
| VartimeMul2Table (const AffinePoint &q) | |
Variable time 2-ary multiplication x*G + y*Q
A common use of 2-ary multiplication is when verifying the commitments of an elliptic curve signature. Since in this case the inputs are all public, there is no problem with variable time computation.
The generator half is read out of the precomputed base point table and so needs no doublings. The variable point half uses a small table of odd multiples of Q, indexed by the width W non-adjacent form of y.
Definition at line 1770 of file pcurves_impl.h.
| using Botan::VartimeMul2Table< C, W >::AffinePoint = typename C::AffinePoint |
Definition at line 1775 of file pcurves_impl.h.
| using Botan::VartimeMul2Table< C, W >::ProjectivePoint = typename C::ProjectivePoint |
Definition at line 1776 of file pcurves_impl.h.
| using Botan::VartimeMul2Table< C, W >::Scalar = typename C::Scalar |
Definition at line 1774 of file pcurves_impl.h.
|
inlineexplicit |
Definition at line 1778 of file pcurves_impl.h.
References Botan::odd_multiples_setup_vartime().
|
inline |
Definition at line 1781 of file pcurves_impl.h.
References Botan::PrecomputedBaseMulTable< C, W >::mul_vartime().