From 7c7de043da35cef92ec37244430ac142316767b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 5 Oct 2005 23:21:35 +0200 Subject: [PATCH] Use C_NAME(_nettle_aes_decrypt_table) when using the AES_SUBST_BYTE macro. Use PROLOGUE and EPILOGUE. Rev: src/nettle/x86/aes-decrypt.asm:1.21 --- x86/aes-decrypt.asm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/x86/aes-decrypt.asm b/x86/aes-decrypt.asm index 5e5c2fcf..71dbc4da 100644 --- a/x86/aes-decrypt.asm +++ b/x86/aes-decrypt.asm @@ -24,9 +24,7 @@ C MA 02111-1307, USA. C uint8_t *src) .text .align 16 - .globl C_NAME(nettle_aes_decrypt) - .type C_NAME(nettle_aes_decrypt),@function -C_NAME(nettle_aes_decrypt): +PROLOGUE(nettle_aes_decrypt) C save all registers that need to be saved pushl %ebx C 16(%esp) pushl %ebp C 12(%esp) @@ -106,7 +104,7 @@ C_NAME(nettle_aes_decrypt): C inverse S-box substitution mov $4,%edi .Lsubst: - AES_SUBST_BYTE(_nettle_aes_decrypt_table) + AES_SUBST_BYTE(C_NAME(_nettle_aes_decrypt_table)) decl %edi jnz .Lsubst @@ -128,5 +126,4 @@ C_NAME(nettle_aes_decrypt): popl %ebp popl %ebx ret -.Leord: - .size C_NAME(nettle_aes_decrypt),.Leord-C_NAME(nettle_aes_decrypt) +EPILOGUE(nettle_aes_decrypt) -- GitLab