electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8fabd1245d6c37d80525a917dadc26ee02d74e7a
parent 60b300d6ed7aa128776383905b217d12736364a9
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  9 Mar 2017 10:47:53 +0100

replace PyCrypto with PyCryptodome

Diffstat:
Mlib/bitcoin.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/bitcoin.py b/lib/bitcoin.py @@ -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