Home | Trees | Indices | Help |
|
---|
|
object --+ | OpenPgpMode
OpenPGP mode.
This mode is a variant of CFB, and it is only used in PGP and OpenPGP applications. If in doubt, use another mode.
An Initialization Vector (IV) is required.
Unlike CFB, the encrypted IV (not the IV itself) is transmitted to the receiver.
The IV is a random data block. For legacy reasons, two of its bytes are duplicated to act as a checksum for the correctness of the key, which is now known to be insecure and is ignored. The encrypted IV is therefore 2 bytes longer than the clean IV.
Instance Methods | |||
|
|||
|
|||
Inherited from |
Instance Variables | |
block_size The block size of the underlying cipher, in bytes. |
Properties | |
Inherited from |
Method Details |
Encrypt data with the key and the parameters set at initialization. A cipher object is stateful: once you have encrypted a message you cannot encrypt (or decrypt) another message using the same object. The data to encrypt can be broken up in two or more pieces and encrypt can be called multiple times. That is, the statement:
is equivalent to:
This function does not add any padding to the plaintext.
|
Decrypt data with the key and the parameters set at initialization. A cipher object is stateful: once you have decrypted a message you cannot decrypt (or encrypt) another message with the same object. The data to decrypt can be broken up in two or more pieces and decrypt can be called multiple times. That is, the statement:
is equivalent to:
This function does not remove any padding from the plaintext.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Feb 16 14:05:21 2017 | http://epydoc.sourceforge.net |