IBR-DTNSuite
0.8
|
#include <SecurityBlock.h>
Public Member Functions | |
TLVList () | |
virtual | ~TLVList () |
const std::string | get (TLV_TYPES type) const |
void | get (TLV_TYPES type, unsigned char *value, size_t length) const |
void | set (TLV_TYPES type, std::string value) |
void | set (TLV_TYPES type, const unsigned char *value, size_t length) |
void | remove (TLV_TYPES type) |
const std::string | toString () const |
size_t | getLength () const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const TLVList &tlvlist) |
std::istream & | operator>> (std::istream &stream, TLVList &tlvlist) |
Definition at line 104 of file SecurityBlock.h.
dtn::security::SecurityBlock::TLVList::TLVList | ( | ) | [inline] |
Definition at line 107 of file SecurityBlock.h.
virtual dtn::security::SecurityBlock::TLVList::~TLVList | ( | ) | [inline, virtual] |
Definition at line 108 of file SecurityBlock.h.
const std::string dtn::security::SecurityBlock::TLVList::get | ( | SecurityBlock::TLV_TYPES | type | ) | const |
Definition at line 59 of file SecurityBlock.cpp.
Referenced by dtn::security::SecurityBlock::decryptBlock(), dtn::security::PayloadConfidentialBlock::decryptPayload(), dtn::security::SecurityBlock::getKey(), dtn::security::SecurityBlock::getSalt(), and dtn::security::BundleAuthenticationBlock::verify().
void dtn::security::SecurityBlock::TLVList::get | ( | TLV_TYPES | type, |
unsigned char * | value, | ||
size_t | length | ||
) | const |
Definition at line 72 of file SecurityBlock.cpp.
size_t dtn::security::SecurityBlock::TLVList::getLength | ( | ) | const |
Definition at line 41 of file SecurityBlock.cpp.
Referenced by dtn::security::PayloadIntegrityBlock::deserialize(), dtn::security::SecurityBlock::getLength(), dtn::security::SecurityBlock::getLength_mutable(), dtn::security::SecurityBlock::getSecurityResultSize(), dtn::security::MutualSerializer::operator<<(), and dtn::security::operator>>().
Definition at line 100 of file SecurityBlock.cpp.
void dtn::security::SecurityBlock::TLVList::set | ( | SecurityBlock::TLV_TYPES | type, |
std::string | value | ||
) |
void dtn::security::SecurityBlock::TLVList::set | ( | TLV_TYPES | type, |
const unsigned char * | value, | ||
size_t | length | ||
) |
Definition at line 94 of file SecurityBlock.cpp.
const std::string dtn::security::SecurityBlock::TLVList::toString | ( | ) | const |
Definition at line 29 of file SecurityBlock.cpp.
Referenced by dtn::security::MutualSerializer::operator<<().
std::ostream& operator<< | ( | std::ostream & | stream, |
const TLVList & | tlvlist | ||
) | [friend] |
Definition at line 120 of file SecurityBlock.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
SecurityBlock::TLVList & | tlvlist | ||
) | [friend] |
Definition at line 132 of file SecurityBlock.cpp.