IBR-DTN  1.0.0
dtn::security::KeyExchangeProtocol Class Referenceabstract

#include <KeyExchangeProtocol.h>

Inheritance diagram for dtn::security::KeyExchangeProtocol:
Inheritance graph
Collaboration diagram for dtn::security::KeyExchangeProtocol:
Collaboration graph

Public Member Functions

 KeyExchangeProtocol (KeyExchangeManager &manager, int protocol_id)
 
virtual ~KeyExchangeProtocol ()
 
int getProtocol () const
 
void add (std::map< int, KeyExchangeProtocol * > &list)
 
virtual KeyExchangeSessioncreateSession (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

KeyExchangeManagermanager
 

Detailed Description

Definition at line 42 of file KeyExchangeProtocol.h.

Constructor & Destructor Documentation

dtn::security::KeyExchangeProtocol::KeyExchangeProtocol ( KeyExchangeManager manager,
int  protocol_id 
)

Definition at line 36 of file KeyExchangeProtocol.cpp.

dtn::security::KeyExchangeProtocol::~KeyExchangeProtocol ( )
virtual

Definition at line 41 of file KeyExchangeProtocol.cpp.

Member Function Documentation

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().

Here is the call graph for this function:

virtual void dtn::security::KeyExchangeProtocol::begin ( KeyExchangeSession session,
KeyExchangeData data 
)
pure virtual
KeyExchangeSession * dtn::security::KeyExchangeProtocol::createSession ( const dtn::data::EID peer,
unsigned int  uniqueId 
)
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().

Here is the call graph for this function:

int dtn::security::KeyExchangeProtocol::getProtocol ( ) const
virtual void dtn::security::KeyExchangeProtocol::initialize ( )
inlinevirtual

Reimplemented in dtn::security::DHProtocol.

Definition at line 60 of file KeyExchangeProtocol.h.

Referenced by dtn::security::KeyExchanger::componentRun().

void dtn::security::KeyExchangeProtocol::sha256 ( std::ostream &  stream,
const std::string &  data 
)
static

Definition at line 60 of file KeyExchangeProtocol.cpp.

std::string dtn::security::KeyExchangeProtocol::toHex ( const std::string &  data)
static

Member Data Documentation


The documentation for this class was generated from the following files: