e311921112b728a0dc453c61d59787d921f92d8d
5 from pkg_resources
import require
6 require("CryptoPlus>=1.0")
7 #import CryptoPlus.Cipher.python_AES
8 from CryptoPlus
.Cipher
import python_AES
, AES
, python_DES
, DES
, python_DES3
, DES3
, python_Blowfish
, Blowfish
, python_Twofish
, python_Serpent
, python_Rijndael
, CAST
, ARC2
, python_PRESENT
9 from CryptoPlus
.Util
import padding
11 from CryptoPlus
.Cipher
import IDEA
12 from CryptoPlus
.Cipher
import RC5
17 suite
= unittest
.TestSuite()
18 #for mod in (CryptoPlus.Cipher.python_AES,CryptoPlus.Cipher.python_AES):
19 for mod
in python_AES
, AES
, python_DES
, DES
, python_DES3
, DES3
, python_Blowfish
, Blowfish
, python_Twofish
, python_Serpent
, python_Rijndael
, CAST
, ARC2
, python_PRESENT
, padding
:
20 suite
.addTest(doctest
.DocTestSuite(mod
))
22 suite
.addTest(doctest
.DocTestSuite(IDEA
))
23 suite
.addTest(doctest
.DocTestSuite(RC5
))
24 runner
= unittest
.TextTestRunner(verbosity
=2)