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

#include <lime_double_ratchet.hpp>

Public Types

using serializedBuffer

Public Member Functions

 ARrKey (const X< typename Algo::EC, lime::Xtype::publicKey > &ecDHr, K< typename Algo::KEM, lime::Ktype::publicKey > &kemDHr, K< typename Algo::KEM, lime::Ktype::cipherText > &kemCTr)
 ARrKey (const X< typename Algo::EC, lime::Xtype::publicKey > &ecDHr, K< typename Algo::KEM, lime::Ktype::publicKey > &kemDHr)
 ARrKey (const SignedPreKey< Algo > &SPk)
 ARrKey (const serializedBuffer &DHr)
 ARrKey ()
const X< typename Algo::EC, lime::Xtype::publicKey > & ECPublicKey (void) const
const K< typename Algo::KEM, lime::Ktype::publicKey > & KEMPublicKey (void) const
const K< typename Algo::KEM, lime::Ktype::cipherText > & KEMCipherText (void) const
void setECPk (const X< typename Algo::EC, lime::Xtype::publicKey > ec_Pk)
std::vector< uint8_t > getKEMIndex (void) const
std::vector< uint8_t > getIndex (void) const
serializedBuffer serialize (void) const

Static Public Member Functions

static constexpr size_t serializedSize (void)

Member Typedef Documentation

◆ serializedBuffer

template<typename Algo>
using lime::ARrKey< Algo, true >::serializedBuffer
Initial value:
std::array<uint8_t,
static constexpr size_t ssize(void)
provide a static size function to be able to call the function not on an object
Definition lime_crypto_primitives.hpp:105
static constexpr size_t ssize(void)
provide a static size function to be able to call the function not on an object
Definition lime_crypto_primitives.hpp:59

Constructor & Destructor Documentation

◆ ARrKey() [1/5]

template<typename Algo>
lime::ARrKey< Algo, true >::ARrKey ( const X< typename Algo::EC, lime::Xtype::publicKey > & ecDHr,
K< typename Algo::KEM, lime::Ktype::publicKey > & kemDHr,
K< typename Algo::KEM, lime::Ktype::cipherText > & kemCTr )
inline

◆ ARrKey() [2/5]

template<typename Algo>
lime::ARrKey< Algo, true >::ARrKey ( const X< typename Algo::EC, lime::Xtype::publicKey > & ecDHr,
K< typename Algo::KEM, lime::Ktype::publicKey > & kemDHr )
inline

◆ ARrKey() [3/5]

template<typename Algo>
lime::ARrKey< Algo, true >::ARrKey ( const SignedPreKey< Algo > & SPk)
inline

◆ ARrKey() [4/5]

template<typename Algo>
lime::ARrKey< Algo, true >::ARrKey ( const serializedBuffer & DHr)
inline

◆ ARrKey() [5/5]

template<typename Algo>
lime::ARrKey< Algo, true >::ARrKey ( )
inline

Member Function Documentation

◆ ECPublicKey()

template<typename Algo>
const X< typename Algo::EC, lime::Xtype::publicKey > & lime::ARrKey< Algo, true >::ECPublicKey ( void ) const
inline

◆ getIndex()

template<typename Algo>
std::vector< uint8_t > lime::ARrKey< Algo, true >::getIndex ( void ) const
inline

Index is a hash of public key to identify it without storing it all - used to index skipped message key chain Index is composed of EC index and KEM index

◆ getKEMIndex()

template<typename Algo>
std::vector< uint8_t > lime::ARrKey< Algo, true >::getKEMIndex ( void ) const
inline

◆ KEMCipherText()

template<typename Algo>
const K< typename Algo::KEM, lime::Ktype::cipherText > & lime::ARrKey< Algo, true >::KEMCipherText ( void ) const
inline

◆ KEMPublicKey()

template<typename Algo>
const K< typename Algo::KEM, lime::Ktype::publicKey > & lime::ARrKey< Algo, true >::KEMPublicKey ( void ) const
inline

◆ serialize()

template<typename Algo>
serializedBuffer lime::ARrKey< Algo, true >::serialize ( void ) const
inline

◆ serializedSize()

template<typename Algo>
constexpr size_t lime::ARrKey< Algo, true >::serializedSize ( void )
inlinestaticconstexpr

◆ setECPk()

template<typename Algo>
void lime::ARrKey< Algo, true >::setECPk ( const X< typename Algo::EC, lime::Xtype::publicKey > ec_Pk)
inline

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