aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/decrypt_file.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:06:16 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:06:16 +0200
commit1b2505ac21ce8dd09a34aff86455a8a3677094a0 (patch)
tree61124c0c28bb884842ac931f11a6c203a034fe7e /aesxx/utils/decrypt_file.cpp
parentworkflows/ci: add linting for Python test scripts (diff)
downloadaes-tools-1b2505ac21ce8dd09a34aff86455a8a3677094a0.tar.gz
aes-tools-1b2505ac21ce8dd09a34aff86455a8a3677094a0.zip
finally, perfect .clang-format settings?
Diffstat (limited to 'aesxx/utils/decrypt_file.cpp')
-rw-r--r--aesxx/utils/decrypt_file.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/aesxx/utils/decrypt_file.cpp b/aesxx/utils/decrypt_file.cpp
index 192f1f6..892d07b 100644
--- a/aesxx/utils/decrypt_file.cpp
+++ b/aesxx/utils/decrypt_file.cpp
@@ -18,9 +18,11 @@
namespace {
-void decrypt_file(aes::Box& box,
- const std::string& ciphertext_path,
- const std::string& plaintext_path) {
+void decrypt_file(
+ aes::Box& box,
+ const std::string& ciphertext_path,
+ const std::string& plaintext_path
+) {
const auto ciphertext_buf = file::read_file(ciphertext_path);
const auto plaintext_buf = box.decrypt_buffer(ciphertext_buf.data(), ciphertext_buf.size());
file::write_file(plaintext_path, plaintext_buf);