IBR-DTNSuite
0.12
|
#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, dtn::data::Length length) const |
void | set (TLV_TYPES type, std::string value) |
void | set (TLV_TYPES type, const unsigned char *value, dtn::data::Length length) |
void | remove (TLV_TYPES type) |
const std::string | toString () const |
dtn::data::Length | getLength () const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const TLVList &tlvlist) |
std::istream & | operator>> (std::istream &stream, TLVList &tlvlist) |
Definition at line 174 of file SecurityBlock.h.
|
inline |
Definition at line 177 of file SecurityBlock.h.
|
inlinevirtual |
Definition at line 178 of file SecurityBlock.h.
const std::string dtn::security::SecurityBlock::TLVList::get | ( | SecurityBlock::TLV_TYPES | type) | const |
Definition at line 76 of file SecurityBlock.cpp.
Referenced by dtn::security::SecurityBlock::decryptBlock(), dtn::security::PayloadConfidentialBlock::decryptPayload(), dtn::security::SecurityBlock::getKey(), dtn::security::SecurityBlock::getSalt(), dtn::security::PayloadIntegrityBlock::verify(), and dtn::security::BundleAuthenticationBlock::verify().
void dtn::security::SecurityBlock::TLVList::get | ( | TLV_TYPES | type, |
unsigned char * | value, | ||
dtn::data::Length | length | ||
) | const |
Definition at line 89 of file SecurityBlock.cpp.
dtn::data::Length dtn::security::SecurityBlock::TLVList::getLength | ( | ) | const |
Definition at line 59 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::MutableSerializer::operator<<(), and dtn::security::operator>>().
void dtn::security::SecurityBlock::TLVList::remove | ( | SecurityBlock::TLV_TYPES | type) |
Definition at line 117 of file SecurityBlock.cpp.
void dtn::security::SecurityBlock::TLVList::set | ( | SecurityBlock::TLV_TYPES | type, |
std::string | value | ||
) |
Definition at line 103 of file SecurityBlock.cpp.
Referenced by dtn::security::SecurityBlock::addFragmentRange(), dtn::security::SecurityBlock::addKey(), dtn::security::SecurityBlock::addSalt(), dtn::security::BundleAuthenticationBlock::auth(), dtn::security::PayloadConfidentialBlock::encrypt(), and dtn::security::PayloadIntegrityBlock::sign().
void dtn::security::SecurityBlock::TLVList::set | ( | TLV_TYPES | type, |
const unsigned char * | value, | ||
dtn::data::Length | length | ||
) |
Definition at line 111 of file SecurityBlock.cpp.
References dtn::data::Block::set().
const std::string dtn::security::SecurityBlock::TLVList::toString | ( | ) | const |
Definition at line 47 of file SecurityBlock.cpp.
Referenced by dtn::security::MutableSerializer::operator<<().
|
friend |
Definition at line 137 of file SecurityBlock.cpp.
|
friend |
Definition at line 149 of file SecurityBlock.cpp.