31 BOOST_THROW_EXCEPTION(InvalidState());
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
KeyPair m_ephemeral
Ephemeral keypair; generated.
Secret const & secret() const
void agree(Public const &_remoteEphemeral, Secret &o_sharedSecret) const
Input public key for dh agreement, output generated shared secret.
void agree(Secret const &_s, Public const &_r, Secret &o_s)
Public m_remoteEphemeral
Public key of remote; parameter. Set once when agree is called, otherwise immutable.