From 53dfe511dc29beb8d399e95dfa93b6d3baed6b57 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 28 Jul 2015 21:34:15 +0300 Subject: refactoring Namely, rename API functions to facilitate metaprogramming using preprocessor macros. --- include/aesni/box_data.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include/aesni/box_data.h') 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; -- cgit v1.2.3