Home | Trees | Indices | Help |
---|
|
1 # Author: Trevor Perrin 2 # See the LICENSE file for legal information regarding use of this file. 3 4 """Abstract class for 3DES.""" 5298 if len(key) != 24: 9 raise ValueError() 10 if mode != 2: 11 raise ValueError() 12 if len(IV) != 8: 13 raise ValueError() 14 self.isBlockCipher = True 15 self.isAEAD = False 16 self.block_size = 8 17 self.implementation = implementation 18 self.name = "3des"19 20 #CBC-Mode encryption, returns ciphertext 21 #WARNING: *MAY* modify the input as well 24 25 #CBC-Mode decryption, returns plaintext 26 #WARNING: *MAY* modify the input as well
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Nov 27 15:14:58 2015 | http://epydoc.sourceforge.net |