IDecryptStream
-
class IDecryptStream
Bases:
istream
An input stream object that uses OpenSSL to decrypt the input from another source stream on-the-fly.
Attach an IDecryptStream to an existing istream that provides encrypted data, as generated by an
OEncryptStream
, and read the corresponding unencrypted data from the IDecryptStream.Seeking is not supported.
Inheritance diagram
-
IDecryptStream(void)
-
explicit IDecryptStream(std::istream *source, bool owns_source, std::string const &password)
-
IDecryptStream &close(void)
Resets the EncryptStream to empty, but does not actually close the source istream unless owns_source was true.
-
std::string const &get_algorithm(void) const
Returns the encryption algorithm that was read from the stream.
-
int get_iteration_count(void) const
Returns the value that was was read from the stream.
-
int get_key_length(void) const
Returns the encryption key length, in bits, that was read from the stream.
-
IDecryptStream &open(std::istream *source, bool owns_source, std::string const &password)
-
IDecryptStream(void)