From 6416843c2bcd5182da462c2929b33a41290b7183 Mon Sep 17 00:00:00 2001 From: Bertrand Bonnefoy-Claudet Date: Tue, 19 May 2026 18:04:36 +0200 Subject: [PATCH] Remove the unneeded use of the `backend` argument See . --- src/shuffled/crypto.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: