treplace PyCrypto with PyCryptodome - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8fabd1245d6c37d80525a917dadc26ee02d74e7a DIR parent 60b300d6ed7aa128776383905b217d12736364a9 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 9 Mar 2017 10:47:53 +0100 replace PyCrypto with PyCryptodome Diffstat: M lib/bitcoin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py t@@ -88,14 +88,12 @@ TYPE_SCRIPT = 2 # AES encryption try: - from Crypto.Cipher import AES + from Cryptodome.Cipher import AES except: AES = None def aes_encrypt_with_iv(key, iv, data): if AES: - AES.block_size = 16 - AES.key_size = 32 padlen = 16 - (len(data) % 16) if padlen == 0: padlen = 16