AES-GCM x86: fix for AESNI implementation

Jump to non-inplace decrypt update when pointers are different.
This commit is contained in:
Sean Parkinson
2022-10-07 08:16:08 +10:00
parent af7c0e9b74
commit 34a03f6646

View File

@@ -4376,7 +4376,7 @@ AES_GCM_decrypt_update_aesni:
pxor %xmm1, %xmm7 pxor %xmm1, %xmm7
movdqu %xmm7, 48(%esp) movdqu %xmm7, 48(%esp)
cmpl %esi, %edi cmpl %esi, %edi
je L_AES_GCM_decrypt_update_aesni_ghash_64 jne L_AES_GCM_decrypt_update_aesni_ghash_64
L_AES_GCM_decrypt_update_aesni_ghash_64_inplace: L_AES_GCM_decrypt_update_aesni_ghash_64_inplace:
leal (%esi,%ebx,1), %ecx leal (%esi,%ebx,1), %ecx
leal (%edi,%ebx,1), %edx leal (%edi,%ebx,1), %edx