diff options
Diffstat (limited to 'aesxx/utils/decrypt_file.cpp')
| -rw-r--r-- | aesxx/utils/decrypt_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aesxx/utils/decrypt_file.cpp b/aesxx/utils/decrypt_file.cpp index 39084fd..4aa7d6b 100644 --- a/aesxx/utils/decrypt_file.cpp +++ b/aesxx/utils/decrypt_file.cpp @@ -35,7 +35,7 @@ void decrypt_file(const FileSettings& settings) { aes::Box::Key key; aes::Box::parse_key(key, algorithm, settings.get_key()); - if (aes::mode_requires_init_vector(mode)) { + if (settings.has_iv()) { aes::Box::Block iv; aes::Box::parse_block(iv, algorithm, settings.get_iv()); |
