|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Types | |
| using | Curve = C |
Public Member Functions | |
| size_t | bits () const |
| BlindedScalarBits (BlindedScalarBits &&other)=delete | |
| BlindedScalarBits (const BlindedScalarBits &other)=delete | |
| template<typename Randomness> | |
| BlindedScalarBits (const typename C::Scalar &scalar, const Randomness &randomness, size_t idx=0) | |
| 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 |
| static constexpr size_t | MaskBytes = MaskWords * WordInfo<W>::bytes |
| static constexpr size_t | MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits |
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 1345 of file pcurves_impl.h.
| using Botan::BlindedScalarBits< C, WindowBits >::Curve = C |
Definition at line 1354 of file pcurves_impl.h.
|
inline |
Blind the scalar using the idx'th mask of the provided BlindingRandomness
Definition at line 1368 of file pcurves_impl.h.
|
inline |
Definition at line 1412 of file pcurves_impl.h.
|
delete |
|
delete |
|
inline |
Definition at line 1362 of file pcurves_impl.h.
|
inline |
Definition at line 1407 of file pcurves_impl.h.
|
delete |
|
delete |
|
staticconstexpr |
Definition at line 1357 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1360 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1359 of file pcurves_impl.h.