Panda3D
Public Member Functions | Public Attributes | 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 BasicIosChar 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 (Streamoff pos)
 
 seekg (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellg ()
 
- Public Member Functions inherited from BasicIosChar
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 

Public Attributes

const String algorithm
 Returns the encryption algorithm that was read from the stream. More...
 
int iteration_count
 Returns the value that was was read from the stream. More...
 
int key_length
 Returns the encryption key length, in bits, that was read from the stream. More...
 

Additional Inherited Members

- Public Types inherited from IosBase
enum  Iostate
 
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__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( Istream  source,
bool  owns_source,
str  password 
)

◆ close()

IDecryptStream close ( )

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

◆ getAlgorithm()

str getAlgorithm ( )

Returns the encryption algorithm that was read from the stream.

◆ getIterationCount()

int getIterationCount ( )

Returns the value that was was read from the stream.

◆ getKeyLength()

int getKeyLength ( )

Returns the encryption key length, in bits, that was read from the stream.

◆ open()

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

Member Data Documentation

◆ algorithm

const String algorithm

Returns the encryption algorithm that was read from the stream.

◆ iteration_count

int iteration_count

Returns the value that was was read from the stream.

◆ key_length

int key_length

Returns the encryption key length, in bits, that was read from the stream.