panda3d.core.IDecryptStream

from panda3d.core import 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

Inheritance diagram of IDecryptStream

__init__() → None
__init__(source: istream, owns_source: bool, password: str) → None
property algorithm

Returns the encryption algorithm that was read from the stream.

Return type

string

close() → IDecryptStream

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

Return type

IDecryptStream

getAlgorithm() → str

Returns the encryption algorithm that was read from the stream.

getIterationCount() → int

Returns the value that was was read from the stream.

getKeyLength() → int

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

property iteration_count

Returns the value that was was read from the stream.

Return type

int

property key_length

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

Return type

int

open(source: istream, owns_source: bool, password: str) → IDecryptStream
Return type

IDecryptStream