aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/encrypt_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aesxx/utils/encrypt_file.cpp')
-rw-r--r--aesxx/utils/encrypt_file.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/aesxx/utils/encrypt_file.cpp b/aesxx/utils/encrypt_file.cpp
index 2862bfb..4ac544c 100644
--- a/aesxx/utils/encrypt_file.cpp
+++ b/aesxx/utils/encrypt_file.cpp
@@ -18,9 +18,11 @@
namespace {
-void encrypt_file(aes::Box& box,
- const std::string& plaintext_path,
- const std::string& ciphertext_path) {
+void encrypt_file(
+ aes::Box& box,
+ const std::string& plaintext_path,
+ const std::string& ciphertext_path
+) {
const auto plaintext_buf = file::read_file(plaintext_path);
const auto ciphertext_buf = box.encrypt_buffer(plaintext_buf.data(), plaintext_buf.size());
file::write_file(ciphertext_path, ciphertext_buf);