21 INLINE IDecryptStream::
22 IDecryptStream() : istream(&_buf) {
30 INLINE IDecryptStream::
31 IDecryptStream(istream *source,
bool owns_source,
32 const string &password) : istream(&_buf) {
33 open(source, owns_source, password);
41 INLINE IDecryptStream &IDecryptStream::
42 open(istream *source,
bool owns_source,
const string &password) {
43 clear((ios_iostate)0);
44 _buf.open_read(source, owns_source, password);
54 INLINE IDecryptStream &IDecryptStream::
66 INLINE
const string &IDecryptStream::
67 get_algorithm()
const {
68 return _buf.get_algorithm();
77 INLINE
int IDecryptStream::
78 get_key_length()
const {
79 return _buf.get_key_length();
87 INLINE
int IDecryptStream::
88 get_iteration_count()
const {
89 return _buf.get_iteration_count();
98 INLINE OEncryptStream::
99 OEncryptStream() : ostream(&_buf) {
107 INLINE OEncryptStream::
108 OEncryptStream(ostream *dest,
bool owns_dest,
const string &password) :
111 open(dest, owns_dest, password);
119 INLINE OEncryptStream &OEncryptStream::
120 open(ostream *dest,
bool owns_dest,
const string &password) {
121 clear((ios_iostate)0);
122 _buf.open_write(dest, owns_dest, password);
132 INLINE OEncryptStream &OEncryptStream::
153 INLINE
void OEncryptStream::
154 set_algorithm(
const string &algorithm) {
155 _buf.set_algorithm(algorithm);
170 INLINE
void OEncryptStream::
171 set_key_length(
int key_length) {
172 _buf.set_key_length(key_length);
190 INLINE
void OEncryptStream::
191 set_iteration_count(
int iteration_count) {
192 _buf.set_iteration_count(iteration_count);