IBR-DTNSuite
0.12
|
#include <XORStream.h>
Public Member Functions | |
XORStream (std::ostream &stream, const CipherMode mode, std::string key) | |
virtual | ~XORStream () |
Public Member Functions inherited from ibrcommon::CipherStream | |
CipherStream (std::ostream &stream, const CipherMode mode=CIPHER_DECRYPT, const size_t buffer=2048) | |
virtual | ~CipherStream () |
void | encrypt (std::iostream &stream) |
void | decrypt (std::iostream &stream) |
Protected Member Functions | |
virtual void | encrypt (char *buf, const size_t size) |
virtual void | decrypt (char *buf, const size_t size) |
Protected Member Functions inherited from ibrcommon::CipherStream | |
virtual void | encrypt_final () |
virtual void | decrypt_final () |
virtual int | sync () |
virtual std::char_traits< char > ::int_type | overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof()) |
Additional Inherited Members | |
Public Types inherited from ibrcommon::CipherStream | |
enum | CipherMode { CIPHER_ENCRYPT = 0, CIPHER_DECRYPT = 1 } |
Protected Attributes inherited from ibrcommon::CipherStream | |
CipherMode | _mode |
Definition at line 30 of file XORStream.h.
ibrcommon::XORStream::XORStream | ( | std::ostream & | stream, |
const CipherMode | mode, | ||
std::string | key | ||
) |
Definition at line 26 of file XORStream.cpp.
|
virtual |
Definition at line 31 of file XORStream.cpp.
|
protectedvirtual |
Implements ibrcommon::CipherStream.
Definition at line 48 of file XORStream.cpp.
|
protectedvirtual |
Implements ibrcommon::CipherStream.
Definition at line 35 of file XORStream.cpp.