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. --- src/asm/aes256.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/asm/aes256.asm') diff --git a/src/asm/aes256.asm b/src/asm/aes256.asm index 9f1e735..0d19c26 100644 --- a/src/asm/aes256.asm +++ b/src/asm/aes256.asm @@ -8,7 +8,7 @@ .code -@aesni_aes256_encrypt_block_@20 proc +@aesni_AES256_encrypt_block_@20 proc pxor xmm0, [ecx] aesenc xmm0, [ecx + 10h] aesenc xmm0, [ecx + 20h] @@ -25,9 +25,9 @@ aesenc xmm0, [ecx + 0D0h] aesenclast xmm0, [ecx + 0E0h] ret -@aesni_aes256_encrypt_block_@20 endp +@aesni_AES256_encrypt_block_@20 endp -@aesni_aes256_decrypt_block_@20 proc +@aesni_AES256_decrypt_block_@20 proc pxor xmm0, [ecx] aesdec xmm0, [ecx + 10h] aesdec xmm0, [ecx + 20h] @@ -44,9 +44,9 @@ aesdec xmm0, [ecx + 0D0h] aesdeclast xmm0, [ecx + 0E0h] ret -@aesni_aes256_decrypt_block_@20 endp +@aesni_AES256_decrypt_block_@20 endp -@aesni_aes256_expand_key_@36 proc +@aesni_AES256_expand_key_@36 proc ; A "word" (in terms of the FIPS 187 standard) is a 32-bit block. ; Words are denoted by `w[N]`. ; @@ -239,9 +239,9 @@ aes256_keygen_assist: pxor xmm0, xmm1 ret -@aesni_aes256_expand_key_@36 endp +@aesni_AES256_expand_key_@36 endp -@aesni_aes256_derive_decryption_keys_@8 proc +@aesni_AES256_derive_decryption_keys_@8 proc movdqa xmm5, [ecx] movdqa xmm4, [ecx + 0E0h] movdqa [edx], xmm4 @@ -281,6 +281,6 @@ aes256_keygen_assist: movdqa [edx + 70h], xmm5 ret -@aesni_aes256_derive_decryption_keys_@8 endp +@aesni_AES256_derive_decryption_keys_@8 endp end -- cgit v1.2.3