Fabcoin Core
0.16.2
P2P Digital Currency
|
Derive DH shared secret from EC keypairs. More...
#include <ECDHE.h>
Public Member Functions | |
ECDHE () | |
Constructor (pass public key for ingress exchange). More... | |
Public | pubkey () |
Public key sent to remote. More... | |
Secret | seckey () |
void | agree (Public const &_remoteEphemeral, Secret &o_sharedSecret) const |
Input public key for dh agreement, output generated shared secret. More... | |
Protected Attributes | |
KeyPair | m_ephemeral |
Ephemeral keypair; generated. More... | |
Public | m_remoteEphemeral |
Public key of remote; parameter. Set once when agree is called, otherwise immutable. More... | |
Derive DH shared secret from EC keypairs.
As ephemeral keys are single-use, agreement is limited to a single occurrence.
|
inline |
|
inline |
|
inline |
|
protected |
|
mutableprotected |