|
IBR-DTN
1.0.0
|
#include <DHProtocol.h>


Public Member Functions | |
| DHProtocol (KeyExchangeManager &manager) | |
| virtual | ~DHProtocol () |
| virtual KeyExchangeSession * | createSession (const dtn::data::EID &peer, unsigned int uniqueId) |
| virtual void | initialize () |
| virtual void | begin (KeyExchangeSession &session, KeyExchangeData &data) |
| virtual void | step (KeyExchangeSession &session, KeyExchangeData &data) |
Public Member Functions inherited from dtn::security::KeyExchangeProtocol | |
| KeyExchangeProtocol (KeyExchangeManager &manager, int protocol_id) | |
| virtual | ~KeyExchangeProtocol () |
| int | getProtocol () const |
| void | add (std::map< int, KeyExchangeProtocol * > &list) |
Additional Inherited Members | |
Static Public Member Functions inherited from dtn::security::KeyExchangeProtocol | |
| static void | sha256 (std::ostream &stream, const std::string &data) |
| static std::string | toHex (const std::string &data) |
Protected Attributes inherited from dtn::security::KeyExchangeProtocol | |
| KeyExchangeManager & | manager |
Definition at line 36 of file DHProtocol.h.
| dtn::security::DHProtocol::DHProtocol | ( | KeyExchangeManager & | manager | ) |
Definition at line 52 of file DHProtocol.cpp.
References dtn::daemon::Configuration::getInstance(), dtn::daemon::Configuration::getSecurity(), and dtn::daemon::Configuration::Security::isGenerateDHParamsEnabled().

|
virtual |
Definition at line 59 of file DHProtocol.cpp.
|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 133 of file DHProtocol.cpp.
References dtn::security::KeyExchangeSession::getState(), dtn::security::KeyExchangeProtocol::manager, dtn::security::KeyExchangeData::REQUEST, dtn::security::KeyExchangeManager::submit(), and TAG.

|
virtual |
Create a new session for the given peer
Reimplemented from dtn::security::KeyExchangeProtocol.
Definition at line 128 of file DHProtocol.cpp.
References dtn::security::KeyExchangeProtocol::getProtocol().

|
virtual |
Reimplemented from dtn::security::KeyExchangeProtocol.
Definition at line 115 of file DHProtocol.cpp.
References dtn::security::SecurityKeyManager::getFilePath(), and dtn::security::SecurityKeyManager::getInstance().

|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 169 of file DHProtocol.cpp.
References dtn::security::KeyExchangeManager::finish(), dtn::security::SecurityKeyManager::get(), dtn::security::KeyExchangeData::getAction(), dtn::security::SecurityKey::getData(), dtn::security::SecurityKeyManager::getInstance(), dtn::security::KeyExchangeSession::getState(), dtn::security::KeyExchangeData::getStep(), dtn::security::SecurityKey::KEY_PUBLIC, dtn::core::BundleCore::local, dtn::security::SecurityKey::LOW, dtn::security::KeyExchangeProtocol::manager, dtn::security::KeyExchangeSession::putKey(), dtn::security::KeyExchangeData::REQUEST, dtn::security::KeyExchangeData::RESPONSE, dtn::security::KeyExchangeData::setStep(), dtn::security::KeyExchangeManager::submit(), and TAG.
