1# This tests minimal configuration of ucrypto module, which is 2# AES128 encryption (anything else, including AES128 decryption, 3# is optional). 4try: 5 from Crypto.Cipher import AES 6 7 aes = AES.new 8except ImportError: 9 try: 10 from ucryptolib import aes 11 except ImportError: 12 print("SKIP") 13 raise SystemExit 14 15crypto = aes(b"1234" * 4, 1) 16enc = crypto.encrypt(bytes(range(32))) 17print(enc) 18