Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | List of all members
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 IosBase

Public Member Functions

 __init__ ()
 
 __init__ (Istream source, bool owns_source, str password)
 
IDecryptStream close ()
 Resets the EncryptStream to empty, but does not actually close the source istream unless owns_source was true. More...
 
str getAlgorithm ()
 Returns the encryption algorithm that was read from the stream. More...
 
int getIterationCount ()
 Returns the value that was was read from the stream. More...
 
int getKeyLength ()
 Returns the encryption key length, in bits, that was read from the stream. More...
 
IDecryptStream open (Istream source, bool owns_source, str password)
 
- Public Member Functions inherited from Istream
int get ()
 
 seekg (Ios::Streamoff off, IosBase::Seekdir dir)
 
 seekg (Ios::Streampos pos)
 
Ios::Streampos tellg ()
 
- Public Member Functions inherited from Ios
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 

Additional Inherited Members

- Public Types inherited from IosBase
enum  Openmode
 
enum  Seekdir { beg = 0, cur = 1, end = 2 }
 

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 Function Documentation

__init__ ( )
__init__ ( Istream  source,
bool  owns_source,
str  password 
)
IDecryptStream close ( )

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

str 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.

IDecryptStream open ( Istream  source,
bool  owns_source,
str  password 
)