Package Crypto :: Package Cipher :: Module DES3 :: Class DES3Cipher
[frames] | no frames]

Class DES3Cipher

blockalgo.BlockAlgo --+
                      |
                     DES3Cipher

TDES cipher object
Instance Methods
 
__init__(self, key, *args, **kwargs)
Initialize a TDES cipher object
    Inherited from blockalgo.BlockAlgo
 
decrypt(self, ciphertext)
Decrypt data with the key and the parameters set at initialization.
 
decrypt_and_verify(self, ciphertext, mac_tag)
Perform decrypt() and verify() in one step.
 
digest(self)
Compute the binary MAC tag in an AEAD mode.
 
encrypt(self, plaintext)
Encrypt data with the key and the parameters set at initialization.
 
encrypt_and_digest(self, plaintext)
Perform encrypt() and digest() in one step.
 
hexdigest(self)
Compute the printable MAC tag in an AEAD mode.
 
hexverify(self, hex_mac_tag)
Validate the printable MAC tag in an AEAD mode.
 
update(self, assoc_data)
Protect associated data
 
verify(self, mac_tag)
Validate the binary MAC tag in an AEAD mode.
Method Details

__init__(self, key, *args, **kwargs)
(Constructor)

 

Initialize a TDES cipher object

See also new() at the module level.

Overrides: blockalgo.BlockAlgo.__init__