Botan 3.9.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Member Functions | |
constexpr 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 + (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
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 you would like a "go faster" button, change the BlindingEnabled variable below to false.
Definition at line 1259 of file pcurves_impl.h.
|
inline |
Definition at line 1301 of file pcurves_impl.h.
|
inline |
Definition at line 1355 of file pcurves_impl.h.
|
delete |
|
delete |
|
inlineconstexpr |
Definition at line 1299 of file pcurves_impl.h.
|
inline |
Definition at line 1350 of file pcurves_impl.h.
Referenced by Botan::WindowedBoothMulTable< C, W >::mul().
|
delete |
|
delete |
|
staticconstexpr |
Definition at line 1296 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1297 of file pcurves_impl.h.