Botan 3.14.1
Crypto and TLS for C&
Botan::UnblindedScalarBits< C, WindowBits > Class Template Referencefinal

#include <pcurves_impl.h>

Public Member Functions

size_t bits () const
size_t get_window (size_t offset) const
 UnblindedScalarBits (const typename C::Scalar &scalar)

Static Public Attributes

static constexpr size_t Bits = C::Scalar::BITS

Detailed Description

template<typename C, size_t WindowBits>
class Botan::UnblindedScalarBits< C, WindowBits >

Definition at line 1502 of file pcurves_impl.h.

Constructor & Destructor Documentation

◆ UnblindedScalarBits()

template<typename C, size_t WindowBits>
Botan::UnblindedScalarBits< C, WindowBits >::UnblindedScalarBits ( const typename C::Scalar & scalar)
inlineexplicit

Definition at line 1506 of file pcurves_impl.h.

1506{ scalar.serialize_to(std::span{m_bytes}); }

Member Function Documentation

◆ bits()

template<typename C, size_t WindowBits>
size_t Botan::UnblindedScalarBits< C, WindowBits >::bits ( ) const
inline

Definition at line 1508 of file pcurves_impl.h.

1508{ return Bits; }
static constexpr size_t Bits

References Bits.

◆ get_window()

template<typename C, size_t WindowBits>
size_t Botan::UnblindedScalarBits< C, WindowBits >::get_window ( size_t offset) const
inline

Definition at line 1510 of file pcurves_impl.h.

1510 {
1511 // Extract a WindowBits sized window out of s, depending on offset.
1513 }
constexpr size_t read_window_bits(std::span< const W, N > words, size_t offset)
Definition mp_core.h:1284

References Botan::read_window_bits().

Member Data Documentation

◆ Bits

template<typename C, size_t WindowBits>
size_t Botan::UnblindedScalarBits< C, WindowBits >::Bits = C::Scalar::BITS
staticconstexpr

Definition at line 1504 of file pcurves_impl.h.

Referenced by bits().


The documentation for this class was generated from the following file: