aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aes/include
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-07-20 22:01:35 +0200
committerEgor Tensin <egor@tensin.name>2026-07-20 22:06:06 +0200
commit2b1facdd2418c0eefb88be3671c393510079ed81 (patch)
tree17259f5de874a9ae90c95b40554650d97f66bfc4 /aes/include
parentremove a few levels of stupid indirection (diff)
downloadaes-tools-2b1facdd2418c0eefb88be3671c393510079ed81.tar.gz
aes-tools-2b1facdd2418c0eefb88be3671c393510079ed81.zip
aes: minor refactoring
Diffstat (limited to 'aes/include')
-rw-r--r--aes/include/aes/box_aes.h6
-rw-r--r--aes/include/aes/box_data.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/aes/include/aes/box_aes.h b/aes/include/aes/box_aes.h
index e15f0cb..476f692 100644
--- a/aes/include/aes/box_aes.h
+++ b/aes/include/aes/box_aes.h
@@ -11,9 +11,9 @@
extern "C" {
#endif
-extern AES_BoxAlgorithmInterface aes_box_algorithm_aes128;
-extern AES_BoxAlgorithmInterface aes_box_algorithm_aes192;
-extern AES_BoxAlgorithmInterface aes_box_algorithm_aes256;
+extern AES_BoxInterface aes128_box_interface;
+extern AES_BoxInterface aes192_box_interface;
+extern AES_BoxInterface aes256_box_interface;
#ifdef __cplusplus
}
diff --git a/aes/include/aes/box_data.h b/aes/include/aes/box_data.h
index 5e5ab98..e3137f3 100644
--- a/aes/include/aes/box_data.h
+++ b/aes/include/aes/box_data.h
@@ -115,10 +115,10 @@ typedef struct {
AES_BoxGetBlockSize get_block_size;
AES_BoxStoreBlock store_block;
AES_BoxLoadBlock load_block;
-} AES_BoxAlgorithmInterface;
+} AES_BoxInterface;
typedef struct {
- const AES_BoxAlgorithmInterface* algorithm;
+ const AES_BoxInterface* algorithm;
AES_BoxEncryptionRoundKeys encryption_keys;
AES_BoxDecryptionRoundKeys decryption_keys;
AES_Mode mode;