From 53e366a67739fa798270e4cf084dcf10558ec74e Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 15 Jul 2022 11:55:17 +0530 Subject: [PATCH] Island: Remove unused _KEY_LENGTH_BYTES variables from DataStoreEncryptor and RepositoryEncryptor --- .../cc/server_utils/encryption/data_store_encryptor.py | 2 -- .../cc/server_utils/encryption/repository_encryptor.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py index 79f07e6c6..9fecce939 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py @@ -17,8 +17,6 @@ _encryptor: Union[None, IEncryptor] = None # NOTE: This class is being replaced by RepositoryEncryptor class DataStoreEncryptor(IEncryptor): - _KEY_LENGTH_BYTES = 32 - def __init__(self, secret: str, key_file: Path): self._key_file = key_file self._password_based_encryptor = PasswordBasedBytesEncryptor(secret) diff --git a/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py index 7d1686c82..ccc5403f1 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/repository_encryptor.py @@ -10,8 +10,6 @@ from .password_based_bytes_encryptor import PasswordBasedBytesEncryptor class RepositoryEncryptor(ILockableEncryptor): - _KEY_LENGTH_BYTES = 32 - def __init__(self, key_file: Path): self._key_file = key_file self._password_based_encryptor = None