|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Member Functions | |
| BlindingRandomness (RandomNumberGenerator &rng) | |
| const FieldElement & | isomorphism () const |
| std::span< const uint8_t, MaskBytes > | mask (size_t idx) const |
| void | randomize_rep (typename C::ProjectivePoint &pt, size_t idx) const |
| bool | seeded () const |
Static Public Attributes | |
| static constexpr size_t | Rerandomizations = 4 |
| Each multiplication re-randomizes the accumulator this many times. | |
The randomness consumed by one blinded scalar multiplication
The scalar masks, the projective re-randomizations, and the random curve isomorphism of the point table are drawn from the RNG with a single request, since each request has a fixed cost that dominates for small outputs.
If the provided RNG is not seeded, no randomness is drawn and blinding is skipped; the isomorphism parameter is then one.
Definition at line 1435 of file pcurves_impl.h.
|
inlineexplicit |
Definition at line 1450 of file pcurves_impl.h.
References Botan::copy_mem(), Botan::RandomNumberGenerator::randomize(), and Rerandomizations.
|
inline |
Return the random curve isomorphism parameter for the point table
Definition at line 1492 of file pcurves_impl.h.
Referenced by Botan::varpoint_mul2().
|
inline |
|
inline |
Randomize the projective representation of pt using the idx'th element
Definition at line 1481 of file pcurves_impl.h.
References BOTAN_ASSERT_NOMSG, and Rerandomizations.
|
inline |
Definition at line 1471 of file pcurves_impl.h.
|
staticconstexpr |
Each multiplication re-randomizes the accumulator this many times.
Definition at line 1438 of file pcurves_impl.h.
Referenced by BlindingRandomness(), and randomize_rep().