aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/encrypt_block.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/encrypt_block.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/encrypt_block.cpp')
-rw-r--r--aesxx/utils/encrypt_block.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/aesxx/utils/encrypt_block.cpp b/aesxx/utils/encrypt_block.cpp
index e132256..5fdefd0 100644
--- a/aesxx/utils/encrypt_block.cpp
+++ b/aesxx/utils/encrypt_block.cpp
@@ -83,10 +83,12 @@ void encrypt_with_algorithm(aes::Mode mode, const Input& input, bool verbose = f
}
}
-void encrypt_using_cxx_api(aes::Algorithm algorithm,
- aes::Mode mode,
- const Input& input,
- bool verbose = false) {
+void encrypt_using_cxx_api(
+ aes::Algorithm algorithm,
+ aes::Mode mode,
+ const Input& input,
+ bool verbose = false
+) {
switch (algorithm) {
case AES_AES128:
encrypt_with_algorithm<AES_AES128>(mode, input, verbose);
@@ -106,8 +108,10 @@ void encrypt_using_cxx_api(aes::Algorithm algorithm,
}
}
-void encrypt_using_particular_box(aes::Box& box,
- const std::vector<std::string>& input_block_strings) {
+void encrypt_using_particular_box(
+ aes::Box& box,
+ const std::vector<std::string>& input_block_strings
+) {
for (const auto& input_block_string : input_block_strings) {
aes::Box::Block plaintext;
box.parse_block(plaintext, input_block_string);