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

Side by Side Diff: nss/lib/freebl/intel-gcm-x64-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: Update to Shay's fix. Remove an unnecessary loop in intel-gcm-x64-masm.asm Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 ; LICENSE: 1 ; LICENSE:
2 ; This submission to NSS is to be made available under the terms of the 2 ; This submission to NSS is to be made available under the terms of the
3 ; Mozilla Public License, v. 2.0. You can obtain one at http: 3 ; Mozilla Public License, v. 2.0. You can obtain one at http:
4 ; //mozilla.org/MPL/2.0/. 4 ; //mozilla.org/MPL/2.0/.
5 ;############################################################################### 5 ;###############################################################################
6 ; Copyright(c) 2014, Intel Corp. 6 ; Copyright(c) 2014, Intel Corp.
7 ; Developers and authors: 7 ; Developers and authors:
8 ; Shay Gueron and Vlad Krasnov 8 ; Shay Gueron and Vlad Krasnov
9 ; Intel Corporation, Israel Development Centre, Haifa, Israel 9 ; Intel Corporation, Israel Development Centre, Haifa, Israel
10 ; Please send feedback directly to crypto.feedback.alias@intel.com 10 ; Please send feedback directly to crypto.feedback.alias@intel.com
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 vmovdqa XMMWORD PTR[rsp], TMP1 1252 vmovdqa XMMWORD PTR[rsp], TMP1
1253 xor KS, KS 1253 xor KS, KS
1254 @@: 1254 @@:
1255 cmp len, KS 1255 cmp len, KS
1256 je @f 1256 je @f
1257 mov al, [rsp + KS] 1257 mov al, [rsp + KS]
1258 mov [PT + KS], al 1258 mov [PT + KS], al
1259 inc KS 1259 inc KS
1260 jmp @b 1260 jmp @b
1261 @@: 1261 @@:
1262 cmp KS, 16
1263 je @f
1264 mov BYTE PTR[rsp + KS], 0
1265 inc KS
1266 jmp @b
1267 @@:
1268 1262
1269 LDecDataEnd: 1263 LDecDataEnd:
1270 1264
1271 vmovdqu XMMWORD PTR[16*16 + 1*16 + Gctx], T 1265 vmovdqu XMMWORD PTR[16*16 + 1*16 + Gctx], T
1272 bswap aluCTR 1266 bswap aluCTR
1273 mov [16*16 + 2*16 + 3*4 + Gctx], aluCTR 1267 mov [16*16 + 2*16 + 3*4 + Gctx], aluCTR
1274 1268
1275 mov rsp, rbp 1269 mov rsp, rbp
1276 1270
1277 vmovdqu xmm6, XMMWORD PTR[rsp + 0*16] 1271 vmovdqu xmm6, XMMWORD PTR[rsp + 0*16]
(...skipping 14 matching lines...) Expand all
1292 pop r11 1286 pop r11
1293 1287
1294 vzeroupper 1288 vzeroupper
1295 1289
1296 ret 1290 ret
1297 ret 1291 ret
1298 intel_aes_gcmDEC ENDP 1292 intel_aes_gcmDEC ENDP
1299 1293
1300 1294
1301 END 1295 END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698