Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/224'
Browse files Browse the repository at this point in the history
* origin/pr/224:
  backup/restore: hardcode MD5 algo for format v2/v3 decryption
  • Loading branch information
marmarek committed Nov 22, 2022
2 parents e6efb91 + 0f35e53 commit f6d3222
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions qubesadmin/backup/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ def __run__(self):
["openssl", "enc",
"-d",
"-" + self.crypto_algorithm,
"-md",
"MD5",
"-pass",
"pass:" + self.passphrase],
stdin=subprocess.PIPE,
Expand Down
3 changes: 2 additions & 1 deletion qubesadmin/tests/backup/backupcompatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,8 @@ def handle_v3_file(self, f_name, subdir, stream, compressed=True,
tar = subprocess.Popen(tar_cmdline, stdout=subprocess.PIPE)
if encrypted:
encryptor = subprocess.Popen(
["openssl", "enc", "-e", "-aes-256-cbc", "-pass", "pass:qubes"],
["openssl", "enc", "-e", "-aes-256-cbc",
"-md", "MD5", "-pass", "pass:qubes"],
stdin=tar.stdout,
stdout=subprocess.PIPE)
tar.stdout.close()
Expand Down

0 comments on commit f6d3222

Please sign in to comment.