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

Class DecryptStream

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

Known Subclasses:
DecryptCipher, ZipDecryptStream, KeyDecryptCipher

This class implements a decryption stream. It expects correctly formatted packets, and delivers their content back to the user. This class should never need to be called directly.
Method Summary
  __init__(self)
Initialize the decryption stream.
a new object with type S, a subtype of T __new__(S, ...)
  _checkInst(self)
Instance checking called by all members.
  _CipherStream__getPass(self)
Retrieve the password this stream uses. (inherited from CipherStream)
  _feedDecrypt(self, data)
Feed data to the decryption.
  _feedDecryptRaw(self, data)
Feed data to the decryption.
  _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)
Finalize the decryption stream.
  _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. This does nothing except setting the stopped attribute to false.

__new__(S, ...)

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

_checkInst(self)

Instance checking called by all members.

_feedDecrypt(self, data)

Feed data to the decryption. The packet must be of correct length for the decryption to work, there is no buffering. This should be ensured by the EncryptStream, as it only returns packets of correct size.

_feedDecryptRaw(self, data)

Feed data to the decryption. The packet must be of correct length for the decryption to work, there is no buffering. This should be ensured by the EncryptStream, as it only returns packets of correct size.

_stop(self)

Finalize the decryption stream. This checks to see if data is still remaining in the decryption object.

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