Island: Wrap missed encryption key with EncryptionKey32Bytes in DataStoreEncryptor

This commit is contained in:
Shreya Malviya 2022-07-19 19:09:44 +05:30
parent 6d6b7e8cba
commit 37b8db6a6c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class DataStoreEncryptor(IEncryptor):
with open(self._key_file, "rb") as f: with open(self._key_file, "rb") as f:
encrypted_key = f.read() encrypted_key = f.read()
plaintext_key = self._password_based_encryptor.decrypt(encrypted_key) plaintext_key = EncryptionKey32Bytes(self._password_based_encryptor.decrypt(encrypted_key))
return KeyBasedEncryptor(plaintext_key) return KeyBasedEncryptor(plaintext_key)
def _create_key(self) -> KeyBasedEncryptor: def _create_key(self) -> KeyBasedEncryptor: