diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-28 21:34:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-28 21:34:15 +0300 |
commit | 53dfe511dc29beb8d399e95dfa93b6d3baed6b57 (patch) | |
tree | a0069dba9da96fe6cfc415b4c4fdc2d914cbd593 /include/aesni/box_data.h | |
parent | code style (diff) | |
download | aes-tools-53dfe511dc29beb8d399e95dfa93b6d3baed6b57.tar.gz aes-tools-53dfe511dc29beb8d399e95dfa93b6d3baed6b57.zip |
refactoring
Namely, rename API functions to facilitate metaprogramming using
preprocessor macros.
Diffstat (limited to '')
-rw-r--r-- | include/aesni/box_data.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/aesni/box_data.h b/include/aesni/box_data.h index ff36885..5d27641 100644 --- a/include/aesni/box_data.h +++ b/include/aesni/box_data.h @@ -21,31 +21,31 @@ extern "C" typedef union { - AesNI_Aes128_Key aes128_key; - AesNI_Aes192_Key aes192_key; - AesNI_Aes256_Key aes256_key; + AesNI_AES128_Key aes128_key; + AesNI_AES192_Key aes192_key; + AesNI_AES256_Key aes256_key; } AesNI_BoxAlgorithmParams; typedef union { - AesNI_Aes128_RoundKeys aes128_encryption_keys; - AesNI_Aes192_RoundKeys aes192_encryption_keys; - AesNI_Aes256_RoundKeys aes256_encryption_keys; + AesNI_AES128_RoundKeys aes128_encryption_keys; + AesNI_AES192_RoundKeys aes192_encryption_keys; + AesNI_AES256_RoundKeys aes256_encryption_keys; } AesNI_BoxEncryptionParams; typedef union { - AesNI_Aes128_RoundKeys aes128_decryption_keys; - AesNI_Aes192_RoundKeys aes192_decryption_keys; - AesNI_Aes256_RoundKeys aes256_decryption_keys; + AesNI_AES128_RoundKeys aes128_decryption_keys; + AesNI_AES192_RoundKeys aes192_decryption_keys; + AesNI_AES256_RoundKeys aes256_decryption_keys; } AesNI_BoxDecryptionParams; typedef union { - AesNI_Aes_Block aes_block; + AesNI_AES_Block aes_block; } AesNI_BoxBlock; |