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

#include <pcurves_impl.h>

Public Member Functions

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 1017 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)
inline

Definition at line 1021 of file pcurves_impl.h.

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

Member Function Documentation

◆ get_window()

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

Definition at line 1023 of file pcurves_impl.h.

1023 {
1024 // Extract a WindowBits sized window out of s, depending on offset.
1025 return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
1026 }

Referenced by Botan::WindowedMul2Table< C, W >::mul2_vartime().

Member Data Documentation

◆ Bits

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

Definition at line 1019 of file pcurves_impl.h.


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