|
IBR-DTN
1.0.0
|
#include <SecurityKey.h>

Classes | |
| class | KeyNotFoundException |
Public Types | |
| enum | KeyType { KEY_UNSPEC = 0, KEY_SHARED = 1, KEY_PRIVATE = 2, KEY_PUBLIC = 3 } |
| enum | TrustLevel { NONE, LOW, MEDIUM, HIGH } |
Public Member Functions | |
| SecurityKey () | |
| virtual | ~SecurityKey () |
| bool | operator== (const SecurityKey &key) |
| ibrcommon::File | getMetaFilename () const |
| virtual RSA * | getRSA () const |
| virtual EVP_PKEY * | getEVP () const |
| virtual const std::string | getData () const |
| virtual const std::string | getFingerprint () const |
Static Public Member Functions | |
| static void | free (RSA *key) |
| static void | free (EVP_PKEY *key) |
| static std::string | getFingerprint (const ibrcommon::File &file) |
| static std::string | getFingerprint (RSA *rsa) |
Public Attributes | |
| KeyType | type |
| dtn::data::EID | reference |
| dtn::data::DTNTime | lastupdate |
| TrustLevel | trustlevel |
| ibrcommon::File | file |
| dtn::data::SDNV< unsigned int > | flags |
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.
| Enumerator | |
|---|---|
| NONE | |
| LOW | |
| MEDIUM | |
| HIGH | |
Definition at line 50 of file SecurityKey.h.
| dtn::security::SecurityKey::SecurityKey | ( | ) |
Definition at line 37 of file SecurityKey.cpp.
|
virtual |
Definition at line 41 of file SecurityKey.cpp.
|
static |
Definition at line 44 of file SecurityKey.cpp.
Referenced by dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::ExtensionSecurityBlock::encrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), getFingerprint(), and dtn::security::PayloadIntegrityBlock::verify().
|
static |
Definition at line 49 of file SecurityKey.cpp.
|
virtual |
Definition at line 64 of file SecurityKey.cpp.
References file.
Referenced by dtn::security::NoneProtocol::begin(), dtn::security::QRCodeProtocol::begin(), dtn::security::HashProtocol::begin(), dtn::security::BundleAuthenticationBlock::calcMAC(), dtn::daemon::NativeDaemon::getKeyInfo(), dtn::security::NoneProtocol::step(), dtn::security::HashProtocol::step(), dtn::security::JPAKEProtocol::step(), and dtn::security::DHProtocol::step().
|
virtual |
Definition at line 89 of file SecurityKey.cpp.
References file, KEY_PRIVATE, KEY_PUBLIC, and type.
Referenced by dtn::security::PayloadIntegrityBlock::verify().
|
virtual |
Definition at line 117 of file SecurityKey.cpp.
References file, free(), KEY_PRIVATE, KEY_PUBLIC, and type.
Referenced by dtn::security::QRCodeProtocol::begin(), dtn::security::KeyExchanger::finish(), dtn::daemon::NativeDaemon::getKeyInfo(), and operator==().

|
static |
Definition at line 178 of file SecurityKey.cpp.
|
static |
Definition at line 201 of file SecurityKey.cpp.
References free().

| ibrcommon::File dtn::security::SecurityKey::getMetaFilename | ( | ) | const |
Definition at line 59 of file SecurityKey.cpp.
References file.
Referenced by dtn::security::SecurityKeyManager::remove(), and dtn::security::SecurityKeyManager::store().
|
virtual |
Definition at line 76 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().
| bool dtn::security::SecurityKey::operator== | ( | const SecurityKey & | key | ) |
Definition at line 54 of file SecurityKey.cpp.
References getFingerprint().

|
friend |
Definition at line 103 of file SecurityKey.h.
|
friend |
Definition at line 124 of file SecurityKey.h.
| ibrcommon::File dtn::security::SecurityKey::file |
Definition at line 83 of file SecurityKey.h.
Referenced by dtn::security::SecurityKeyManager::get(), getData(), getEVP(), getFingerprint(), getMetaFilename(), dtn::security::SecurityKeyManager::remove(), and dtn::security::SecurityKeyManager::store().
| dtn::data::SDNV<unsigned int> dtn::security::SecurityKey::flags |
Definition at line 86 of file SecurityKey.h.
Referenced by dtn::security::KeyExchanger::finish(), dtn::daemon::NativeDaemon::getKeyInfo(), and dtn::security::KeyExchangeSession::putKey().
| dtn::data::DTNTime dtn::security::SecurityKey::lastupdate |
Definition at line 77 of file SecurityKey.h.
| dtn::data::EID dtn::security::SecurityKey::reference |
Definition at line 74 of file SecurityKey.h.
Referenced by dtn::security::BundleAuthenticationBlock::auth(), dtn::security::PayloadConfidentialBlock::decrypt(), dtn::security::PayloadConfidentialBlock::encrypt(), dtn::security::SecurityKeyManager::get(), dtn::daemon::NativeDaemon::getKeyInfo(), dtn::security::KeyExchangeSession::putKey(), dtn::security::PayloadIntegrityBlock::sign(), dtn::security::SecurityKeyManager::store(), and dtn::security::PayloadIntegrityBlock::verify().
| TrustLevel dtn::security::SecurityKey::trustlevel |
Definition at line 80 of file SecurityKey.h.
Referenced by dtn::daemon::NativeDaemon::getKeyInfo(), and dtn::security::KeyExchangeSession::putKey().
| KeyType dtn::security::SecurityKey::type |
Definition at line 71 of file SecurityKey.h.
Referenced by dtn::security::QRCodeProtocol::begin(), dtn::security::SecurityKeyManager::get(), getEVP(), getFingerprint(), getRSA(), dtn::security::KeyExchangeSession::putKey(), and dtn::security::SecurityKeyManager::store().