aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aes/src/asm
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-07-20 21:32:29 +0200
committerEgor Tensin <egor@tensin.name>2026-07-20 21:32:29 +0200
commitf2c9b2934b9be0f93105c411f5dbea564800fc3f (patch)
tree1fd5b3d68904e44768273ee52598acd09dc04b14 /aes/src/asm
parentget rid of outdated __inline (diff)
downloadaes-tools-f2c9b2934b9be0f93105c411f5dbea564800fc3f.tar.gz
aes-tools-f2c9b2934b9be0f93105c411f5dbea564800fc3f.zip
remove a few levels of stupid indirection
Diffstat (limited to 'aes/src/asm')
-rw-r--r--aes/src/asm/aes128.asm16
-rw-r--r--aes/src/asm/aes192.asm16
-rw-r--r--aes/src/asm/aes256.asm16
3 files changed, 24 insertions, 24 deletions
diff --git a/aes/src/asm/aes128.asm b/aes/src/asm/aes128.asm
index 80be57c..abf5063 100644
--- a/aes/src/asm/aes128.asm
+++ b/aes/src/asm/aes128.asm
@@ -9,7 +9,7 @@
.code
-@aes_AES128_encrypt_block_@20 proc
+@aes128_encrypt_block_@20 proc
pxor xmm0, [ecx]
aesenc xmm0, [ecx + 10h]
aesenc xmm0, [ecx + 20h]
@@ -22,9 +22,9 @@
aesenc xmm0, [ecx + 90h]
aesenclast xmm0, [ecx + 0A0h]
ret
-@aes_AES128_encrypt_block_@20 endp
+@aes128_encrypt_block_@20 endp
-@aes_AES128_decrypt_block_@20 proc
+@aes128_decrypt_block_@20 proc
pxor xmm0, [ecx]
aesdec xmm0, [ecx + 10h]
aesdec xmm0, [ecx + 20h]
@@ -37,9 +37,9 @@
aesdec xmm0, [ecx + 90h]
aesdeclast xmm0, [ecx + 0A0h]
ret
-@aes_AES128_decrypt_block_@20 endp
+@aes128_decrypt_block_@20 endp
-@aes_AES128_expand_key_@20 proc
+@aes128_expand_key_@20 proc
; A "word" (in terms of the FIPS 187 standard) is a 32-bit block.
; Words are denoted by `w[N]`.
;
@@ -166,9 +166,9 @@ aes128_keygen_assist:
add ecx, 10h ; ecx = &w[i+8]
ret
-@aes_AES128_expand_key_@20 endp
+@aes128_expand_key_@20 endp
-@aes_AES128_derive_decryption_keys_@8 proc
+@aes128_derive_decryption_keys_@8 proc
movdqa xmm5, [ecx]
movdqa xmm4, [ecx + 0A0h]
movdqa [edx], xmm4
@@ -198,6 +198,6 @@ aes128_keygen_assist:
movdqa [edx + 50h], xmm5
ret
-@aes_AES128_derive_decryption_keys_@8 endp
+@aes128_derive_decryption_keys_@8 endp
end
diff --git a/aes/src/asm/aes192.asm b/aes/src/asm/aes192.asm
index 6a41243..5411419 100644
--- a/aes/src/asm/aes192.asm
+++ b/aes/src/asm/aes192.asm
@@ -9,7 +9,7 @@
.code
-@aes_AES192_encrypt_block_@20 proc
+@aes192_encrypt_block_@20 proc
pxor xmm0, [ecx]
aesenc xmm0, [ecx + 10h]
aesenc xmm0, [ecx + 20h]
@@ -24,9 +24,9 @@
aesenc xmm0, [ecx + 0B0h]
aesenclast xmm0, [ecx + 0C0h]
ret
-@aes_AES192_encrypt_block_@20 endp
+@aes192_encrypt_block_@20 endp
-@aes_AES192_decrypt_block_@20 proc
+@aes192_decrypt_block_@20 proc
pxor xmm0, [ecx]
aesdec xmm0, [ecx + 10h]
aesdec xmm0, [ecx + 20h]
@@ -41,9 +41,9 @@
aesdec xmm0, [ecx + 0B0h]
aesdeclast xmm0, [ecx + 0C0h]
ret
-@aes_AES192_decrypt_block_@20 endp
+@aes192_decrypt_block_@20 endp
-@aes_AES192_expand_key_@36 proc
+@aes192_expand_key_@36 proc
; A "word" (in terms of the FIPS 187 standard) is a 32-bit block.
; Words are denoted by `w[N]`.
;
@@ -207,9 +207,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
-@aes_AES192_expand_key_@36 endp
+@aes192_expand_key_@36 endp
-@aes_AES192_derive_decryption_keys_@8 proc
+@aes192_derive_decryption_keys_@8 proc
movdqa xmm5, [ecx]
movdqa xmm4, [ecx + 0C0h]
movdqa [edx], xmm4
@@ -244,6 +244,6 @@ aes192_keygen_assist:
movdqa [edx + 60h], xmm5
ret
-@aes_AES192_derive_decryption_keys_@8 endp
+@aes192_derive_decryption_keys_@8 endp
end
diff --git a/aes/src/asm/aes256.asm b/aes/src/asm/aes256.asm
index 82f5f6f..4c6c07c 100644
--- a/aes/src/asm/aes256.asm
+++ b/aes/src/asm/aes256.asm
@@ -9,7 +9,7 @@
.code
-@aes_AES256_encrypt_block_@20 proc
+@aes256_encrypt_block_@20 proc
pxor xmm0, [ecx]
aesenc xmm0, [ecx + 10h]
aesenc xmm0, [ecx + 20h]
@@ -26,9 +26,9 @@
aesenc xmm0, [ecx + 0D0h]
aesenclast xmm0, [ecx + 0E0h]
ret
-@aes_AES256_encrypt_block_@20 endp
+@aes256_encrypt_block_@20 endp
-@aes_AES256_decrypt_block_@20 proc
+@aes256_decrypt_block_@20 proc
pxor xmm0, [ecx]
aesdec xmm0, [ecx + 10h]
aesdec xmm0, [ecx + 20h]
@@ -45,9 +45,9 @@
aesdec xmm0, [ecx + 0D0h]
aesdeclast xmm0, [ecx + 0E0h]
ret
-@aes_AES256_decrypt_block_@20 endp
+@aes256_decrypt_block_@20 endp
-@aes_AES256_expand_key_@36 proc
+@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]`.
;
@@ -240,9 +240,9 @@ aes256_keygen_assist:
pxor xmm0, xmm1
ret
-@aes_AES256_expand_key_@36 endp
+@aes256_expand_key_@36 endp
-@aes_AES256_derive_decryption_keys_@8 proc
+@aes256_derive_decryption_keys_@8 proc
movdqa xmm5, [ecx]
movdqa xmm4, [ecx + 0E0h]
movdqa [edx], xmm4
@@ -282,6 +282,6 @@ aes256_keygen_assist:
movdqa [edx + 70h], xmm5
ret
-@aes_AES256_derive_decryption_keys_@8 endp
+@aes256_derive_decryption_keys_@8 endp
end