An input stream object that uses OpenSSL to decrypt the input from another source stream on-the-fly.
More...
Public Types |
enum | openmode |
enum | seekdir { beg = 0,
cur = 1,
end = 2
} |
Public Member Functions |
| IDecryptStream () |
| IDecryptStream (istream source, bool owns_source, string password) |
bool | bad () |
| clear () |
IDecryptStream | close () |
| Resets the EncryptStream to empty, but does not actually close the source istream unless owns_source was true.
|
bool | eof () |
bool | fail () |
int | get () |
string | getAlgorithm () |
| Returns the encryption algorithm that was read from the stream.
|
int | getIterationCount () |
| Returns the value that was was read from the stream.
|
int | getKeyLength () |
| Returns the encryption key length, in bits, that was read from the stream.
|
bool | good () |
IDecryptStream | open (istream source, bool owns_source, string password) |
| seekg (unsigned long int pos) |
| seekg (long int off, seekdir dir) |
unsigned long int | tellg () |
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.