Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: nss/lib/freebl/intel-gcm-x86-masm.asm

Issue 254213002: Fix bugs in intel-gcm-x86-masm.asm and re-enable the Intel AES assembly (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Remove a blank line. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss/lib/freebl/intel-gcm-x64-masm.asm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/lib/freebl/intel-gcm-x86-masm.asm
diff --git a/nss/lib/freebl/intel-gcm-x86-masm.asm b/nss/lib/freebl/intel-gcm-x86-masm.asm
index d8ba9b4961cf26a073905d760111755efe6f7058..6362ad85953dd8df6be9580e9ebeaa09c82ce51b 100644
--- a/nss/lib/freebl/intel-gcm-x86-masm.asm
+++ b/nss/lib/freebl/intel-gcm-x86-masm.asm
@@ -840,11 +840,12 @@ LEncDataTail:
vmovdqa XMMWORD PTR[esp], TMP2
; copy as many bytes as needed
xor KS, KS
+ mov aluTMP, edx
@@:
cmp len, KS
je @f
- mov di, [PT + KS]
- mov [esp + KS], di
+ mov dl, BYTE PTR[PT + KS]
+ mov BYTE PTR[esp + KS], dl
inc KS
jmp @b
@@:
@@ -854,8 +855,8 @@ LEncDataTail:
@@:
cmp len, KS
je @f
- mov di, [esp + KS]
- mov [CT + KS], di
+ mov dl, BYTE PTR[esp + KS]
+ mov BYTE PTR[CT + KS], dl
inc KS
jmp @b
@@:
@@ -865,8 +866,8 @@ LEncDataTail:
inc KS
jmp @b
@@:
+ mov edx, aluTMP
vmovdqa TMP1, XMMWORD PTR[esp]
-
vpshufb TMP1, TMP1, XMMWORD PTR[Lbswap_mask]
vpxor TMP1, TMP1, T
@@ -1150,11 +1151,12 @@ LDecDataTail:
; copy as many bytes as needed
xor KS, KS
+ mov aluTMP, edx
@@:
cmp len, KS
je @f
- mov di, [CT + KS]
- mov [esp + KS], di
+ mov dl, BYTE PTR[CT + KS]
+ mov BYTE PTR[esp + KS], dl
inc KS
jmp @b
@@:
@@ -1164,7 +1166,7 @@ LDecDataTail:
inc KS
jmp @b
@@:
-
+ mov edx, aluTMP
vmovdqa TMP1, XMMWORD PTR[esp]
vpshufb TMP1, TMP1, XMMWORD PTR[Lbswap_mask]
vpxor TMP1, TMP1, T
@@ -1173,24 +1175,19 @@ LDecDataTail:
GFMUL TMP1, TMP1, TMP0, TMP5, TMP2, TMP3, TMP4
vmovdqu T, TMP1
-
vpxor xmm7, xmm7, XMMWORD PTR[esp]
vmovdqa XMMWORD PTR[esp], xmm7
xor KS, KS
+ mov aluTMP, edx
@@:
cmp len, KS
je @f
- mov di, [esp + KS]
- mov [PT + KS], di
- inc KS
- jmp @b
-@@:
- cmp KS, 16
- je @f
- mov BYTE PTR[PT + KS], 0
+ mov dl, BYTE PTR[esp + KS]
+ mov BYTE PTR[PT + KS], dl
inc KS
jmp @b
@@:
+ mov edx, aluTMP
LDecDataEnd:
« no previous file with comments | « nss/lib/freebl/intel-gcm-x64-masm.asm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698