17INLINE IDecryptStream::
18IDecryptStream() :
std::istream(&_buf) {
24INLINE IDecryptStream::
25IDecryptStream(std::istream *source,
bool owns_source,
26 const std::string &password) :
std::istream(&_buf) {
27 open(source, owns_source, password);
33INLINE IDecryptStream &IDecryptStream::
34open(std::istream *source,
bool owns_source,
const std::string &password) {
35 clear((ios_iostate)0);
36 _buf.open_read(source, owns_source, password);
44INLINE IDecryptStream &IDecryptStream::
53INLINE
const std::string &IDecryptStream::
54get_algorithm()
const {
55 return _buf.get_algorithm();
61INLINE
int IDecryptStream::
62get_key_length()
const {
63 return _buf.get_key_length();
69INLINE
int IDecryptStream::
70get_iteration_count()
const {
71 return _buf.get_iteration_count();
78INLINE OEncryptStream::
79OEncryptStream() :
std::ostream(&_buf) {
85INLINE OEncryptStream::
86OEncryptStream(std::ostream *dest,
bool owns_dest,
const std::string &password) :
89 open(dest, owns_dest, password);
95INLINE OEncryptStream &OEncryptStream::
96open(std::ostream *dest,
bool owns_dest,
const std::string &password) {
97 clear((ios_iostate)0);
98 _buf.open_write(dest, owns_dest, password);
106INLINE OEncryptStream &OEncryptStream::
115INLINE
const std::string &OEncryptStream::
116get_algorithm()
const {
117 return _buf.get_algorithm();
123INLINE
int OEncryptStream::
124get_key_length()
const {
125 return _buf.get_key_length();
131INLINE
int OEncryptStream::
132get_iteration_count()
const {
133 return _buf.get_iteration_count();
145INLINE
void OEncryptStream::
146set_algorithm(
const std::string &algorithm) {
147 _buf.set_algorithm(algorithm);
158INLINE
void OEncryptStream::
159set_key_length(
int key_length) {
160 _buf.set_key_length(key_length);
174INLINE
void OEncryptStream::
175set_iteration_count(
int iteration_count) {
176 _buf.set_iteration_count(iteration_count);