tMerge pull request #6139 from JeremyRand/crypto-backend-typo - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit f8019d9b6ca9d1e1e656f057aad1435975616ad5 (DIR) parent 484e317bfac6b2f93e31949e490aaa785093356d (HTM) Author: ThomasV <thomasv@electrum.org> Date: Sun, 3 May 2020 05:52:20 +0200 Merge pull request #6139 from JeremyRand/crypto-backend-typo Fix "backed" typo in crypto.py Diffstat: M electrum/crypto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/electrum/crypto.py b/electrum/crypto.py t@@ -281,7 +281,7 @@ def chacha20_poly1305_encrypt(*, key: bytes, nonce: bytes, associated_data: byte if HAS_CRYPTOGRAPHY: a = CG_aead.ChaCha20Poly1305(key) return a.encrypt(nonce, data, associated_data) - raise Exception("no chacha20 backed found") + raise Exception("no chacha20 backend found") def chacha20_poly1305_decrypt(*, key: bytes, nonce: bytes, associated_data: bytes, data: bytes) -> bytes: t@@ -300,7 +300,7 @@ def chacha20_poly1305_decrypt(*, key: bytes, nonce: bytes, associated_data: byte return a.decrypt(nonce, data, associated_data) except cryptography.exceptions.InvalidTag as e: raise ValueError("invalid tag") from e - raise Exception("no chacha20 backed found") + raise Exception("no chacha20 backend found") def chacha20_encrypt(*, key: bytes, nonce: bytes, data: bytes) -> bytes: t@@ -317,4 +317,4 @@ def chacha20_encrypt(*, key: bytes, nonce: bytes, data: bytes) -> bytes: cipher = CG_Cipher(algo, mode=None, backend=CG_default_backend()) encryptor = cipher.encryptor() return encryptor.update(data) - raise Exception("no chacha20 backed found") + raise Exception("no chacha20 backend found")