lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Loading...
Searching...
No Matches
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false > Class Template Reference

Public Member Functions

uint16_t Ns (void) const
 read-only accessor to Sender Chain index (Ns)
uint16_t PN (void) const
 read-only accessor to Previous Sender Chain index (PN)
const lime::X< Curve, lime::Xtype::publicKey > & DHr (void) const
 read-only accessor to peer Double Ratchet public key
bool valid (void) const
 is this header valid? (property is set by constructor/parser)
bool payloadDirectEncryption (void) const
 what encryption mode is advertised in this header
bool havePKIndex (void) const
 is there a KEM public key in this header? Never for EC only.
size_t size (void)
 read-only accessor to the size of parsed header
bool isDHr (const ARrKey< Curve > &DHr)
 compare the DHr in the header to the one given in parameter. Return true if they match
bool isDHsIndex (const ARsKey< Curve > &DHs)
 compare the given DHs with the KEM DHsIndex present in header
std::vector< uint8_t > getDHrIndex (void)
std::vector< uint8_t > getDHsIndex (void)
 DRHeader ()=delete
 DRHeader (const std::vector< uint8_t > header)
 ~DRHeader ()
void dump (std::ostringstream &os, std::string indent=" ") const

Constructor & Destructor Documentation

◆ DRHeader() [1/2]

template<typename Curve>
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::DRHeader ( )
delete

◆ DRHeader() [2/2]

template<typename Curve>
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::DRHeader ( const std::vector< uint8_t > header)
inline

◆ ~DRHeader()

template<typename Curve>
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::~DRHeader ( )
inline

Member Function Documentation

◆ DHr()

template<typename Curve>
const lime::X< Curve, lime::Xtype::publicKey > & lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::DHr ( void ) const
inline

read-only accessor to peer Double Ratchet public key

◆ dump()

template<typename Curve>
void lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::dump ( std::ostringstream & os,
std::string indent = "        " ) const
inline

◆ getDHrIndex()

template<typename Curve>
std::vector< uint8_t > lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::getDHrIndex ( void )
inline

◆ getDHsIndex()

template<typename Curve>
std::vector< uint8_t > lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::getDHsIndex ( void )
inline

◆ havePKIndex()

template<typename Curve>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::havePKIndex ( void ) const
inline

is there a KEM public key in this header? Never for EC only.

◆ isDHr()

template<typename Curve>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::isDHr ( const ARrKey< Curve > & DHr)
inline

compare the DHr in the header to the one given in parameter. Return true if they match

◆ isDHsIndex()

template<typename Curve>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::isDHsIndex ( const ARsKey< Curve > & DHs)
inline

compare the given DHs with the KEM DHsIndex present in header

◆ Ns()

template<typename Curve>
uint16_t lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::Ns ( void ) const
inline

read-only accessor to Sender Chain index (Ns)

◆ payloadDirectEncryption()

template<typename Curve>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::payloadDirectEncryption ( void ) const
inline

what encryption mode is advertised in this header

◆ PN()

template<typename Curve>
uint16_t lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::PN ( void ) const
inline

read-only accessor to Previous Sender Chain index (PN)

◆ size()

template<typename Curve>
size_t lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::size ( void )
inline

read-only accessor to the size of parsed header

◆ valid()

template<typename Curve>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Curve, false >::valid ( void ) const
inline

is this header valid? (property is set by constructor/parser)


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