42#ifndef _DWMCREDENCEKXKEYPAIR_HH_
43#define _DWMCREDENCEKXKEYPAIR_HH_
87 std::string
SharedKey(
const std::string & theirPublicKey)
const;
Dwm::Credence::ShortString class declaration.
Encapsulates a key exchange key pair.
Definition DwmCredenceKXKeyPair.hh:55
const ShortString & PublicKey() const
Returns a const reference to the public key.
~KXKeyPair()
Clears the keys before destroying them.
KXKeyPair()
Creates a key exchange key pair with random content.
const ShortString & SecretKey() 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...
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 d...
Encapsulates a string that is restricted to 255 bytes or less.
Definition DwmCredenceShortString.hh:57