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

Key pair structure for key exchange algorithm. More...

#include <lime_crypto_primitives.hpp>

Public Member Functions

K< Algo, lime::Ktype::privateKey > & privateKey (void)
 access the private key
const K< Algo, lime::Ktype::privateKey > & cprivateKey (void) const
K< Algo, lime::Ktype::publicKey > & publicKey (void)
 access the public key
const K< Algo, lime::Ktype::publicKey > & cpublicKey (void) const
 Kpair (const K< Algo, lime::Ktype::publicKey > &pub, const K< Algo, lime::Ktype::privateKey > &priv)
 copy construct a key pair from public and private keys (no verification on validity of keys is performed)
 Kpair ()
bool operator== (Kpair< Algo > b) const
 == operator assert that public and private keys are the same

Detailed Description

template<typename Algo>
class lime::Kpair< Algo >

Key pair structure for key exchange algorithm.

Constructor & Destructor Documentation

◆ Kpair() [1/2]

template<typename Algo>
lime::Kpair< Algo >::Kpair ( const K< Algo, lime::Ktype::publicKey > & pub,
const K< Algo, lime::Ktype::privateKey > & priv )
inline

copy construct a key pair from public and private keys (no verification on validity of keys is performed)

◆ Kpair() [2/2]

template<typename Algo>
lime::Kpair< Algo >::Kpair ( )
inline

Member Function Documentation

◆ cprivateKey()

template<typename Algo>
const K< Algo, lime::Ktype::privateKey > & lime::Kpair< Algo >::cprivateKey ( void ) const
inline

◆ cpublicKey()

template<typename Algo>
const K< Algo, lime::Ktype::publicKey > & lime::Kpair< Algo >::cpublicKey ( void ) const
inline

◆ operator==()

template<typename Algo>
bool lime::Kpair< Algo >::operator== ( Kpair< Algo > b) const
inline

== operator assert that public and private keys are the same

◆ privateKey()

template<typename Algo>
K< Algo, lime::Ktype::privateKey > & lime::Kpair< Algo >::privateKey ( void )
inline

access the private key

◆ publicKey()

template<typename Algo>
K< Algo, lime::Ktype::publicKey > & lime::Kpair< Algo >::publicKey ( void )
inline

access the public key


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