There doesn't seem to be RC5/IDEA (any more? only in my copy?)
This commit is contained in:
parent
e960c92fbd
commit
f6f305317a
|
@ -11,7 +11,7 @@ def cipher(do_encrypt, cipherspec, key, data, iv = None):
|
||||||
"""Do a cryptographic operation.
|
"""Do a cryptographic operation.
|
||||||
operation = do_encrypt ? encrypt : decrypt,
|
operation = do_encrypt ? encrypt : decrypt,
|
||||||
cipherspec must be of the form "cipher-mode", or "cipher\""""
|
cipherspec must be of the form "cipher-mode", or "cipher\""""
|
||||||
from Crypto.Cipher import DES3, DES, AES, IDEA, RC5
|
from Crypto.Cipher import DES3, DES, AES
|
||||||
cipherparts = cipherspec.split("-")
|
cipherparts = cipherspec.split("-")
|
||||||
|
|
||||||
if len(cipherparts) > 2:
|
if len(cipherparts) > 2:
|
||||||
|
|
Loading…
Reference in New Issue