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

Unified Diff: third_party/boringssl/win-x86_64/crypto/fipsmodule/sha1-x86_64.asm

Issue 2811393005: Roll src/third_party/boringssl/src c8ff30cbe..bc6a76b0e (Closed)
Patch Set: Created 3 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
Index: third_party/boringssl/win-x86_64/crypto/fipsmodule/sha1-x86_64.asm
diff --git a/third_party/boringssl/win-x86_64/crypto/sha/sha1-x86_64.asm b/third_party/boringssl/win-x86_64/crypto/fipsmodule/sha1-x86_64.asm
similarity index 99%
rename from third_party/boringssl/win-x86_64/crypto/sha/sha1-x86_64.asm
rename to third_party/boringssl/win-x86_64/crypto/fipsmodule/sha1-x86_64.asm
index 548457431d21ca744dd03e52fa85f21b7f871341..8324ab697256cfffe40f4ad824fb88f6486bdb5a 100644
--- a/third_party/boringssl/win-x86_64/crypto/sha/sha1-x86_64.asm
+++ b/third_party/boringssl/win-x86_64/crypto/fipsmodule/sha1-x86_64.asm
@@ -4,7 +4,7 @@ default rel
%define ZMMWORD
section .text code align=64
-EXTERN OPENSSL_ia32cap_P
+EXTERN OPENSSL_ia32cap_addr
global sha1_block_data_order
@@ -19,9 +19,11 @@ $L$SEH_begin_sha1_block_data_order:
mov rdx,r8
- mov r9d,DWORD[((OPENSSL_ia32cap_P+0))]
- mov r8d,DWORD[((OPENSSL_ia32cap_P+4))]
- mov r10d,DWORD[((OPENSSL_ia32cap_P+8))]
+ lea r10,[OPENSSL_ia32cap_addr]
+ mov r10,QWORD[r10]
+ mov r9d,DWORD[r10]
+ mov r8d,DWORD[4+r10]
+ mov r10d,DWORD[8+r10]
test r8d,512
jz NEAR $L$ialu
and r8d,268435456

Powered by Google App Engine
This is Rietveld 408576698