aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/decrypt_bmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/decrypt_bmp.cpp')
-rw-r--r--utils/decrypt_bmp.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/utils/decrypt_bmp.cpp b/utils/decrypt_bmp.cpp
index f098017..1e286e6 100644
--- a/utils/decrypt_bmp.cpp
+++ b/utils/decrypt_bmp.cpp
@@ -98,18 +98,14 @@ namespace
{
aes::Box::Block iv;
aes::Box::parse_block(iv, algorithm, settings.get_iv_string());
+ aes::Box box{ algorithm, key, mode, iv };
- decrypt_bmp(
- aes::Box(algorithm, key, mode, iv),
- ciphertext_path,
- plaintext_path);
+ decrypt_bmp(box, ciphertext_path, plaintext_path);
}
else
{
- decrypt_bmp(
- aes::Box(algorithm, key),
- ciphertext_path,
- plaintext_path);
+ aes::Box box{ algorithm, key };
+ decrypt_bmp(box, ciphertext_path, plaintext_path);
}
}
}