From 05691f614baa782801c4b22efa2ee9a73de4b3b3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 22 Jun 2026 17:57:37 +0200 Subject: aesxx/utils: refactoring --- aesxx/utils/encrypt_bmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aesxx/utils/encrypt_bmp.cpp') diff --git a/aesxx/utils/encrypt_bmp.cpp b/aesxx/utils/encrypt_bmp.cpp index f206537..2be1e4f 100644 --- a/aesxx/utils/encrypt_bmp.cpp +++ b/aesxx/utils/encrypt_bmp.cpp @@ -23,9 +23,9 @@ void encrypt_bmp( const std::string& plaintext_path, const std::string& ciphertext_path ) { - bmp::BmpFile bmp{file::read_file(plaintext_path)}; + BmpFile bmp{file::read(plaintext_path)}; bmp.replace_pixels(box.encrypt_buffer(bmp.get_pixels(), bmp.get_pixels_size())); - file::write_file(ciphertext_path, bmp.get_buffer(), bmp.get_size()); + file::write(ciphertext_path, bmp.get_buffer(), bmp.get_size()); } void encrypt_bmp(const FileSettings& settings) { -- cgit v1.3