From 11b023f2be3ef9e563e244228daac917f917c29d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 23 Jun 2026 02:22:15 +0200 Subject: aesxx/utils: add some basic usage tests --- aesxx/utils/encrypt_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aesxx/utils/encrypt_file.cpp') diff --git a/aesxx/utils/encrypt_file.cpp b/aesxx/utils/encrypt_file.cpp index 9f08378..d2d0e51 100644 --- a/aesxx/utils/encrypt_file.cpp +++ b/aesxx/utils/encrypt_file.cpp @@ -35,7 +35,7 @@ void encrypt_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()); -- cgit v1.3