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)
 
stringpriv ()
 
const stringpriv () const
 
stringpub ()
 
const stringpub () const
 
stringfirst ()
 
const stringfirst () const
 
stringsecond ()
 
const stringsecond () 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: