lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Public Member Functions | List of all members
lime::Kpair< Algo > Class Template Reference

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

Public Member Functions

K< Algo, lime::Ktype::privateKey > & privateKey (void)
 access the private key More...
 
const K< Algo, lime::Ktype::privateKey > & cprivateKey (void) const
 
K< Algo, lime::Ktype::publicKey > & publicKey (void)
 access the public key More...
 
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) More...
 
 Kpair ()
 
bool operator== (Kpair< Algo > b) const
 == operator assert that public and private keys are the same More...
 

Detailed Description

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

Key pair structure for key exchange algorithm.

Constructor & Destructor Documentation

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)

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

Member Function Documentation

template<typename Algo>
const K<Algo, lime::Ktype::privateKey>& lime::Kpair< Algo >::cprivateKey ( void  ) const
inline
template<typename Algo>
const K<Algo, lime::Ktype::publicKey>& lime::Kpair< Algo >::cpublicKey ( void  ) const
inline
template<typename Algo>
bool lime::Kpair< Algo >::operator== ( Kpair< Algo >  b) const
inline

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

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

access the private key

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: