Botan 3.5.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Member Functions | |
BlindedScalarBits (const typename C::Scalar &scalar, RandomNumberGenerator &rng) | |
size_t | get_window (size_t offset) const |
~BlindedScalarBits () | |
Static Public Attributes | |
static constexpr size_t | Bits = C::Scalar::BITS + (BlindingEnabled ? BlindingBits : 0) |
static constexpr size_t | Bytes = (Bits + 7) / 8 |
Blinded Scalar
This randomizes the scalar representation by computing s + n*k where n is the group order and k is a random value
Definition at line 951 of file pcurves_impl.h.
|
inline |
Definition at line 968 of file pcurves_impl.h.
References Botan::bigint_add2_nc(), Botan::BlindedScalarBits< C, WindowBits >::Bytes, Botan::comba_mul(), Botan::load_le(), Botan::CT::poison(), Botan::RandomNumberGenerator::randomize(), and Botan::store_be().
|
inline |
Definition at line 1006 of file pcurves_impl.h.
References Botan::secure_scrub_memory(), and Botan::CT::unpoison().
|
inline |
Definition at line 1001 of file pcurves_impl.h.
Referenced by Botan::PrecomputedBaseMulTable< C, W >::mul(), and Botan::WindowedMulTable< C, W >::mul().
|
staticconstexpr |
Definition at line 965 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 966 of file pcurves_impl.h.
Referenced by Botan::BlindedScalarBits< C, WindowBits >::BlindedScalarBits().