libDwmCredence-0.1.32
Dwm::Credence::KXKeyPair Class Reference

Encapsulates a key exchange key pair. More...

#include <DwmCredenceKXKeyPair.hh>

Public Member Functions

 KXKeyPair ()
 Creates a key exchange key pair with random content.
 
 ~KXKeyPair ()
 Clears the keys before destroying them.
 
const ShortStringPublicKey () const
 Returns a const reference to the public key.
 
const ShortStringSecretKey () const
 Returns a const reference to the secret key.
 
size_t PublicKeyMinimumStreamedLength () const
 Returns the minimum number of bytes to represent the public key 'on the wire'; the key itself and its length.
 
std::string SharedKey (const std::string &theirPublicKey) const
 Given the public key of a peer, returns a shared secret key that can be used to encrypt and decrypt data.
 

Detailed Description

Encapsulates a key exchange key pair.


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