summaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/decrypt_bmp.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-22 17:57:37 +0200
committerEgor Tensin <egor@tensin.name>2026-06-22 17:57:37 +0200
commit05691f614baa782801c4b22efa2ee9a73de4b3b3 (patch)
tree99a1af51ac882a2b1bb7db3e95c5d462b7879118 /aesxx/utils/decrypt_bmp.cpp
parentMerge pull request #7 from egor-tensin/dependabot/github_actions/actions/chec... (diff)
downloadaes-tools-05691f614baa782801c4b22efa2ee9a73de4b3b3.tar.gz
aes-tools-05691f614baa782801c4b22efa2ee9a73de4b3b3.zip
aesxx/utils: refactoring
Diffstat (limited to 'aesxx/utils/decrypt_bmp.cpp')
-rw-r--r--aesxx/utils/decrypt_bmp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/aesxx/utils/decrypt_bmp.cpp b/aesxx/utils/decrypt_bmp.cpp
index 50060eb..3247d63 100644
--- a/aesxx/utils/decrypt_bmp.cpp
+++ b/aesxx/utils/decrypt_bmp.cpp
@@ -25,9 +25,9 @@ void decrypt_bmp(
const std::string& ciphertext_path,
const std::string& plaintext_path
) {
- bmp::BmpFile bmp{file::read_file(ciphertext_path)};
+ BmpFile bmp{file::read(ciphertext_path)};
bmp.replace_pixels(box.decrypt_buffer(bmp.get_pixels(), bmp.get_pixels_size()));
- file::write_file(plaintext_path, bmp.get_buffer(), bmp.get_size());
+ file::write(plaintext_path, bmp.get_buffer(), bmp.get_size());
}
void decrypt_bmp(const FileSettings& settings) {