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

Class KeyDecryptCipher

             object --+    
                      |    
         KeyDecryptBase --+
                          |
             object --+   |
                      |   |
            DecryptBase --+
                          |
     object --+           |
              |           |
     StreamBase --+       |
                  |       |
        InputStream --+   |
                      |   |
     object --+       |   |
              |       |   |
AlgoDefinitions --+   |   |
                  |   |   |
       CipherStream --+   |
                      |   |
          DecryptStream --+
                          |
                         KeyDecryptCipher


Key cipher decryption class. This is the main entrypoint for all stream decryption to decrypt streams made by the KeyEncryptCipher class. An instance of this class works similar to an instance of the DecryptCipher class.
Method Summary
  __init__(self, dec_keys, verify_keys, IV)
Initialize the decryption cipher.
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 called by all members. (inherited from DecryptStream)
  _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. (inherited from DecryptStream)
  _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)
Finalize the decryption stream. (inherited from DecryptStream)
  _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)

Initialize the decryption cipher. The parameters used here are
the following:
    
    dec_keys - Keys to try for decrypting the stream. The key
               which was actually used for decryption of the
               stream is assigned to the decryptionKey property
               of the instance.
    verify_keys - Keys which are used to verify the signature(s)
                  that are appended to the cipher packet. The key
                  which was actually used for verifying the
                  signature is assigned to the verifyKey property
                  of the instance.
    IV - In case you passed a user-defined block chaining mode IV
         to the encryption cipher class, you must also pass it
         to the decryption. Special value None means to use the
         default IV defined in _Imports.py.
         
All arguments except dec_keys and verify_keys have safe defaults.

__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