aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/encrypt_bmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aesxx/utils/encrypt_bmp.cpp')
-rw-r--r--aesxx/utils/encrypt_bmp.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/aesxx/utils/encrypt_bmp.cpp b/aesxx/utils/encrypt_bmp.cpp
index 5b74fb9..f206537 100644
--- a/aesxx/utils/encrypt_bmp.cpp
+++ b/aesxx/utils/encrypt_bmp.cpp
@@ -18,9 +18,11 @@
namespace {
-void encrypt_bmp(aes::Box& box,
- const std::string& plaintext_path,
- const std::string& ciphertext_path) {
+void encrypt_bmp(
+ aes::Box& box,
+ const std::string& plaintext_path,
+ const std::string& ciphertext_path
+) {
bmp::BmpFile bmp{file::read_file(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());