Browse Source

AES-GCM x86: fix for AESNI implementation

Jump to non-inplace decrypt update when pointers are different.
Sean Parkinson 1 year ago
parent
commit
34a03f6646
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wolfcrypt/src/aes_gcm_x86_asm.S

+ 1 - 1
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