|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Member Functions | |
| int8_t | digit (size_t i) const |
| size_t | length () const |
| Return the number of digits, ie one more than the index of the top nonzero digit. | |
| WnafScalar (const typename C::Scalar &scalar) | |
Static Public Attributes | |
| static constexpr size_t | MaxDigits = C::Scalar::BITS + 1 |
Width W non-adjacent form of a public scalar
Each digit is either zero or an odd integer with absolute value less than 2^(W-1). The recoding is variable time and the digits are stored in plain memory, so this is only usable when the scalar is public.
Definition at line 1527 of file pcurves_impl.h.
|
inlineexplicit |
Definition at line 1534 of file pcurves_impl.h.
References BOTAN_DEBUG_ASSERT, and MaxDigits.
|
inline |
Definition at line 1602 of file pcurves_impl.h.
|
inline |
Return the number of digits, ie one more than the index of the top nonzero digit.
Definition at line 1600 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 1532 of file pcurves_impl.h.
Referenced by WnafScalar().