Package yawPyCrypto :: Module _CipherStream :: Class ZipDecryptStream
[show private | hide private]
[frames | no frames]

Class ZipDecryptStream

     object --+            
              |            
     StreamBase --+        
                  |        
        InputStream --+    
                      |    
     object --+       |    
              |       |    
AlgoDefinitions --+   |    
                  |   |    
       CipherStream --+    
                      |    
          DecryptStream --+
                          |
                         ZipDecryptStream

Known Subclasses:
ZipDecryptCipher, ZipKeyDecryptCipher

Zipped stream decryption. This reads a stream as created by the ZipEncryptStream functions, and decrypts the packets before passing them to the zlib decompression. This should never need to be instantiated directly.
Method Summary
  __init__(self)
Initialize the decryption stream by creating the decompression object.
a new object with type S, a subtype of T __new__(S, ...)
  _checkInst(self)
Instance checking done by all methods of this class.
  _CipherStream__getPass(self)
Retrieve the password this stream uses. (inherited from CipherStream)
  _feedDecrypt(self, data)
Feed data to the decryption, and feed the return to the zlib decompression object.
  _feedDecryptRaw(self, data)
Feed data to the decryption. (inherited from DecryptStream)
  _feedInput(self, data)
Feed input to the stream. (inherited from InputStream)
  _feedOutput(self, data)
Feed data to the output buffer. (inherited from InputStream)
  _feedPacket(self, ptype, pdata)
Function called to feed a packet from the input stream. (inherited from InputStream)
  _finishInput(self)
Finish the input stream by checking whether there is still data waiting or a continuation which is not finished. (inherited from InputStream)
  _start(self, cipher_algo, cipher_mode, IV, password, hash_algo)
Start the encryption stream with the passed in parameters, and create the crypto objects needed for the stream. (inherited from CipherStream)
  _stop(self)
Stop the decryption stream by finalizing the underlying decryption stream, and decompressing the rest of the data, and finally flushing the encryption stream, so that all data will be available.
  _StreamBase__getData(self)
Retrieve the data from the output property as a string. (inherited from StreamBase)
  _writeOutput(self, data)
Append data to the output. (inherited from StreamBase)

Method Details

__init__(self)
(Constructor)

Initialize the decryption stream by creating the decompression object.

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

_checkInst(self)

Instance checking done by all methods of this class.

_feedDecrypt(self, data)

Feed data to the decryption, and feed the return to the zlib decompression object. Return the value that object returns.

_stop(self)

Stop the decryption stream by finalizing the underlying decryption stream, and decompressing the rest of the data, and finally flushing the encryption stream, so that all data will be available. In case the data is cut off, or too much data is available, this function raises an error condition.

Generated by Epydoc 1.1 on Sun Aug 17 03:32:34 2003 http://epydoc.sf.net