From 34a03f6646e0e11175e6c2cebaf52ed8c1afc003 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 7 Oct 2022 08:16:08 +1000 Subject: [PATCH] AES-GCM x86: fix for AESNI implementation Jump to non-inplace decrypt update when pointers are different. --- wolfcrypt/src/aes_gcm_x86_asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/aes_gcm_x86_asm.S b/wolfcrypt/src/aes_gcm_x86_asm.S index 611875bcf..92e7c0bf3 100644 --- a/wolfcrypt/src/aes_gcm_x86_asm.S +++ b/wolfcrypt/src/aes_gcm_x86_asm.S @@ -4376,7 +4376,7 @@ AES_GCM_decrypt_update_aesni: pxor %xmm1, %xmm7 movdqu %xmm7, 48(%esp) 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: leal (%esi,%ebx,1), %ecx leal (%edi,%ebx,1), %edx