lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Loading...
Searching...
No Matches
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Algo, true > 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< typename Algo::EC, lime::Xtype::publicKey > & ECDHr (void) const
 read-only accessor to peer EC Double Ratchet public key
const lime::ARsKey< Algo >::serializedPublicBuffer & DHr (void) const
 read-only accessor to peer whole set of keys/ct :EC pk, KEM pk, KEM ct
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 or just an index?
size_t size (void)
 read-only accessor to the size of parsed header
bool isDHr (const ARrKey< Algo > &DHr)
 compare the DHr in the header to the one given in parameter. Return true if they match
bool isDHsIndex (const ARsKey< Algo > &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 Algo>
lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Algo, true >::DRHeader ( )
delete

◆ DRHeader() [2/2]

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

◆ ~DRHeader()

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

Member Function Documentation

◆ DHr()

template<typename Algo>
const lime::ARsKey< Algo >::serializedPublicBuffer & lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Algo, true >::DHr ( void ) const
inline

read-only accessor to peer whole set of keys/ct :EC pk, KEM pk, KEM ct

◆ dump()

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

◆ ECDHr()

template<typename Algo>
const lime::X< typename Algo::EC, lime::Xtype::publicKey > & lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Algo, true >::ECDHr ( void ) const
inline

read-only accessor to peer EC Double Ratchet public key

◆ getDHrIndex()

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

Return the index used in Db:

  • first part is the ECDH index
  • second part is KEM index

◆ getDHsIndex()

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

◆ havePKIndex()

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

is there a KEM public key in this header or just an index?

◆ isDHr()

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

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

◆ isDHsIndex()

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

compare the given DHs with the KEM DHsIndex present in header

◆ Ns()

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

read-only accessor to Sender Chain index (Ns)

◆ payloadDirectEncryption()

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

what encryption mode is advertised in this header

◆ PN()

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

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

◆ size()

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

read-only accessor to the size of parsed header

◆ valid()

template<typename Algo>
bool lime::anonymous_namespace{lime_double_ratchet.cpp}::DRHeader< Algo, true >::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: