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