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 ShortString & | PublicKey () const |
| Returns a const reference to the public key. | |
| 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 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. | |
Encapsulates a key exchange key pair.