diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-21 19:51:34 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-21 19:51:34 +0300 |
commit | be612cbab27967afcc60175ce78ea88b7108659e (patch) | |
tree | b7715ddd869bb14e4492e4b0fafadc52886da7de /utils/encrypt_file.cpp | |
parent | README updates (diff) | |
download | aes-tools-be612cbab27967afcc60175ce78ea88b7108659e.tar.gz aes-tools-be612cbab27967afcc60175ce78ea88b7108659e.zip |
fix GCC errors
Diffstat (limited to 'utils/encrypt_file.cpp')
-rw-r--r-- | utils/encrypt_file.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/utils/encrypt_file.cpp b/utils/encrypt_file.cpp index 9a3dda8..4161e92 100644 --- a/utils/encrypt_file.cpp +++ b/utils/encrypt_file.cpp @@ -83,18 +83,14 @@ namespace { aes::Box::Block iv; aes::Box::parse_block(iv, algorithm, settings.get_iv_string()); + aes::Box box{ algorithm, key, mode, iv }; - encrypt_file( - aes::Box(algorithm, key, mode, iv), - plaintext_path, - ciphertext_path); + encrypt_file(box, plaintext_path, ciphertext_path); } else { - encrypt_file( - aes::Box(algorithm, key), - plaintext_path, - ciphertext_path); + aes::Box box{ algorithm, key }; + encrypt_file(box, plaintext_path, ciphertext_path); } } } |