Panda3D
Public Types | Public Member Functions

IDecryptStream Class Reference

An input stream object that uses OpenSSL to decrypt the input from another source stream on-the-fly. More...

Inheritance diagram for IDecryptStream:
istream ios ios_base

List of all members.

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 ()

Detailed Description

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.


Member Enumeration Documentation

enum openmode [inherited]
enum seekdir [inherited]
Enumerator:
beg 
cur 
end 

Constructor & Destructor Documentation

IDecryptStream ( istream  source,
bool  owns_source,
string  password 
)

Member Function Documentation

bool bad ( ) [inherited]
clear ( ) [inherited]
IDecryptStream close ( )

Resets the EncryptStream to empty, but does not actually close the source istream unless owns_source was true.

bool eof ( ) [inherited]
bool fail ( ) [inherited]
int get ( ) [inherited]
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 ( ) [inherited]
IDecryptStream open ( istream  source,
bool  owns_source,
string  password 
)
seekg ( long int  off,
seekdir  dir 
) [inherited]
seekg ( unsigned long int  pos) [inherited]
unsigned long int tellg ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties