UDP-WG Implementation
Loading...
Searching...
No Matches
crypto::keypair Class Reference

A simple private-public keypair. More...

#include <crypto.h>

Public Member Functions

 keypair (const string &private_key, const string &public_key)
 
string & priv ()
 
const string & priv () const
 
string & pub ()
 
const string & pub () const
 
string & first ()
 
const string & first () const
 
string & second ()
 
const string & second () const
 

Detailed Description

A simple private-public keypair.

Remarks
This can be used in one of two ways: either as an actual keypair, to which pub/priv semantics are used. Or as a set of two strings, like key/nonce, where first/second semantics are used, instead.

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