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

Class ZipEncryptStream

     object --+            
              |            
     StreamBase --+        
                  |        
       OutputStream --+    
                      |    
     object --+       |    
              |       |    
AlgoDefinitions --+   |    
                  |   |    
       CipherStream --+    
                      |    
          EncryptStream --+
                          |
                         ZipEncryptStream

Known Subclasses:
ZipEncryptCipher, ZipKeyEncryptCipher

This encryption stream wraps all data by zipping it using compression 9 before encrypting it. This offers a little more protection against crypto attacks by creating pseudo-random data from the input data before encrypting it. This should never need to be instantiated directly.
Method Summary
  __init__(self)
Initialize the zipped encryption stream by creating the zlib object.
a new object with type S, a subtype of T __new__(S, ...)
  _checkInst(self)
Instance checking done by all functions of this class.
  _CipherStream__getPass(self)
Retrieve the password this stream uses. (inherited from CipherStream)
  _feedEncrypt(self, data)
Feed data to the encryption, but zip it before feeding it.
  _feedEncryptRaw(self, data)
Feed the passed in packet to the encryption, and return any available data which comes back from the encryption routine. (inherited from EncryptStream)
  _feedOutput(self, ptype, pdata)
Feed packet to the output stream. (inherited from OutputStream)
  _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 by finalizing the zlib object.
  _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 zipped encryption stream by creating the zlib object.

__new__(S, ...)

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

_checkInst(self)

Instance checking done by all functions of this class.

_feedEncrypt(self, data)

Feed data to the encryption, but zip it before feeding it. Returns the data the encryption returns.

_stop(self)

Stop the decryption by finalizing the zlib object.

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