Package yawPyCrypto :: Module KeyCipher :: Class ZipKeyDecryptCipher
[show private | hide private]
[frames | no frames]

Class ZipKeyDecryptCipher

                 object --+    
                          |    
             KeyDecryptBase --+
                              |
                 object --+   |
                          |   |
                DecryptBase --+
                              |
     object --+               |
              |               |
     StreamBase --+           |
                  |           |
        InputStream --+       |
                      |       |
     object --+       |       |
              |       |       |
AlgoDefinitions --+   |       |
                  |   |       |
       CipherStream --+       |
                      |       |
          DecryptStream --+   |
                          |   |
           ZipDecryptStream --+
                              |
                             ZipKeyDecryptCipher


Class which works similar to KeyDecryptCipher, but streams all data read from the encrypted stream through unzipping on reading. The stream this class works on must have been created using ZipKeyEncryptCipher.
Method Summary
  __init__(self, dec_keys, verify_keys, IV)
See the KeyDecryptCipher.__init__ function for an explanation of the parameters to pass to this function.
a new object with type S, a subtype of T __new__(S, ...)
  feed(self, data)
Feed data to the decryption. (inherited from DecryptBase)
  finish(self)
Finish the decryption stream. (inherited from DecryptBase)
  _checkInst(self)
Instance checking done by all methods of this class. (inherited from ZipDecryptStream)
  _CipherStream__getPass(self)
Retrieve the password this stream uses. (inherited from CipherStream)
  _encryptionEnd(self, pdata)
Read the encryption end packet. (inherited from DecryptBase)
  _encryptionHeader(self, pdata)
Read the encryption header. (inherited from KeyDecryptBase)
  _encryptionPacket(self, pdata)
Called when an encrypted data packet is found. (inherited from DecryptBase)
  _encryptionSignature(self, pdata)
Read the encryption signature, and try to verify the signatures presented there. (inherited from KeyDecryptBase)
  _encryptionStart(self, pdata)
Start of encryption stream packet. (inherited from DecryptBase)
  _feedDecrypt(self, data)
Feed data to the decryption, and feed the return to the zlib decompression object. (inherited from ZipDecryptStream)
  _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)
This method is called by InputStream to feed packets as they are found in the stream. (inherited from DecryptBase)
  _finishInput(self)
Finish the input stream by checking whether there is still data waiting or a continuation which is not finished. (inherited from InputStream)
  _KeyDecryptBase__getDecryptionKey(self)
Returns the key used to decrypt this stream, if available. (inherited from KeyDecryptBase)
  _KeyDecryptBase__getVerifyKey(self)
Returns the key which was successfully used to verify one of the signatures in the encrypted stream. (inherited from KeyDecryptBase)
  _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. (inherited from ZipDecryptStream)
  _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, dec_keys=[], verify_keys=[], IV=None)
(Constructor)

See the KeyDecryptCipher.__init__ function for an explanation of the parameters to pass to this function.

__new__(S, ...)

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

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