%ifdef ENCRYPTION\r
\r
global aes_encrypt\r
+ global _aes_encrypt\r
%ifdef DLL_EXPORT\r
export aes_encrypt\r
%endif\r
section .text align=16\r
align 16\r
aes_encrypt:\r
+_aes_encrypt:\r
\r
%ifndef WIN32\r
sub rsp, 4*8 ; gnu/linux binary interface\r
mov [rsp+3*8], r12 ; context in r8\r
\r
movzx esi, byte [kptr+4*KS_LENGTH]\r
- lea tptr,[enc_tab wrt rip]\r
+ lea tptr,[rel enc_tab]\r
sub kptr, fofs\r
\r
mov eax, [rdi+0*4]\r
%ifdef DECRYPTION\r
\r
global aes_decrypt\r
+ global _aes_decrypt\r
%ifdef DLL_EXPORT\r
export aes_decrypt\r
%endif\r
section .text align=16\r
align 16\r
aes_decrypt:\r
+_aes_decrypt:\r
\r
%ifndef WIN32\r
sub rsp, 4*8 ; gnu/linux binary interface\r
mov [rsp+3*8], r12 ; context in r8\r
\r
movzx esi,byte[kptr+4*KS_LENGTH]\r
- lea tptr,[dec_tab wrt rip]\r
+ lea tptr,[rel dec_tab]\r
sub kptr, rofs\r
\r
mov eax, [rdi+0*4]\r