blob: a573d324cefd3783ab716f0f80c0a50de01c207f [file] [log] [blame]
# This file is generated from a similarly-named Perl script in the BoringSSL
# source tree. Do not edit by hand.
#if defined(__i386__)
#if defined(BORINGSSL_PREFIX)
#include <boringssl_prefix_symbols_asm.h>
#endif
.text
.private_extern __x86_AES_encrypt_compact
.align 4
__x86_AES_encrypt_compact:
movl %edi,20(%esp)
xorl (%edi),%eax
xorl 4(%edi),%ebx
xorl 8(%edi),%ecx
xorl 12(%edi),%edx
movl 240(%edi),%esi
leal -2(%esi,%esi,1),%esi
leal (%edi,%esi,8),%esi
movl %esi,24(%esp)
movl -128(%ebp),%edi
movl -96(%ebp),%esi
movl -64(%ebp),%edi
movl -32(%ebp),%esi
movl (%ebp),%edi
movl 32(%ebp),%esi
movl 64(%ebp),%edi
movl 96(%ebp),%esi
.align 4,0x90
L000loop:
movl %eax,%esi
andl $255,%esi
movzbl -128(%ebp,%esi,1),%esi
movzbl %bh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %ecx,%edi
shrl $16,%edi
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $24,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
movl %esi,4(%esp)
movl %ebx,%esi
andl $255,%esi
shrl $16,%ebx
movzbl -128(%ebp,%esi,1),%esi
movzbl %ch,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $16,%edi
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $24,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
movl %esi,8(%esp)
movl %ecx,%esi
andl $255,%esi
shrl $24,%ecx
movzbl -128(%ebp,%esi,1),%esi
movzbl %dh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $16,%edi
andl $255,%edx
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movzbl %bh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
andl $255,%edx
movzbl -128(%ebp,%edx,1),%edx
movzbl %ah,%eax
movzbl -128(%ebp,%eax,1),%eax
shll $8,%eax
xorl %eax,%edx
movl 4(%esp),%eax
andl $255,%ebx
movzbl -128(%ebp,%ebx,1),%ebx
shll $16,%ebx
xorl %ebx,%edx
movl 8(%esp),%ebx
movzbl -128(%ebp,%ecx,1),%ecx
shll $24,%ecx
xorl %ecx,%edx
movl %esi,%ecx
movl $2155905152,%ebp
andl %ecx,%ebp
leal (%ecx,%ecx,1),%edi
movl %ebp,%esi
shrl $7,%ebp
andl $4278124286,%edi
subl %ebp,%esi
movl %ecx,%ebp
andl $454761243,%esi
rorl $16,%ebp
xorl %edi,%esi
movl %ecx,%edi
xorl %esi,%ecx
rorl $24,%edi
xorl %ebp,%esi
roll $24,%ecx
xorl %edi,%esi
movl $2155905152,%ebp
xorl %esi,%ecx
andl %edx,%ebp
leal (%edx,%edx,1),%edi
movl %ebp,%esi
shrl $7,%ebp
andl $4278124286,%edi
subl %ebp,%esi
movl %edx,%ebp
andl $454761243,%esi
rorl $16,%ebp
xorl %edi,%esi
movl %edx,%edi
xorl %esi,%edx
rorl $24,%edi
xorl %ebp,%esi
roll $24,%edx
xorl %edi,%esi
movl $2155905152,%ebp
xorl %esi,%edx
andl %eax,%ebp
leal (%eax,%eax,1),%edi
movl %ebp,%esi
shrl $7,%ebp
andl $4278124286,%edi
subl %ebp,%esi
movl %eax,%ebp
andl $454761243,%esi
rorl $16,%ebp
xorl %edi,%esi
movl %eax,%edi
xorl %esi,%eax
rorl $24,%edi
xorl %ebp,%esi
roll $24,%eax
xorl %edi,%esi
movl $2155905152,%ebp
xorl %esi,%eax
andl %ebx,%ebp
leal (%ebx,%ebx,1),%edi
movl %ebp,%esi
shrl $7,%ebp
andl $4278124286,%edi
subl %ebp,%esi
movl %ebx,%ebp
andl $454761243,%esi
rorl $16,%ebp
xorl %edi,%esi
movl %ebx,%edi
xorl %esi,%ebx
rorl $24,%edi
xorl %ebp,%esi
roll $24,%ebx
xorl %edi,%esi
xorl %esi,%ebx
movl 20(%esp),%edi
movl 28(%esp),%ebp
addl $16,%edi
xorl (%edi),%eax
xorl 4(%edi),%ebx
xorl 8(%edi),%ecx
xorl 12(%edi),%edx
cmpl 24(%esp),%edi
movl %edi,20(%esp)
jb L000loop
movl %eax,%esi
andl $255,%esi
movzbl -128(%ebp,%esi,1),%esi
movzbl %bh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %ecx,%edi
shrl $16,%edi
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $24,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
movl %esi,4(%esp)
movl %ebx,%esi
andl $255,%esi
shrl $16,%ebx
movzbl -128(%ebp,%esi,1),%esi
movzbl %ch,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $16,%edi
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $24,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
movl %esi,8(%esp)
movl %ecx,%esi
andl $255,%esi
shrl $24,%ecx
movzbl -128(%ebp,%esi,1),%esi
movzbl %dh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $8,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $16,%edi
andl $255,%edx
andl $255,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $16,%edi
xorl %edi,%esi
movzbl %bh,%edi
movzbl -128(%ebp,%edi,1),%edi
shll $24,%edi
xorl %edi,%esi
movl 20(%esp),%edi
andl $255,%edx
movzbl -128(%ebp,%edx,1),%edx
movzbl %ah,%eax
movzbl -128(%ebp,%eax,1),%eax
shll $8,%eax
xorl %eax,%edx
movl 4(%esp),%eax
andl $255,%ebx
movzbl -128(%ebp,%ebx,1),%ebx
shll $16,%ebx
xorl %ebx,%edx
movl 8(%esp),%ebx
movzbl -128(%ebp,%ecx,1),%ecx
shll $24,%ecx
xorl %ecx,%edx
movl %esi,%ecx
xorl 16(%edi),%eax
xorl 20(%edi),%ebx
xorl 24(%edi),%ecx
xorl 28(%edi),%edx
ret
.private_extern __sse_AES_encrypt_compact
.align 4
__sse_AES_encrypt_compact:
pxor (%edi),%mm0
pxor 8(%edi),%mm4
movl 240(%edi),%esi
leal -2(%esi,%esi,1),%esi
leal (%edi,%esi,8),%esi
movl %esi,24(%esp)
movl $454761243,%eax
movl %eax,8(%esp)
movl %eax,12(%esp)
movl -128(%ebp),%eax
movl -96(%ebp),%ebx
movl -64(%ebp),%ecx
movl -32(%ebp),%edx
movl (%ebp),%eax
movl 32(%ebp),%ebx
movl 64(%ebp),%ecx
movl 96(%ebp),%edx
.align 4,0x90
L001loop:
pshufw $8,%mm0,%mm1
pshufw $13,%mm4,%mm5
movd %mm1,%eax
movd %mm5,%ebx
movl %edi,20(%esp)
movzbl %al,%esi
movzbl %ah,%edx
pshufw $13,%mm0,%mm2
movzbl -128(%ebp,%esi,1),%ecx
movzbl %bl,%edi
movzbl -128(%ebp,%edx,1),%edx
shrl $16,%eax
shll $8,%edx
movzbl -128(%ebp,%edi,1),%esi
movzbl %bh,%edi
shll $16,%esi
pshufw $8,%mm4,%mm6
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %ah,%edi
shll $24,%esi
shrl $16,%ebx
orl %esi,%edx
movzbl -128(%ebp,%edi,1),%esi
movzbl %bh,%edi
shll $8,%esi
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %al,%edi
shll $24,%esi
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %bl,%edi
movd %mm2,%eax
movd %ecx,%mm0
movzbl -128(%ebp,%edi,1),%ecx
movzbl %ah,%edi
shll $16,%ecx
movd %mm6,%ebx
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %bh,%edi
shll $24,%esi
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %bl,%edi
shll $8,%esi
shrl $16,%ebx
orl %esi,%ecx
movzbl -128(%ebp,%edi,1),%esi
movzbl %al,%edi
shrl $16,%eax
movd %ecx,%mm1
movzbl -128(%ebp,%edi,1),%ecx
movzbl %ah,%edi
shll $16,%ecx
andl $255,%eax
orl %esi,%ecx
punpckldq %mm1,%mm0
movzbl -128(%ebp,%edi,1),%esi
movzbl %bh,%edi
shll $24,%esi
andl $255,%ebx
movzbl -128(%ebp,%eax,1),%eax
orl %esi,%ecx
shll $16,%eax
movzbl -128(%ebp,%edi,1),%esi
orl %eax,%edx
shll $8,%esi
movzbl -128(%ebp,%ebx,1),%ebx
orl %esi,%ecx
orl %ebx,%edx
movl 20(%esp),%edi
movd %ecx,%mm4
movd %edx,%mm5
punpckldq %mm5,%mm4
addl $16,%edi
cmpl 24(%esp),%edi
ja L002out
movq 8(%esp),%mm2
pxor %mm3,%mm3
pxor %mm7,%mm7
movq %mm0,%mm1
movq %mm4,%mm5
pcmpgtb %mm0,%mm3
pcmpgtb %mm4,%mm7
pand %mm2,%mm3
pand %mm2,%mm7
pshufw $177,%mm0,%mm2
pshufw $177,%mm4,%mm6
paddb %mm0,%mm0
paddb %mm4,%mm4
pxor %mm3,%mm0
pxor %mm7,%mm4
pshufw $177,%mm2,%mm3
pshufw $177,%mm6,%mm7
pxor %mm0,%mm1
pxor %mm4,%mm5
pxor %mm2,%mm0
pxor %mm6,%mm4
movq %mm3,%mm2
movq %mm7,%mm6
pslld $8,%mm3
pslld $8,%mm7
psrld $24,%mm2
psrld $24,%mm6
pxor %mm3,%mm0
pxor %mm7,%mm4
pxor %mm2,%mm0
pxor %mm6,%mm4
movq %mm1,%mm3
movq %mm5,%mm7
movq (%edi),%mm2
movq 8(%edi),%mm6
psrld $8,%mm1
psrld $8,%mm5
movl -128(%ebp),%eax
pslld $24,%mm3
pslld $24,%mm7
movl -64(%ebp),%ebx
pxor %mm1,%mm0
pxor %mm5,%mm4
movl (%ebp),%ecx
pxor %mm3,%mm0
pxor %mm7,%mm4
movl 64(%ebp),%edx
pxor %mm2,%mm0
pxor %mm6,%mm4
jmp L001loop
.align 4,0x90
L002out:
pxor (%edi),%mm0
pxor 8(%edi),%mm4
ret
.private_extern __x86_AES_encrypt
.align 4
__x86_AES_encrypt:
movl %edi,20(%esp)
xorl (%edi),%eax
xorl 4(%edi),%ebx
xorl 8(%edi),%ecx
xorl 12(%edi),%edx
movl 240(%edi),%esi
leal -2(%esi,%esi,1),%esi
leal (%edi,%esi,8),%esi
movl %esi,24(%esp)
.align 4,0x90
L003loop:
movl %eax,%esi
andl $255,%esi
movl (%ebp,%esi,8),%esi
movzbl %bh,%edi
xorl 3(%ebp,%edi,8),%esi
movl %ecx,%edi
shrl $16,%edi
andl $255,%edi
xorl 2(%ebp,%edi,8),%esi
movl %edx,%edi
shrl $24,%edi
xorl 1(%ebp,%edi,8),%esi
movl %esi,4(%esp)
movl %ebx,%esi
andl $255,%esi
shrl $16,%ebx
movl (%ebp,%esi,8),%esi
movzbl %ch,%edi
xorl 3(%ebp,%edi,8),%esi
movl %edx,%edi
shrl $16,%edi
andl $255,%edi
xorl 2(%ebp,%edi,8),%esi
movl %eax,%edi
shrl $24,%edi
xorl 1(%ebp,%edi,8),%esi
movl %esi,8(%esp)
movl %ecx,%esi
andl $255,%esi
shrl $24,%ecx
movl (%ebp,%esi,8),%esi
movzbl %dh,%edi
xorl 3(%ebp,%edi,8),%esi
movl %eax,%edi
shrl $16,%edi
andl $255,%edx
andl $255,%edi
xorl 2(%ebp,%edi,8),%esi
movzbl %bh,%edi
xorl 1(%ebp,%edi,8),%esi
movl 20(%esp),%edi
movl (%ebp,%edx,8),%edx
movzbl %ah,%eax
xorl 3(%ebp,%eax,8),%edx
movl 4(%esp),%eax
andl $255,%ebx
xorl 2(%ebp,%ebx,8),%edx
movl 8(%esp),%ebx
xorl 1(%ebp,%ecx,8),%edx
movl %esi,%ecx
addl $16,%edi
xorl (%edi),%eax
xorl 4(%edi),%ebx
xorl 8(%edi),%ecx
xorl 12(%edi),%edx
cmpl 24(%esp),%edi
movl %edi,20(%esp)
jb L003loop
movl %eax,%esi
andl $255,%esi
movl 2(%ebp,%esi,8),%esi
andl $255,%esi
movzbl %bh,%edi
movl (%ebp,%edi,8),%edi
andl $65280,%edi
xorl %edi,%esi
movl %ecx,%edi
shrl $16,%edi
andl $255,%edi
movl (%ebp,%edi,8),%edi
andl $16711680,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $24,%edi
movl 2(%ebp,%edi,8),%edi
andl $4278190080,%edi
xorl %edi,%esi
movl %esi,4(%esp)
movl %ebx,%esi
andl $255,%esi
shrl $16,%ebx
movl 2(%ebp,%esi,8),%esi
andl $255,%esi
movzbl %ch,%edi
movl (%ebp,%edi,8),%edi
andl $65280,%edi
xorl %edi,%esi
movl %edx,%edi
shrl $16,%edi
andl $255,%edi
movl (%ebp,%edi,8),%edi
andl $16711680,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $24,%edi
movl 2(%ebp,%edi,8),%edi
andl $4278190080,%edi
xorl %edi,%esi
movl %esi,8(%esp)
movl %ecx,%esi
andl $255,%esi
shrl $24,%ecx
movl 2(%ebp,%esi,8),%esi
andl $255,%esi
movzbl %dh,%edi
movl (%ebp,%edi,8),%edi
andl $65280,%edi
xorl %edi,%esi
movl %eax,%edi
shrl $16,%edi
andl $255,%edx
andl $255,%edi
movl (%ebp,%edi,8),%edi
andl $16711680,%edi
xorl %edi,%esi
movzbl %bh,%edi
movl 2(%ebp,%edi,8),%edi
andl $4278190080,%edi
xorl %edi,%esi
movl 20(%esp),%edi
andl $255,%edx
movl 2(%ebp,%edx,8),%edx
andl $255,%edx
movzbl %ah,%eax
movl (%ebp,%eax,8),%eax
andl $65280,%eax
xorl %eax,%edx
movl 4(%esp),%eax
andl $255,%ebx
movl (%ebp,%ebx,8),%ebx
andl $16711680,%ebx
xorl %ebx,%edx
movl 8(%esp),%ebx
movl 2(%ebp,%ecx,8),%ecx
andl $4278190080,%ecx
xorl %ecx,%edx
movl %esi,%ecx
addl $16,%edi
xorl (%edi),%eax
xorl 4(%edi),%ebx
xorl 8(%edi),%ecx
xorl 12(%edi),%edx
ret
.align 6,0x90
LAES_Te:
.long 2774754246,2774754246
.long 2222750968,2222750968
.long 2574743534,2574743534
.long 2373680118,2373680118
.long 234025727,234025727
.long 3177933782,3177933782
.long 2976870366,2976870366
.long 1422247313,1422247313
.long 1345335392,1345335392
.long 50397442,50397442
.long 2842126286,2842126286
.long 2099981142,2099981142
.long 436141799,436141799
.long 1658312629,1658312629
.long 3870010189,3870010189
.long 2591454956,2591454956
.long 1170918031,1170918031
.long 2642575903,2642575903
.long 1086966153,1086966153
.long 2273148410,2273148410
.long 368769775,368769775
.long 3948501426,3948501426
.long 3376891790,3376891790
.long 200339707,200339707
.long 3970805057,3970805057
.long 1742001331,1742001331
.long 4255294047,4255294047
.long 3937382213,3937382213
.long 3214711843,3214711843
.long 4154762323,4154762323
.long 2524082916,2524082916
.long 1539358875,1539358875
.long 3266819957,3266819957
.long 486407649,486407649
.long 2928907069,2928907069
.long 1780885068,1780885068
.long 1513502316,1513502316
.long 1094664062,1094664062
.long 49805301,49805301
.long 1338821763,1338821763
.long 1546925160,1546925160
.long 4104496465,4104496465
.long 887481809,887481809
.long 150073849,150073849
.long 2473685474,2473685474
.long 1943591083,1943591083
.long 1395732834,1395732834
.long 1058346282,1058346282
.long 201589768,201589768
.long 1388824469,1388824469
.long 1696801606,1696801606
.long 1589887901,1589887901
.long 672667696,672667696
.long 2711000631,2711000631
.long 251987210,251987210
.long 3046808111,3046808111
.long 151455502,151455502
.long 907153956,907153956
.long 2608889883,2608889883
.long 1038279391,1038279391
.long 652995533,652995533
.long 1764173646,1764173646
.long 3451040383,3451040383
.long 2675275242,2675275242
.long 453576978,453576978
.long 2659418909,2659418909
.long 1949051992,1949051992
.long 773462580,773462580
.long 756751158,756751158
.long 2993581788,2993581788
.long 3998898868,3998898868
.long 4221608027,4221608027
.long 4132590244,4132590244
.long 1295727478,1295727478
.long 1641469623,1641469623
.long 3467883389,3467883389
.long 2066295122,2066295122
.long 1055122397,1055122397
.long 1898917726,1898917726
.long 2542044179,2542044179
.long 4115878822,4115878822
.long 1758581177,1758581177
.long 0,0
.long 753790401,753790401
.long 1612718144,1612718144
.long 536673507,536673507
.long 3367088505,3367088505
.long 3982187446,3982187446
.long 3194645204,3194645204
.long 1187761037,1187761037
.long 3653156455,3653156455
.long 1262041458,1262041458
.long 3729410708,3729410708
.long 3561770136,3561770136
.long 3898103984,3898103984
.long 1255133061,1255133061
.long 1808847035,1808847035
.long 720367557,720367557
.long 3853167183,3853167183
.long 385612781,385612781
.long 3309519750,3309519750
.long 3612167578,3612167578
.long 1429418854,1429418854
.long 2491778321,2491778321
.long 3477423498,3477423498
.long 284817897,284817897
.long 100794884,100794884
.long 2172616702,2172616702
.long 4031795360,4031795360
.long 1144798328,1144798328
.long 3131023141,3131023141
.long 3819481163,3819481163
.long 4082192802,4082192802
.long 4272137053,4272137053
.long 3225436288,3225436288
.long 2324664069,2324664069
.long 2912064063,2912064063
.long 3164445985,3164445985
.long 1211644016,1211644016
.long 83228145,83228145
.long 3753688163,3753688163
.long 3249976951,3249976951
.long 1977277103,1977277103
.long 1663115586,1663115586
.long 806359072,806359072
.long 452984805,452984805
.long 250868733,250868733
.long 1842533055,1842533055
.long 1288555905,1288555905
.long 336333848,336333848
.long 890442534,890442534
.long 804056259,804056259
.long 3781124030,3781124030
.long 2727843637,2727843637
.long 3427026056,3427026056
.long 957814574,957814574
.long 1472513171,1472513171
.long 4071073621,4071073621
.long 2189328124,2189328124
.long 1195195770,1195195770
.long 2892260552,2892260552
.long 3881655738,3881655738
.long 723065138,723065138
.long 2507371494,2507371494
.long 2690670784,2690670784
.long 2558624025,2558624025
.long 3511635870,3511635870
.long 2145180835,2145180835
.long 1713513028,1713513028
.long 2116692564,2116692564
.long 2878378043,2878378043
.long 2206763019,2206763019
.long 3393603212,3393603212
.long 703524551,703524551
.long 3552098411,3552098411
.long 1007948840,1007948840
.long 2044649127,2044649127
.long 3797835452,3797835452
.long 487262998,487262998
.long 1994120109,1994120109
.long 1004593371,1004593371
.long 1446130276,1446130276
.long 1312438900,1312438900
.long 503974420,503974420
.long 3679013266,3679013266
.long 168166924,168166924
.long 1814307912,1814307912
.long 3831258296,3831258296
.long 1573044895,1573044895
.long 1859376061,1859376061
.long 4021070915,4021070915
.long 2791465668,2791465668
.long 2828112185,2828112185
.long 2761266481,2761266481
.long 937747667,937747667
.long 2339994098,2339994098
.long 854058965,854058965
.long 1137232011,1137232011
.long 1496790894,1496790894
.long 3077402074,3077402074
.long 2358086913,2358086913
.long 1691735473,1691735473
.long 3528347292,3528347292
.long 3769215305,3769215305
.long 3027004632,3027004632
.long 4199962284,4199962284
.long 133494003,133494003
.long 636152527,636152527
.long 2942657994,2942657994
.long 2390391540,2390391540
.long 3920539207,3920539207
.long 403179536,403179536
.long 3585784431,3585784431
.long 2289596656,2289596656
.long 1864705354,1864705354
.long 1915629148,1915629148
.long 605822008,605822008
.long 4054230615,4054230615
.long 3350508659,3350508659
.long 1371981463,1371981463
.long 602466507,602466507
.long 2094914977,2094914977
.long 2624877800,2624877800
.long 555687742,555687742
.long 3712699286,3712699286
.long 3703422305,3703422305
.long 2257292045,2257292045
.long 2240449039,2240449039
.long 2423288032,2423288032
.long 1111375484,1111375484
.long 3300242801,3300242801
.long 2858837708,2858837708
.long 3628615824,3628615824
.long 84083462,84083462
.long 32962295,32962295
.long 302911004,302911004
.long 2741068226,2741068226
.long 1597322602,1597322602
.long 4183250862,4183250862
.long 3501832553,3501832553
.long 2441512471,2441512471
.long 1489093017,1489093017
.long 656219450,656219450
.long 3114180135,3114180135
.long 954327513,954327513
.long 335083755,335083755
.long 3013122091,3013122091
.long 856756514,856756514
.long 3144247762,3144247762
.long 1893325225,1893325225
.long 2307821063,2307821063
.long 2811532339,2811532339
.long 3063651117,3063651117
.long 572399164,572399164
.long 2458355477,2458355477
.long 552200649,552200649
.long 1238290055,1238290055
.long 4283782570,4283782570
.long 2015897680,2015897680
.long 2061492133,2061492133
.long 2408352771,2408352771
.long 4171342169,4171342169
.long 2156497161,2156497161
.long 386731290,386731290
.long 3669999461,3669999461
.long 837215959,837215959
.long 3326231172,3326231172
.long 3093850320,3093850320
.long 3275833730,3275833730
.long 2962856233,2962856233
.long 1999449434,1999449434
.long 286199582,286199582
.long 3417354363,3417354363
.long 4233385128,4233385128
.long 3602627437,3602627437
.long 974525996,974525996
.byte 99,124,119,123,242,107,111,197
.byte 48,1,103,43,254,215,171,118
.byte 202,130,201,125,250,89,71,240
.byte 173,212,162,175,156,164,114,192
.byte 183,253,147,38,54,63,247,204
.byte 52,165,229,241,113,216,49,21
.byte 4,199,35,195,24,150,5,154
.byte 7,18,128,226,235,39,178,117
.byte 9,131,44,26,27,110,90,160
.byte 82,59,214,179,41,227,47,132
.byte 83,209,0,237,32,252,177,91
.byte 106,203,190,57,74,76,88,207
.byte 208,239,170,251,67,77,51,133
.byte 69,249,2,127,80,60,159,168
.byte 81,163,64,143,146,157,56,245
.byte 188,182,218,33,16,255,243,210
.byte 205,12,19,236,95,151,68,23
.byte 196,167,126,61,100,93,25,115
.byte 96,129,79,220,34,42,144,136
.byte 70,238,184,20,222,94,11,219
.byte 224,50,58,10,73,6,36,92
.byte 194,211,172,98,145,149,228,121
.byte 231,200,55,109,141,213,78,169
.byte 108,86,244,234,101,122,174,8
.byte 186,120,37,46,28,166,180,198
.byte 232,221,116,31,75,189,139,138
.byte 112,62,181,102,72,3,246,14
.byte 97,53,87,185,134,193,29,158
.byte 225,248,152,17,105,217,142,148
.byte 155,30,135,233,206,85,40,223
.byte 140,161,137,13,191,230,66,104
.byte 65,153,45,15,176,84,187,22
.byte 99,124,119,123,242,107,111,197
.byte 48,1,103,43,254,215,171,118
.byte 202,130,201,125,250,89,71,240
.byte 173,212,162,175,156,164,114,192
.byte 183,253,147,38,54,63,247,204
.byte 52,165,229,241,113,216,49,21
.byte 4,199,35,195,24,150,5,154
.byte 7,18,128,226,235,39,178,117
.byte 9,131,44,26,27,110,90,160
.byte 82,59,214,179,41,227,47,132
.byte 83,209,0,237,32,252,177,91
.byte 106,203,190,57,74,76,88,207
.byte 208,239,170,251,67,77,51,133
.byte 69,249,2,127,80,60,159,168
.byte 81,163,64,143,146,157,56,245
.byte 188,182,218,33,16,255,243,210
.byte 205,12,19,236,95,151,68,23
.byte 196,167,126,61,100,93,25,115
.byte 96,129,79,220,34,42,144,136
.byte 70,238,184,20,222,94,11,219
.byte 224,50,58,10,73,6,36,92
.byte 194,211,172,98,145,149,228,121
.byte 231,200,55,109,141,213,78,169
.byte 108,86,244,234,101,122,174,8
.byte 186,120,37,46,28,166,180,198
.byte 232,221,116,31,75,189,139,138
.byte 112,62,181,102,72,3,246,14
.byte 97,53,87,185,134,193,29,158
.byte 225,248,152,17,105,217,142,148
.byte 155,30,135,233,206,85,40,223
.byte 140,161,137,13,191,230,66,104
.byte 65,153,45,15,176,84,187,22
.byte 99,124,119,123,242,107,111,197
.byte 48,1,103,43,254,215,171,118
.byte 202,130,201,125,250,89,71,240
.byte 173,212,162,175,156,164,114,192
.byte 183,253,147,38,54,63,247,204
.byte 52,165,229,241,113,216,49,21
.byte 4,199,35,195,24,150,5,154
.byte 7,18,128,226,235,39,178,117
.byte 9,131,44,26,27,110,90,160
.byte 82,59,214,179,41,227,47,132
.byte 83,209,0,237,32,252,177,91
.byte 106,203,190,57,74,76,88,207
.byte 208,239,170,251,67,77,51,133
.byte 69,249,2,127,80,60,159,168
.byte 81,163,64,143,146,157,56,245
.byte 188,182,218,33,16,255,243,210
.byte 205,12,19,236,95,151,68,23
.byte 196,167,126,61,100,93,25,115
.byte 96,129,79,220,34,42,144,136
.byte 70,238,184,20,222,94,11,219
.byte 224,50,58,10,73,6,36,92
.byte 194,211,172,98,145,149,228,121
.byte 231,200,55,109,141,213,78,169
.byte 108,86,244,234,101,122,174,8
.byte 186,120,37,46,28,166,180,198
.byte 232,221,116,31,75,189,139,138
.byte 112,62,181,102,72,3,246,14
.byte 97,53,87,185,134,193,29,158
.byte 225,248,152,17,105,217,142,148
.byte 155,30,135,233,206,85,40,223
.byte 140,161,137,13,191,230,66,104
.byte 65,153,45,15,176,84,187,22
.byte 99,124,119,123,242,107,111,197
.byte 48,1,103,43,254,215,171,118
.byte 202,130,201,125,250,89,71,240
.byte 173,212,162,175,156,164,114,192
.byte 183,253,147,38,54,63,247,204
.byte 52,165,229,241,113,216,49,21
.byte 4,199,35,195,24,150,5,154
.byte 7,18,128,226,235,39,178,117
.byte 9,131,44,26,27,110,90,160
.byte 82,59,214,179,41,227,47,132
.byte 83,209,0,237,32,252,177,91
.byte 106,203,190,57,74,76,88,207
.byte 208,239,170,251,67,77,51,133
.byte 69,249,2,127,80,60,159,168
.byte 81,163,64,143,146,157,56,245
.byte 188,182,218,33,16,255,243,210
.byte 205,12,19,236,95,151,68,23
.byte 196,167,126,61,100,93,25,115
.byte 96,129,79,220,34,42,144,136
.byte 70,238,184,20,222,94,11,219
.byte 224,50,58,10,73,6,36,92
.byte 194,211,172,98,145,149,228,121
.byte 231,200,55,109,141,213,78,169
.byte 108,86,244,234,101,122,174,8
.byte 186,120,37,46,28,166,180,198
.byte 232,221,116,31,75,189,139,138
.byte 112,62,181,102,72,3,246,14
.byte 97,53,87,185,134,193,29,158
.byte 225,248,152,17,105,217,142,148
.byte 155,30,135,233,206,85,40,223
.byte 140,161,137,13,191,230,66,104
.byte 65,153,45,15,176,84,187,22
.long 1,2,4,8
.long 16,32,64,128
.long 27,54,0,0
.long 0,0,0,0
.globl _GFp_aes_nohw_encrypt
.private_extern _GFp_aes_nohw_encrypt
.align 4
_GFp_aes_nohw_encrypt:
L_GFp_aes_nohw_encrypt_begin:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl 20(%esp),%esi
movl 28(%esp),%edi
movl %esp,%eax
subl $36,%esp
andl $-64,%esp
leal -127(%edi),%ebx
subl %esp,%ebx
negl %ebx
andl $960,%ebx
subl %ebx,%esp
addl $4,%esp
movl %eax,28(%esp)
call L004pic_point
L004pic_point:
popl %ebp
movl L_GFp_ia32cap_P$non_lazy_ptr-L004pic_point(%ebp),%eax
leal LAES_Te-L004pic_point(%ebp),%ebp
leal 764(%esp),%ebx
subl %ebp,%ebx
andl $768,%ebx
leal 2176(%ebp,%ebx,1),%ebp
btl $25,(%eax)
jnc L005x86
movq (%esi),%mm0
movq 8(%esi),%mm4
call __sse_AES_encrypt_compact
movl 28(%esp),%esp
movl 24(%esp),%esi
movq %mm0,(%esi)
movq %mm4,8(%esi)
emms
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.align 4,0x90
L005x86:
movl %ebp,24(%esp)
movl (%esi),%eax
movl 4(%esi),%ebx
movl 8(%esi),%ecx
movl 12(%esi),%edx
call __x86_AES_encrypt_compact
movl 28(%esp),%esp
movl 24(%esp),%esi
movl %eax,(%esi)
movl %ebx,4(%esi)
movl %ecx,8(%esi)
movl %edx,12(%esi)
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.private_extern __x86_AES_set_encrypt_key
.align 4
__x86_AES_set_encrypt_key:
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl 24(%esp),%esi
movl 32(%esp),%edi
testl $-1,%esi
jz L006badpointer
testl $-1,%edi
jz L006badpointer
call L007pic_point
L007pic_point:
popl %ebp
leal LAES_Te-L007pic_point(%ebp),%ebp
leal 2176(%ebp),%ebp
movl -128(%ebp),%eax
movl -96(%ebp),%ebx
movl -64(%ebp),%ecx
movl -32(%ebp),%edx
movl (%ebp),%eax
movl 32(%ebp),%ebx
movl 64(%ebp),%ecx
movl 96(%ebp),%edx
movl 28(%esp),%ecx
cmpl $128,%ecx
je L00810rounds
cmpl $256,%ecx
je L00914rounds
movl $-2,%eax
jmp L010exit
L00810rounds:
movl (%esi),%eax
movl 4(%esi),%ebx
movl 8(%esi),%ecx
movl 12(%esi),%edx
movl %eax,(%edi)
movl %ebx,4(%edi)
movl %ecx,8(%edi)
movl %edx,12(%edi)
xorl %ecx,%ecx
jmp L01110shortcut
.align 2,0x90
L01210loop:
movl (%edi),%eax
movl 12(%edi),%edx
L01110shortcut:
movzbl %dl,%esi
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
shll $24,%ebx
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shrl $16,%edx
movzbl %dl,%esi
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
shll $8,%ebx
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shll $16,%ebx
xorl %ebx,%eax
xorl 896(%ebp,%ecx,4),%eax
movl %eax,16(%edi)
xorl 4(%edi),%eax
movl %eax,20(%edi)
xorl 8(%edi),%eax
movl %eax,24(%edi)
xorl 12(%edi),%eax
movl %eax,28(%edi)
incl %ecx
addl $16,%edi
cmpl $10,%ecx
jl L01210loop
movl $10,80(%edi)
xorl %eax,%eax
jmp L010exit
L00914rounds:
movl (%esi),%eax
movl 4(%esi),%ebx
movl 8(%esi),%ecx
movl 12(%esi),%edx
movl %eax,(%edi)
movl %ebx,4(%edi)
movl %ecx,8(%edi)
movl %edx,12(%edi)
movl 16(%esi),%eax
movl 20(%esi),%ebx
movl 24(%esi),%ecx
movl 28(%esi),%edx
movl %eax,16(%edi)
movl %ebx,20(%edi)
movl %ecx,24(%edi)
movl %edx,28(%edi)
xorl %ecx,%ecx
jmp L01314shortcut
.align 2,0x90
L01414loop:
movl 28(%edi),%edx
L01314shortcut:
movl (%edi),%eax
movzbl %dl,%esi
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
shll $24,%ebx
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shrl $16,%edx
movzbl %dl,%esi
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
shll $8,%ebx
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shll $16,%ebx
xorl %ebx,%eax
xorl 896(%ebp,%ecx,4),%eax
movl %eax,32(%edi)
xorl 4(%edi),%eax
movl %eax,36(%edi)
xorl 8(%edi),%eax
movl %eax,40(%edi)
xorl 12(%edi),%eax
movl %eax,44(%edi)
cmpl $6,%ecx
je L01514break
incl %ecx
movl %eax,%edx
movl 16(%edi),%eax
movzbl %dl,%esi
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shrl $16,%edx
shll $8,%ebx
movzbl %dl,%esi
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
movzbl %dh,%esi
shll $16,%ebx
xorl %ebx,%eax
movzbl -128(%ebp,%esi,1),%ebx
shll $24,%ebx
xorl %ebx,%eax
movl %eax,48(%edi)
xorl 20(%edi),%eax
movl %eax,52(%edi)
xorl 24(%edi),%eax
movl %eax,56(%edi)
xorl 28(%edi),%eax
movl %eax,60(%edi)
addl $32,%edi
jmp L01414loop
L01514break:
movl $14,48(%edi)
xorl %eax,%eax
jmp L010exit
L006badpointer:
movl $-1,%eax
L010exit:
popl %edi
popl %esi
popl %ebx
popl %ebp
ret
.globl _GFp_aes_nohw_set_encrypt_key
.private_extern _GFp_aes_nohw_set_encrypt_key
.align 4
_GFp_aes_nohw_set_encrypt_key:
L_GFp_aes_nohw_set_encrypt_key_begin:
call __x86_AES_set_encrypt_key
ret
.byte 65,69,83,32,102,111,114,32,120,56,54,44,32,67,82,89
.byte 80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114
.byte 111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
.section __IMPORT,__pointers,non_lazy_symbol_pointers
L_GFp_ia32cap_P$non_lazy_ptr:
.indirect_symbol _GFp_ia32cap_P
.long 0
#endif