diff --git a/src/shuffled/crypto.py b/src/shuffled/crypto.py index d2f77e8..335b1dd 100644 --- a/src/shuffled/crypto.py +++ b/src/shuffled/crypto.py @@ -2,7 +2,6 @@ from abc import ABC, abstractmethod from typing import Sequence -from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from . import feistel @@ -23,7 +22,7 @@ def domain_size(self) -> int: return 2**128 def __init__(self, key: bytes) -> None: - cipher = Cipher(algorithms.AES(key), modes.ECB(), backend=default_backend()) + cipher = Cipher(algorithms.AES(key), modes.ECB()) self._encryptor = cipher.encryptor() def randomize(self, integer: int) -> int: