|
IBR-DTNSuite 0.6
|
#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 25 of file SecurityKey.h.
Definition at line 28 of file SecurityKey.h.
| dtn::security::SecurityKey::SecurityKey | ( | ) |
Definition at line 20 of file SecurityKey.cpp.
| dtn::security::SecurityKey::~SecurityKey | ( | ) | [virtual] |
Definition at line 23 of file SecurityKey.cpp.
| void dtn::security::SecurityKey::free | ( | RSA * | key | ) | [static] |
Definition at line 26 of file SecurityKey.cpp.
Referenced by dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), and dtn::security::ExtensionSecurityBlock::encrypt().
| void dtn::security::SecurityKey::free | ( | EVP_PKEY * | key | ) | [static] |
Definition at line 31 of file SecurityKey.cpp.
| const std::string dtn::security::SecurityKey::getData | ( | ) | const [virtual] |
Definition at line 36 of file SecurityKey.cpp.
References file, and ibrcommon::File::getPath().
Referenced by dtn::security::BundleAuthenticationBlock::calcMAC().

| EVP_PKEY * dtn::security::SecurityKey::getEVP | ( | ) | const [virtual] |
Definition at line 61 of file SecurityKey.cpp.
References file, ibrcommon::File::getPath(), KEY_PRIVATE, KEY_PUBLIC, and type.

| RSA * dtn::security::SecurityKey::getRSA | ( | ) | const [virtual] |
Definition at line 48 of file SecurityKey.cpp.
References KEY_PRIVATE, KEY_PUBLIC, and type.
Referenced by dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), and dtn::security::ExtensionSecurityBlock::encrypt().
| std::ostream& operator<< | ( | std::ostream & | stream, |
| const SecurityKey & | key | ||
| ) | [friend] |
Definition at line 60 of file SecurityKey.h.
| std::istream& operator>> | ( | std::istream & | stream, |
| SecurityKey & | key | ||
| ) | [friend] |
Definition at line 75 of file SecurityKey.h.
Definition at line 49 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get(), getData(), and getEVP().
Definition at line 46 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get().
Definition at line 43 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().
Definition at line 40 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get(), getEVP(), and getRSA().