@@ -81,8 +81,8 @@ _x86_64_AES_encrypt:
81
81
movl 0 (%r14 ,%rdi ,8 ),%edi
82
82
movl 0 (%r14 ,%rbp ,8 ),%ebp
83
83
84
- andl $65280 ,%edi
85
- andl $65280 ,%ebp
84
+ andl $0x0000ff00 ,%edi
85
+ andl $0x0000ff00 ,%ebp
86
86
87
87
xorl %edi ,%r10d
88
88
xorl %ebp ,%r11d
@@ -94,8 +94,8 @@ _x86_64_AES_encrypt:
94
94
movl 0 (%r14 ,%rsi ,8 ),%esi
95
95
movl 0 (%r14 ,%rdi ,8 ),%edi
96
96
97
- andl $65280 ,%esi
98
- andl $65280 ,%edi
97
+ andl $0x0000ff00 ,%esi
98
+ andl $0x0000ff00 ,%edi
99
99
shrl $16 ,%ebx
100
100
xorl %esi ,%r12d
101
101
xorl %edi ,%r8d
@@ -108,9 +108,9 @@ _x86_64_AES_encrypt:
108
108
movl 0 (%r14 ,%rdi ,8 ),%edi
109
109
movl 0 (%r14 ,%rbp ,8 ),%ebp
110
110
111
- andl $16711680 ,%esi
112
- andl $16711680 ,%edi
113
- andl $16711680 ,%ebp
111
+ andl $0x00ff0000 ,%esi
112
+ andl $0x00ff0000 ,%edi
113
+ andl $0x00ff0000 ,%ebp
114
114
115
115
xorl %esi ,%r10d
116
116
xorl %edi ,%r11d
@@ -123,9 +123,9 @@ _x86_64_AES_encrypt:
123
123
movl 2 (%r14 ,%rdi ,8 ),%edi
124
124
movl 2 (%r14 ,%rbp ,8 ),%ebp
125
125
126
- andl $16711680 ,%esi
127
- andl $4278190080 ,%edi
128
- andl $4278190080 ,%ebp
126
+ andl $0x00ff0000 ,%esi
127
+ andl $0xff000000 ,%edi
128
+ andl $0xff000000 ,%ebp
129
129
130
130
xorl %esi ,%r8d
131
131
xorl %edi ,%r10d
@@ -138,8 +138,8 @@ _x86_64_AES_encrypt:
138
138
movl 2 (%r14 ,%rdi ,8 ),%edi
139
139
movl 16 +0 (%r15 ),%eax
140
140
141
- andl $4278190080 ,%esi
142
- andl $4278190080 ,%edi
141
+ andl $0xff000000 ,%esi
142
+ andl $0xff000000 ,%edi
143
143
144
144
xorl %esi ,%r12d
145
145
xorl %edi ,%r8d
@@ -241,8 +241,8 @@ _x86_64_AES_encrypt_compact:
241
241
xorl %r8d ,%edx
242
242
cmpq 16 (%rsp ),%r15
243
243
je .Lenc_compact_done
244
- movl $2155905152 ,%r10d
245
- movl $2155905152 ,%r11d
244
+ movl $0x80808080 ,%r10d
245
+ movl $0x80808080 ,%r11d
246
246
andl %eax ,%r10d
247
247
andl %ebx ,%r11d
248
248
movl %r10d ,%esi
@@ -253,20 +253,20 @@ _x86_64_AES_encrypt_compact:
253
253
leal (%rbx ,%rbx ,1 ),%r9d
254
254
subl %r10d ,%esi
255
255
subl %r11d ,%edi
256
- andl $4278124286 ,%r8d
257
- andl $4278124286 ,%r9d
258
- andl $454761243 ,%esi
259
- andl $454761243 ,%edi
256
+ andl $0xfefefefe ,%r8d
257
+ andl $0xfefefefe ,%r9d
258
+ andl $0x1b1b1b1b ,%esi
259
+ andl $0x1b1b1b1b ,%edi
260
260
movl %eax ,%r10d
261
261
movl %ebx ,%r11d
262
262
xorl %esi ,%r8d
263
263
xorl %edi ,%r9d
264
264
265
265
xorl %r8d ,%eax
266
266
xorl %r9d ,%ebx
267
- movl $2155905152 ,%r12d
267
+ movl $0x80808080 ,%r12d
268
268
roll $24 ,%eax
269
- movl $2155905152 ,%ebp
269
+ movl $0x80808080 ,%ebp
270
270
roll $24 ,%ebx
271
271
andl %ecx ,%r12d
272
272
andl %edx ,%ebp
@@ -289,10 +289,10 @@ _x86_64_AES_encrypt_compact:
289
289
xorl %r10d ,%eax
290
290
xorl %r11d ,%ebx
291
291
292
- andl $4278124286 ,%r8d
293
- andl $4278124286 ,%r9d
294
- andl $454761243 ,%esi
295
- andl $454761243 ,%edi
292
+ andl $0xfefefefe ,%r8d
293
+ andl $0xfefefefe ,%r9d
294
+ andl $0x1b1b1b1b ,%esi
295
+ andl $0x1b1b1b1b ,%edi
296
296
movl %ecx ,%r12d
297
297
movl %edx ,%ebp
298
298
xorl %esi ,%r8d
@@ -345,7 +345,7 @@ AES_encrypt:
345
345
andq $-64 ,%rsp
346
346
subq %rsp ,%rcx
347
347
negq %rcx
348
- andq $960 ,%rcx
348
+ andq $0x3c0 ,%rcx
349
349
subq %rcx ,%rsp
350
350
subq $32 ,%rsp
351
351
@@ -370,7 +370,7 @@ AES_encrypt:
370
370
leaq .LAES_Te+2048 (%rip ),%r14
371
371
leaq 768 (%rsp ),%rbp
372
372
subq %r14 ,%rbp
373
- andq $768 ,%rbp
373
+ andq $0x300 ,%rbp
374
374
leaq (%r14 ,%rbp ,1 ),%r14
375
375
376
376
call _x86_64_AES_encrypt_compact
@@ -792,7 +792,7 @@ AES_decrypt:
792
792
andq $-64 ,%rsp
793
793
subq %rsp ,%rcx
794
794
negq %rcx
795
- andq $960 ,%rcx
795
+ andq $0x3c0 ,%rcx
796
796
subq %rcx ,%rsp
797
797
subq $32 ,%rsp
798
798
@@ -817,7 +817,7 @@ AES_decrypt:
817
817
leaq .LAES_Td+2048 (%rip ),%r14
818
818
leaq 768 (%rsp ),%rbp
819
819
subq %r14 ,%rbp
820
- andq $768 ,%rbp
820
+ andq $0x300 ,%rbp
821
821
leaq (%r14 ,%rbp ,1 ),%r14
822
822
shrq $3 ,%rbp
823
823
addq %rbp ,%r14
@@ -1333,9 +1333,9 @@ AES_cbc_encrypt:
1333
1333
movq %r14 ,%r10
1334
1334
leaq 2304 (%r14 ),%r11
1335
1335
movq %r15 ,%r12
1336
- andq $4095 ,%r10
1337
- andq $4095 ,%r11
1338
- andq $4095 ,%r12
1336
+ andq $0xFFF ,%r10
1337
+ andq $0xFFF ,%r11
1338
+ andq $0xFFF ,%r12
1339
1339
1340
1340
cmpq %r11 ,%r12
1341
1341
jb .Lcbc_te_break_out
@@ -1344,7 +1344,7 @@ AES_cbc_encrypt:
1344
1344
jmp .Lcbc_te_ok
1345
1345
.Lcbc_te_break_out:
1346
1346
subq %r10 ,%r12
1347
- andq $4095 ,%r12
1347
+ andq $0xFFF ,%r12
1348
1348
addq $320 ,%r12
1349
1349
subq %r12 ,%r15
1350
1350
.align 4
@@ -1370,7 +1370,7 @@ AES_cbc_encrypt:
1370
1370
1371
1371
movq %r15 ,%r10
1372
1372
subq %r14 ,%r10
1373
- andq $4095 ,%r10
1373
+ andq $0xfff ,%r10
1374
1374
cmpq $2304 ,%r10
1375
1375
jb .Lcbc_do_ecopy
1376
1376
cmpq $4096 -248 ,%r10
@@ -1557,7 +1557,7 @@ AES_cbc_encrypt:
1557
1557
leaq -88 -63 (%rcx ),%r10
1558
1558
subq %rbp ,%r10
1559
1559
negq %r10
1560
- andq $960 ,%r10
1560
+ andq $0x3c0 ,%r10
1561
1561
subq %r10 ,%rbp
1562
1562
1563
1563
xchgq %rsp ,%rbp
@@ -1586,7 +1586,7 @@ AES_cbc_encrypt:
1586
1586
leaq 2048 (%r14 ),%r14
1587
1587
leaq 768 -8 (%rsp ),%rax
1588
1588
subq %r14 ,%rax
1589
- andq $768 ,%rax
1589
+ andq $0x300 ,%rax
1590
1590
leaq (%r14 ,%rax ,1 ),%r14
1591
1591
1592
1592
cmpq $0 ,%rbx
0 commit comments