Botan 3.14.1
Crypto and TLS for C&
Botan::PrecomputedBaseMulTable< C, W > Class Template Referencefinal

#include <pcurves_impl.h>

Public Types

typedef C::AffinePoint AffinePoint
using BlindedScalar = BlindedScalarBits<C, WindowBits + 1>
typedef C::ProjectivePoint ProjectivePoint
typedef C::Scalar Scalar

Public Member Functions

ProjectivePoint mul (const Scalar &s, RandomNumberGenerator &rng) const
ProjectivePoint mul_vartime (const Scalar &s, const ProjectivePoint &accum) const
 PrecomputedBaseMulTable (const AffinePoint &p)

Static Public Attributes

static constexpr size_t WindowBits = W

Detailed Description

template<typename C, size_t W>
class Botan::PrecomputedBaseMulTable< C, W >

Definition at line 1610 of file pcurves_impl.h.

Member Typedef Documentation

◆ AffinePoint

template<typename C, size_t W>
typedef C::AffinePoint Botan::PrecomputedBaseMulTable< C, W >::AffinePoint

Definition at line 1613 of file pcurves_impl.h.

◆ BlindedScalar

template<typename C, size_t W>
using Botan::PrecomputedBaseMulTable< C, W >::BlindedScalar = BlindedScalarBits<C, WindowBits + 1>

Definition at line 1620 of file pcurves_impl.h.

◆ ProjectivePoint

template<typename C, size_t W>
typedef C::ProjectivePoint Botan::PrecomputedBaseMulTable< C, W >::ProjectivePoint

Definition at line 1614 of file pcurves_impl.h.

◆ Scalar

template<typename C, size_t W>
typedef C::Scalar Botan::PrecomputedBaseMulTable< C, W >::Scalar

Definition at line 1612 of file pcurves_impl.h.

Constructor & Destructor Documentation

◆ PrecomputedBaseMulTable()

template<typename C, size_t W>
Botan::PrecomputedBaseMulTable< C, W >::PrecomputedBaseMulTable ( const AffinePoint & p)
inlineexplicit

Member Function Documentation

◆ mul()

template<typename C, size_t W>
ProjectivePoint Botan::PrecomputedBaseMulTable< C, W >::mul ( const Scalar & s,
RandomNumberGenerator & rng ) const
inline

Definition at line 1627 of file pcurves_impl.h.

1627 {
1631 }
BlindedScalarBits< C, WindowBits+1 > BlindedScalar
C::ProjectivePoint basemul_booth_exec(std::span< const typename C::AffinePoint > table, const BlindedScalar &scalar, const Blinding &blinding)

References Botan::basemul_booth_exec().

◆ mul_vartime()

template<typename C, size_t W>
ProjectivePoint Botan::PrecomputedBaseMulTable< C, W >::mul_vartime ( const Scalar & s,
const ProjectivePoint & accum ) const
inline

Variable time multiplication, returning accum + s*P

Only for use with public scalars, eg during signature verification

Definition at line 1638 of file pcurves_impl.h.

1638 {
1641 }
C::ProjectivePoint basemul_booth_exec_vartime(std::span< const typename C::AffinePoint > table, const ScalarBits &scalar, typename C::ProjectivePoint accum)

References Botan::basemul_booth_exec_vartime().

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

Member Data Documentation

◆ WindowBits

template<typename C, size_t W>
size_t Botan::PrecomputedBaseMulTable< C, W >::WindowBits = W
staticconstexpr

Definition at line 1616 of file pcurves_impl.h.

Referenced by PrecomputedBaseMulTable().


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