IBR-DTNSuite
0.8
|
#include <InputCipherStream.h>
Public Types | |
enum | CipherMode { CIPHER_ENCRYPT = 0, CIPHER_DECRYPT = 1 } |
Public Member Functions | |
InputCipherStream (std::istream &stream, const CipherMode mode=CIPHER_DECRYPT, const size_t buffer=2048) | |
virtual | ~InputCipherStream () |
Protected Member Functions | |
virtual void | encrypt (char *buf, const size_t size)=0 |
virtual void | decrypt (char *buf, const size_t size)=0 |
virtual int | sync () |
virtual std::char_traits< char > ::int_type | overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof()) |
virtual std::char_traits< char > ::int_type | underflow () |
Definition at line 18 of file InputCipherStream.h.
Definition at line 21 of file InputCipherStream.h.
ibrcommon::InputCipherStream::InputCipherStream | ( | std::istream & | stream, |
const CipherMode | mode = CIPHER_DECRYPT , |
||
const size_t | buffer = 2048 |
||
) |
Definition at line 12 of file InputCipherStream.cpp.
ibrcommon::InputCipherStream::~InputCipherStream | ( | ) | [virtual] |
Definition at line 20 of file InputCipherStream.cpp.
virtual void ibrcommon::InputCipherStream::decrypt | ( | char * | buf, |
const size_t | size | ||
) | [protected, pure virtual] |
virtual void ibrcommon::InputCipherStream::encrypt | ( | char * | buf, |
const size_t | size | ||
) | [protected, pure virtual] |
virtual std::char_traits<char>::int_type ibrcommon::InputCipherStream::overflow | ( | std::char_traits< char >::int_type | = std::char_traits< char >::eof() | ) | [protected, virtual] |
virtual int ibrcommon::InputCipherStream::sync | ( | ) | [protected, virtual] |
std::char_traits< char >::int_type ibrcommon::InputCipherStream::underflow | ( | ) | [protected, virtual] |
Definition at line 25 of file InputCipherStream.cpp.