22 #ifndef INPUTCIPHERSTREAM_H_
23 #define INPUTCIPHERSTREAM_H_
32 class InputCipherStream :
public std::basic_streambuf<char, std::char_traits<char> >,
public std::istream
45 virtual void encrypt(
char *buf,
const size_t size) = 0;
46 virtual void decrypt(
char *buf,
const size_t size) = 0;
49 virtual std::char_traits<char>::int_type
overflow(std::char_traits<char>::int_type = std::char_traits<char>::eof());
50 virtual std::char_traits<char>::int_type
underflow();
53 std::istream &_stream;
58 std::vector<char> data_buf_;