IBR-DTN
1.0.0
|
#include <JPAKEProtocol.h>
Public Member Functions | |
JPAKEProtocol (KeyExchangeManager &manager) | |
virtual | ~JPAKEProtocol () |
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 36 of file JPAKEProtocol.h.
dtn::security::JPAKEProtocol::JPAKEProtocol | ( | KeyExchangeManager & | manager | ) |
Definition at line 48 of file JPAKEProtocol.cpp.
|
virtual |
Definition at line 53 of file JPAKEProtocol.cpp.
|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 62 of file JPAKEProtocol.cpp.
References dtn::security::KeyExchangeSession::getPeer(), dtn::security::KeyExchangeSession::getState(), dtn::data::EID::getString(), dtn::core::BundleCore::local, dtn::security::KeyExchangeProtocol::manager, dtn::security::KeyExchangeData::REQUEST, dtn::security::KeyExchangeManager::submit(), and dtn::security::KeyExchangeProtocol::toHex().
|
virtual |
Create a new session for the given peer
Reimplemented from dtn::security::KeyExchangeProtocol.
Definition at line 57 of file JPAKEProtocol.cpp.
References dtn::security::KeyExchangeProtocol::getProtocol().
|
virtual |
Implements dtn::security::KeyExchangeProtocol.
Definition at line 113 of file JPAKEProtocol.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::getPeer(), dtn::security::KeyExchangeSession::getState(), dtn::security::KeyExchangeData::getStep(), dtn::data::EID::getString(), dtn::security::SecurityKey::KEY_PUBLIC, dtn::core::BundleCore::local, dtn::security::KeyExchangeProtocol::manager, dtn::security::SecurityKey::MEDIUM, dtn::security::KeyExchangeData::PASSWORD_REQUEST, dtn::security::KeyExchangeSession::putKey(), dtn::security::KeyExchangeEvent::raise(), dtn::security::KeyExchangeData::REQUEST, dtn::security::KeyExchangeData::RESPONSE, dtn::security::KeyExchangeData::setStep(), dtn::security::KeyExchangeManager::submit(), and dtn::security::KeyExchangeProtocol::toHex().