IBR-DTN
1.0.0
|
#include <HashProtocol.h>
Public Member Functions | |
HashProtocol (KeyExchangeManager &manager) | |
virtual | ~HashProtocol () |
virtual KeyExchangeSession * | createSession (const dtn::data::EID &peer, unsigned int uniqueId) |
virtual void | begin (KeyExchangeSession &session, KeyExchangeData &data) |
virtual void | step (KeyExchangeSession &session, KeyExchangeData &data) |
![]() | |
KeyExchangeProtocol (KeyExchangeManager &manager, int protocol_id) | |
virtual | ~KeyExchangeProtocol () |
int | getProtocol () const |
void | add (std::map< int, KeyExchangeProtocol * > &list) |
virtual void | initialize () |
Additional Inherited Members | |
![]() | |
static void | sha256 (std::ostream &stream, const std::string &data) |
static std::string | toHex (const std::string &data) |
![]() | |
KeyExchangeManager & | manager |
Definition at line 33 of file HashProtocol.h.
dtn::security::HashProtocol::HashProtocol | ( | KeyExchangeManager & | manager | ) |
Definition at line 41 of file HashProtocol.cpp.
|
virtual |
Definition at line 46 of file HashProtocol.cpp.
|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 55 of file HashProtocol.cpp.
References dtn::security::SecurityKeyManager::get(), dtn::security::SecurityKey::getData(), dtn::security::SecurityKeyManager::getInstance(), dtn::security::KeyExchangeSession::getState(), dtn::security::SecurityKey::KEY_PUBLIC, dtn::core::BundleCore::local, dtn::security::KeyExchangeProtocol::manager, RANDOM_NUMBER_LENGTH, dtn::security::KeyExchangeData::REQUEST, and dtn::security::KeyExchangeManager::submit().
|
virtual |
Create a new session for the given peer
Reimplemented from dtn::security::KeyExchangeProtocol.
Definition at line 50 of file HashProtocol.cpp.
References dtn::security::KeyExchangeProtocol::getProtocol().
|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 76 of file HashProtocol.cpp.
References dtn::security::SecurityKeyManager::get(), dtn::security::KeyExchangeData::getAction(), dtn::security::SecurityKey::getData(), dtn::security::SecurityKeyManager::getInstance(), dtn::security::KeyExchangeSession::getPeer(), dtn::security::KeyExchangeSession::getState(), dtn::security::KeyExchangeData::getStep(), dtn::security::KeyExchangeData::HASH_COMMIT, dtn::security::SecurityKey::KEY_PUBLIC, dtn::core::BundleCore::local, dtn::security::KeyExchangeProtocol::manager, dtn::security::SecurityKey::MEDIUM, dtn::security::KeyExchangeSession::putKey(), dtn::security::KeyExchangeEvent::raise(), RANDOM_NUMBER_LENGTH, dtn::security::KeyExchangeData::REQUEST, dtn::security::KeyExchangeData::RESPONSE, dtn::security::KeyExchangeData::setStep(), and dtn::security::KeyExchangeManager::submit().