|
Botan 3.11.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Member Functions | |
| size_t | bits () const |
| BlindedScalarBits (BlindedScalarBits &&other)=delete | |
| BlindedScalarBits (const BlindedScalarBits &other)=delete | |
| BlindedScalarBits (const typename C::Scalar &scalar, RandomNumberGenerator &rng) | |
| size_t | get_window (size_t offset) const |
| BlindedScalarBits & | operator= (BlindedScalarBits &&other)=delete |
| BlindedScalarBits & | operator= (const BlindedScalarBits &other)=delete |
| ~BlindedScalarBits () | |
Static Public Attributes | |
| static constexpr size_t | Bits = C::Scalar::BITS + BlindingBits |
Blinded Scalar
This randomizes the scalar representation by computing s + n*k, where n is the group order and k is a random value
Note that the field arithmetic and point multiplication algorithms implemented in this file are already constant time; blinding is used here as an additional precaution to guard against compilers introducing conditional jumps where not expected.
If the provided RNG is not seeded, blinding is skipped and the scalar is used directly. This allows blinding to be disabled at runtime.
Definition at line 1293 of file pcurves_impl.h.
|
inline |
Definition at line 1307 of file pcurves_impl.h.
|
inline |
Definition at line 1358 of file pcurves_impl.h.
|
delete |
|
delete |
|
inline |
Definition at line 1305 of file pcurves_impl.h.
Referenced by Botan::WindowedBoothMulTable< C, W >::mul().
|
inline |
Definition at line 1353 of file pcurves_impl.h.
Referenced by Botan::WindowedBoothMulTable< C, W >::mul().
|
delete |
|
delete |
|
staticconstexpr |
Definition at line 1303 of file pcurves_impl.h.