lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Loading...
Searching...
No Matches
lime::K< Algo, dataType > Class Template Reference

Base buffer definition for KEM data structure. More...

#include <lime_crypto_primitives.hpp>

Inheritance diagram for lime::K< Algo, dataType >:
lime::sBuffer< static_cast< size_t >(Algo::Ksize(dataType))>

Public Member Functions

 K (const std::vector< uint8_t >::const_iterator buffer)
 construct from a std::vector<uint8_t>
 K (const uint8_t *const buffer)
 construct from uint8_t *
 K ()
 default initialise value to 0
void assign (const std::vector< uint8_t >::const_iterator buffer)
 copy from a std::vector<uint8_t>
Public Member Functions inherited from lime::sBuffer< static_cast< size_t >(Algo::Ksize(dataType))>
 ~sBuffer ()
 zeroise all buffer when done

Static Public Member Functions

static constexpr size_t ssize (void)
 provide a static size function to be able to call the function not on an object

Detailed Description

template<typename Algo, lime::Ktype dataType>
class lime::K< Algo, dataType >

Base buffer definition for KEM data structure.

easy use of array types with correct size

Constructor & Destructor Documentation

◆ K() [1/3]

template<typename Algo, lime::Ktype dataType>
lime::K< Algo, dataType >::K ( const std::vector< uint8_t >::const_iterator buffer)
inline

construct from a std::vector<uint8_t>

◆ K() [2/3]

template<typename Algo, lime::Ktype dataType>
lime::K< Algo, dataType >::K ( const uint8_t *const buffer)
inline

construct from uint8_t *

◆ K() [3/3]

template<typename Algo, lime::Ktype dataType>
lime::K< Algo, dataType >::K ( )
inline

default initialise value to 0

Member Function Documentation

◆ assign()

template<typename Algo, lime::Ktype dataType>
void lime::K< Algo, dataType >::assign ( const std::vector< uint8_t >::const_iterator buffer)
inline

copy from a std::vector<uint8_t>

◆ ssize()

template<typename Algo, lime::Ktype dataType>
constexpr size_t lime::K< Algo, dataType >::ssize ( void )
inlinestaticconstexpr

provide a static size function to be able to call the function not on an object


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