Botan 3.9.0
Crypto and TLS for C&
Botan::PCurve::PrimeOrderCurve::Scalar Class Referencefinal

#include <pcurves.h>

Public Member Functions

const auto & _curve () const
const auto & _value () const
void _zeroize ()
Scalaroperator= (const Scalar &other)=default
Scalaroperator= (Scalar &&other)=default
 Scalar (const Scalar &other)=default
 Scalar (Scalar &&other)=default
 ~Scalar ()=default

Static Public Member Functions

static Scalar _create (CurvePtr curve, StorageUnit v)

Detailed Description

Elliptic curve scalar

This refers to the set of integers modulo the (prime) group order of the elliptic curve.

Definition at line 67 of file pcurves.h.

Constructor & Destructor Documentation

◆ Scalar() [1/2]

Botan::PCurve::PrimeOrderCurve::Scalar::Scalar ( const Scalar & other)
default

References Scalar().

Referenced by _create(), operator=(), operator=(), Scalar(), and Scalar().

◆ Scalar() [2/2]

Botan::PCurve::PrimeOrderCurve::Scalar::Scalar ( Scalar && other)
default

References Scalar().

◆ ~Scalar()

Botan::PCurve::PrimeOrderCurve::Scalar::~Scalar ( )
default

Member Function Documentation

◆ _create()

Scalar Botan::PCurve::PrimeOrderCurve::Scalar::_create ( CurvePtr curve,
StorageUnit v )
inlinestatic

Definition at line 84 of file pcurves.h.

84{ return Scalar(std::move(curve), v); }
Scalar(const Scalar &other)=default

References Scalar().

◆ _curve()

const auto & Botan::PCurve::PrimeOrderCurve::Scalar::_curve ( ) const
inline

Definition at line 80 of file pcurves.h.

80{ return m_curve; }

◆ _value()

const auto & Botan::PCurve::PrimeOrderCurve::Scalar::_value ( ) const
inline

Definition at line 82 of file pcurves.h.

82{ return m_value; }

◆ _zeroize()

void Botan::PCurve::PrimeOrderCurve::Scalar::_zeroize ( )
inline

Definition at line 75 of file pcurves.h.

75 {
76 secure_scrub_memory(m_value);
77 std::ranges::fill(m_value, 0); // secure_scrub_memory does not guarantee zero output!
78 }
void secure_scrub_memory(void *ptr, size_t n)
Definition mem_utils.cpp:24

References Botan::secure_scrub_memory().

◆ operator=() [1/2]

Scalar & Botan::PCurve::PrimeOrderCurve::Scalar::operator= ( const Scalar & other)
default

References Scalar().

◆ operator=() [2/2]

Scalar & Botan::PCurve::PrimeOrderCurve::Scalar::operator= ( Scalar && other)
default

References Scalar().


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