aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/decrypt_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--utils/decrypt_block.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/decrypt_block.cpp b/utils/decrypt_block.cpp
index 2029669..6cc9c0a 100644
--- a/utils/decrypt_block.cpp
+++ b/utils/decrypt_block.cpp
@@ -151,16 +151,14 @@ namespace
{
aes::Box::Block iv;
aes::Box::parse_block(iv, algorithm, input.get_iv_string());
+ aes::Box box{ algorithm, key, mode, iv };
- decrypt_using_particular_box(
- aes::Box(algorithm, key, mode, iv),
- input.get_input_block_strings());
+ decrypt_using_particular_box(box, input.get_input_block_strings());
}
else
{
- decrypt_using_particular_box(
- aes::Box(algorithm, key),
- input.get_input_block_strings());
+ aes::Box box{ algorithm, key };
+ decrypt_using_particular_box(box, input.get_input_block_strings());
}
}
}