IBR-DTN
1.0.0
|
#include <KeyExchangeProtocol.h>
Public Member Functions | |
KeyExchangeProtocol (KeyExchangeManager &manager, int protocol_id) | |
virtual | ~KeyExchangeProtocol () |
int | getProtocol () const |
void | add (std::map< int, KeyExchangeProtocol * > &list) |
virtual KeyExchangeSession * | createSession (const dtn::data::EID &peer, unsigned int uniqueId) |
virtual void | initialize () |
virtual void | begin (KeyExchangeSession &session, KeyExchangeData &data)=0 |
virtual void | step (KeyExchangeSession &session, KeyExchangeData &data)=0 |
Static Public Member Functions | |
static void | sha256 (std::ostream &stream, const std::string &data) |
static std::string | toHex (const std::string &data) |
Protected Attributes | |
KeyExchangeManager & | manager |
Definition at line 42 of file KeyExchangeProtocol.h.
dtn::security::KeyExchangeProtocol::KeyExchangeProtocol | ( | KeyExchangeManager & | manager, |
int | protocol_id | ||
) |
Definition at line 36 of file KeyExchangeProtocol.cpp.
|
virtual |
Definition at line 41 of file KeyExchangeProtocol.cpp.
void dtn::security::KeyExchangeProtocol::add | ( | std::map< int, KeyExchangeProtocol * > & | list | ) |
Add this instance to a map
Definition at line 45 of file KeyExchangeProtocol.cpp.
References getProtocol().
|
pure virtual |
|
virtual |
Create a new session for the given peer
Reimplemented in dtn::security::DHProtocol, dtn::security::JPAKEProtocol, and dtn::security::HashProtocol.
Definition at line 55 of file KeyExchangeProtocol.cpp.
References getProtocol().
int dtn::security::KeyExchangeProtocol::getProtocol | ( | ) | const |
Definition at line 50 of file KeyExchangeProtocol.cpp.
Referenced by add(), dtn::security::HashProtocol::createSession(), dtn::security::JPAKEProtocol::createSession(), dtn::security::DHProtocol::createSession(), and createSession().
|
inlinevirtual |
Reimplemented in dtn::security::DHProtocol.
Definition at line 60 of file KeyExchangeProtocol.h.
Referenced by dtn::security::KeyExchanger::componentRun().
|
static |
Definition at line 60 of file KeyExchangeProtocol.cpp.
|
pure virtual |
|
static |
Definition at line 71 of file KeyExchangeProtocol.cpp.
Referenced by dtn::security::JPAKEProtocol::begin(), and dtn::security::JPAKEProtocol::step().
|
protected |
Definition at line 69 of file KeyExchangeProtocol.h.
Referenced by dtn::security::NFCProtocol::begin(), dtn::security::NoneProtocol::begin(), dtn::security::QRCodeProtocol::begin(), dtn::security::HashProtocol::begin(), dtn::security::JPAKEProtocol::begin(), dtn::security::DHProtocol::begin(), dtn::security::NoneProtocol::step(), dtn::security::HashProtocol::step(), dtn::security::JPAKEProtocol::step(), and dtn::security::DHProtocol::step().