diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-11 01:15:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-11 01:15:14 +0300 |
commit | 7c14e13c717c25818780ff4cc459d82a2ec0473a (patch) | |
tree | b03d3b5149c43334052c1a4e423df9025544bdd5 /src/asm | |
parent | fix register usage in the asm implementation (diff) | |
download | aes-tools-7c14e13c717c25818780ff4cc459d82a2ec0473a.tar.gz aes-tools-7c14e13c717c25818780ff4cc459d82a2ec0473a.zip |
refactoring
Diffstat (limited to '')
-rw-r--r-- | src/asm/aes128.asm | 16 | ||||
-rw-r--r-- | src/asm/aes192.asm | 16 | ||||
-rw-r--r-- | src/asm/aes256.asm | 16 |
3 files changed, 24 insertions, 24 deletions
diff --git a/src/asm/aes128.asm b/src/asm/aes128.asm index 874f876..4f88f09 100644 --- a/src/asm/aes128.asm +++ b/src/asm/aes128.asm @@ -8,7 +8,7 @@ .code -@raw_aes128_encrypt_block@20 proc +@aesni_raw_encrypt_block128@20 proc pxor xmm0, [ecx] aesenc xmm0, [ecx + 10h] aesenc xmm0, [ecx + 20h] @@ -21,9 +21,9 @@ aesenc xmm0, [ecx + 90h] aesenclast xmm0, [ecx + 0A0h] ret -@raw_aes128_encrypt_block@20 endp +@aesni_raw_encrypt_block128@20 endp -@raw_aes128_decrypt_block@20 proc +@aesni_raw_decrypt_block128@20 proc pxor xmm0, [ecx] aesdec xmm0, [ecx + 10h] aesdec xmm0, [ecx + 20h] @@ -36,9 +36,9 @@ aesdec xmm0, [ecx + 90h] aesdeclast xmm0, [ecx + 0A0h] ret -@raw_aes128_decrypt_block@20 endp +@aesni_raw_decrypt_block128@20 endp -@raw_aes128_expand_key_schedule@20 proc +@aesni_raw_expand_key_schedule128@20 proc ; A "word" (in terms of the FIPS 187 standard) is a 32-bit block. ; Words are denoted by `w[N]`. ; @@ -165,9 +165,9 @@ aes128_keygen_assist: add ecx, 10h ; ecx = &w[i+8] ret -@raw_aes128_expand_key_schedule@20 endp +@aesni_raw_expand_key_schedule128@20 endp -@raw_aes128_invert_key_schedule@8 proc +@aesni_raw_invert_key_schedule128@8 proc movdqa xmm5, [ecx] movdqa xmm4, [ecx + 0A0h] movdqa [edx], xmm4 @@ -197,6 +197,6 @@ aes128_keygen_assist: movdqa [edx + 50h], xmm5 ret -@raw_aes128_invert_key_schedule@8 endp +@aesni_raw_invert_key_schedule128@8 endp end diff --git a/src/asm/aes192.asm b/src/asm/aes192.asm index adbc690..e045910 100644 --- a/src/asm/aes192.asm +++ b/src/asm/aes192.asm @@ -8,7 +8,7 @@ .code -@raw_aes192_encrypt_block@20 proc +@aesni_raw_encrypt_block192@20 proc pxor xmm0, [ecx] aesenc xmm0, [ecx + 10h] aesenc xmm0, [ecx + 20h] @@ -23,9 +23,9 @@ aesenc xmm0, [ecx + 0B0h] aesenclast xmm0, [ecx + 0C0h] ret -@raw_aes192_encrypt_block@20 endp +@aesni_raw_encrypt_block192@20 endp -@raw_aes192_decrypt_block@20 proc +@aesni_raw_decrypt_block192@20 proc pxor xmm0, [ecx] aesdec xmm0, [ecx + 10h] aesdec xmm0, [ecx + 20h] @@ -40,9 +40,9 @@ aesdec xmm0, [ecx + 0B0h] aesdeclast xmm0, [ecx + 0C0h] ret -@raw_aes192_decrypt_block@20 endp +@aesni_raw_decrypt_block192@20 endp -@raw_aes192_expand_key_schedule@36 proc +@aesni_raw_expand_key_schedule192@36 proc ; A "word" (in terms of the FIPS 187 standard) is a 32-bit block. ; Words are denoted by `w[N]`. ; @@ -206,9 +206,9 @@ aes192_keygen_assist: ; xmm1[31:0] == w[i+10] == RotWord(SubWord(w[i+5]))^Rcon^w[i+4]^w[i+3]^w[i+2]^w[i+1]^w[i] ret -@raw_aes192_expand_key_schedule@36 endp +@aesni_raw_expand_key_schedule192@36 endp -@raw_aes192_invert_key_schedule@8 proc +@aesni_raw_invert_key_schedule192@8 proc movdqa xmm5, [ecx] movdqa xmm4, [ecx + 0C0h] movdqa [edx], xmm4 @@ -243,6 +243,6 @@ aes192_keygen_assist: movdqa [edx + 60h], xmm5 ret -@raw_aes192_invert_key_schedule@8 endp +@aesni_raw_invert_key_schedule192@8 endp end diff --git a/src/asm/aes256.asm b/src/asm/aes256.asm index 479b0f5..285cf69 100644 --- a/src/asm/aes256.asm +++ b/src/asm/aes256.asm @@ -8,7 +8,7 @@ .code -@raw_aes256_encrypt_block@20 proc +@aesni_raw_encrypt_block256@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 -@raw_aes256_encrypt_block@20 endp +@aesni_raw_encrypt_block256@20 endp -@raw_aes256_decrypt_block@20 proc +@aesni_raw_decrypt_block256@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 -@raw_aes256_decrypt_block@20 endp +@aesni_raw_decrypt_block256@20 endp -@raw_aes256_expand_key_schedule@36 proc +@aesni_raw_expand_key_schedule256@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 -@raw_aes256_expand_key_schedule@36 endp +@aesni_raw_expand_key_schedule256@36 endp -@raw_aes256_invert_key_schedule@8 proc +@aesni_raw_invert_key_schedule256@8 proc movdqa xmm5, [ecx] movdqa xmm4, [ecx + 0E0h] movdqa [edx], xmm4 @@ -281,6 +281,6 @@ aes256_keygen_assist: movdqa [edx + 70h], xmm5 ret -@raw_aes256_invert_key_schedule@8 endp +@aesni_raw_invert_key_schedule256@8 endp end |