IBR-DTNSuite
0.10
|
#include <SecurityKey.h>
Public Types | |
enum | KeyType { KEY_UNSPEC = 0, KEY_SHARED = 1, KEY_PRIVATE = 2, KEY_PUBLIC = 3 } |
Public Member Functions | |
SecurityKey () | |
virtual | ~SecurityKey () |
virtual RSA * | getRSA () const |
virtual EVP_PKEY * | getEVP () const |
virtual const std::string | getData () const |
Static Public Member Functions | |
static void | free (RSA *key) |
static void | free (EVP_PKEY *key) |
Public Attributes | |
KeyType | type |
dtn::data::EID | reference |
dtn::data::DTNTime | lastupdate |
ibrcommon::File | file |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const SecurityKey &key) |
std::istream & | operator>> (std::istream &stream, SecurityKey &key) |
Definition at line 39 of file SecurityKey.h.
Enumerator | |
---|---|
KEY_UNSPEC | |
KEY_SHARED | |
KEY_PRIVATE | |
KEY_PUBLIC |
Definition at line 42 of file SecurityKey.h.
dtn::security::SecurityKey::SecurityKey | ( | ) |
Definition at line 34 of file SecurityKey.cpp.
|
virtual |
Definition at line 38 of file SecurityKey.cpp.
|
static |
Definition at line 41 of file SecurityKey.cpp.
Referenced by dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::encrypt(), and dtn::security::PayloadConfidentialBlock::encrypt().
|
static |
Definition at line 46 of file SecurityKey.cpp.
|
virtual |
Definition at line 51 of file SecurityKey.cpp.
References file, and ibrcommon::File::getPath().
Referenced by dtn::security::BundleAuthenticationBlock::calcMAC().
|
virtual |
Definition at line 76 of file SecurityKey.cpp.
References file, ibrcommon::File::getPath(), KEY_PRIVATE, KEY_PUBLIC, and type.
|
virtual |
Definition at line 63 of file SecurityKey.cpp.
References KEY_PRIVATE, KEY_PUBLIC, and type.
Referenced by dtn::security::ExtensionSecurityBlock::decrypt(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::encrypt(), and dtn::security::PayloadConfidentialBlock::encrypt().
|
friend |
Definition at line 74 of file SecurityKey.h.
|
friend |
Definition at line 89 of file SecurityKey.h.
ibrcommon::File dtn::security::SecurityKey::file |
Definition at line 63 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get(), getData(), and getEVP().
dtn::data::DTNTime dtn::security::SecurityKey::lastupdate |
Definition at line 60 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get().
dtn::data::EID dtn::security::SecurityKey::reference |
Definition at line 57 of file SecurityKey.h.
Referenced by dtn::security::BundleAuthenticationBlock::auth(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::security::SecurityKeyManager::get(), and dtn::security::PayloadIntegrityBlock::sign().
KeyType dtn::security::SecurityKey::type |
Definition at line 54 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get(), getEVP(), and getRSA().