mirror of https://github.com/nodejs/node.git
137 lines
3.7 KiB
NASM
137 lines
3.7 KiB
NASM
OPTION DOTNAME
|
|
.text$ SEGMENT ALIGN(256) 'CODE'
|
|
|
|
EXTERN OPENSSL_ia32cap_P:NEAR
|
|
PUBLIC aesni_cbc_sha256_enc
|
|
|
|
ALIGN 16
|
|
aesni_cbc_sha256_enc PROC PUBLIC
|
|
xor eax,eax
|
|
cmp rcx,0
|
|
je $L$probe
|
|
ud2
|
|
$L$probe::
|
|
DB 0F3h,0C3h ;repret
|
|
aesni_cbc_sha256_enc ENDP
|
|
|
|
ALIGN 64
|
|
|
|
K256::
|
|
DD 0428a2f98h,071374491h,0b5c0fbcfh,0e9b5dba5h
|
|
DD 0428a2f98h,071374491h,0b5c0fbcfh,0e9b5dba5h
|
|
DD 03956c25bh,059f111f1h,0923f82a4h,0ab1c5ed5h
|
|
DD 03956c25bh,059f111f1h,0923f82a4h,0ab1c5ed5h
|
|
DD 0d807aa98h,012835b01h,0243185beh,0550c7dc3h
|
|
DD 0d807aa98h,012835b01h,0243185beh,0550c7dc3h
|
|
DD 072be5d74h,080deb1feh,09bdc06a7h,0c19bf174h
|
|
DD 072be5d74h,080deb1feh,09bdc06a7h,0c19bf174h
|
|
DD 0e49b69c1h,0efbe4786h,00fc19dc6h,0240ca1cch
|
|
DD 0e49b69c1h,0efbe4786h,00fc19dc6h,0240ca1cch
|
|
DD 02de92c6fh,04a7484aah,05cb0a9dch,076f988dah
|
|
DD 02de92c6fh,04a7484aah,05cb0a9dch,076f988dah
|
|
DD 0983e5152h,0a831c66dh,0b00327c8h,0bf597fc7h
|
|
DD 0983e5152h,0a831c66dh,0b00327c8h,0bf597fc7h
|
|
DD 0c6e00bf3h,0d5a79147h,006ca6351h,014292967h
|
|
DD 0c6e00bf3h,0d5a79147h,006ca6351h,014292967h
|
|
DD 027b70a85h,02e1b2138h,04d2c6dfch,053380d13h
|
|
DD 027b70a85h,02e1b2138h,04d2c6dfch,053380d13h
|
|
DD 0650a7354h,0766a0abbh,081c2c92eh,092722c85h
|
|
DD 0650a7354h,0766a0abbh,081c2c92eh,092722c85h
|
|
DD 0a2bfe8a1h,0a81a664bh,0c24b8b70h,0c76c51a3h
|
|
DD 0a2bfe8a1h,0a81a664bh,0c24b8b70h,0c76c51a3h
|
|
DD 0d192e819h,0d6990624h,0f40e3585h,0106aa070h
|
|
DD 0d192e819h,0d6990624h,0f40e3585h,0106aa070h
|
|
DD 019a4c116h,01e376c08h,02748774ch,034b0bcb5h
|
|
DD 019a4c116h,01e376c08h,02748774ch,034b0bcb5h
|
|
DD 0391c0cb3h,04ed8aa4ah,05b9cca4fh,0682e6ff3h
|
|
DD 0391c0cb3h,04ed8aa4ah,05b9cca4fh,0682e6ff3h
|
|
DD 0748f82eeh,078a5636fh,084c87814h,08cc70208h
|
|
DD 0748f82eeh,078a5636fh,084c87814h,08cc70208h
|
|
DD 090befffah,0a4506cebh,0bef9a3f7h,0c67178f2h
|
|
DD 090befffah,0a4506cebh,0bef9a3f7h,0c67178f2h
|
|
|
|
DD 000010203h,004050607h,008090a0bh,00c0d0e0fh
|
|
DD 000010203h,004050607h,008090a0bh,00c0d0e0fh
|
|
DD 0,0,0,0,0,0,0,0,-1,-1,-1,-1
|
|
DD 0,0,0,0,0,0,0,0
|
|
DB 65,69,83,78,73,45,67,66,67,43,83,72,65,50,53,54
|
|
DB 32,115,116,105,116,99,104,32,102,111,114,32,120,56,54,95
|
|
DB 54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98
|
|
DB 121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108
|
|
DB 46,111,114,103,62,0
|
|
ALIGN 64
|
|
mov rsi,rax
|
|
mov rax,QWORD PTR[((64+56))+rax]
|
|
lea rax,QWORD PTR[48+rax]
|
|
|
|
mov rbx,QWORD PTR[((-8))+rax]
|
|
mov rbp,QWORD PTR[((-16))+rax]
|
|
mov r12,QWORD PTR[((-24))+rax]
|
|
mov r13,QWORD PTR[((-32))+rax]
|
|
mov r14,QWORD PTR[((-40))+rax]
|
|
mov r15,QWORD PTR[((-48))+rax]
|
|
mov QWORD PTR[144+r8],rbx
|
|
mov QWORD PTR[160+r8],rbp
|
|
mov QWORD PTR[216+r8],r12
|
|
mov QWORD PTR[224+r8],r13
|
|
mov QWORD PTR[232+r8],r14
|
|
mov QWORD PTR[240+r8],r15
|
|
|
|
lea rsi,QWORD PTR[((64+64))+rsi]
|
|
lea rdi,QWORD PTR[512+r8]
|
|
mov ecx,20
|
|
DD 0a548f3fch
|
|
|
|
$L$in_prologue::
|
|
mov rdi,QWORD PTR[8+rax]
|
|
mov rsi,QWORD PTR[16+rax]
|
|
mov QWORD PTR[152+r8],rax
|
|
mov QWORD PTR[168+r8],rsi
|
|
mov QWORD PTR[176+r8],rdi
|
|
|
|
mov rdi,QWORD PTR[40+r9]
|
|
mov rsi,r8
|
|
mov ecx,154
|
|
DD 0a548f3fch
|
|
|
|
mov rsi,r9
|
|
xor rcx,rcx
|
|
mov rdx,QWORD PTR[8+rsi]
|
|
mov r8,QWORD PTR[rsi]
|
|
mov r9,QWORD PTR[16+rsi]
|
|
mov r10,QWORD PTR[40+rsi]
|
|
lea r11,QWORD PTR[56+rsi]
|
|
lea r12,QWORD PTR[24+rsi]
|
|
mov QWORD PTR[32+rsp],r10
|
|
mov QWORD PTR[40+rsp],r11
|
|
mov QWORD PTR[48+rsp],r12
|
|
mov QWORD PTR[56+rsp],rcx
|
|
call QWORD PTR[__imp_RtlVirtualUnwind]
|
|
|
|
mov eax,1
|
|
add rsp,64
|
|
popfq
|
|
pop r15
|
|
pop r14
|
|
pop r13
|
|
pop r12
|
|
pop rbp
|
|
pop rbx
|
|
pop rdi
|
|
pop rsi
|
|
DB 0F3h,0C3h ;repret
|
|
|
|
|
|
.text$ ENDS
|
|
.pdata SEGMENT READONLY ALIGN(4)
|
|
DD imagerel $L$SEH_begin_aesni_cbc_sha256_enc_xop
|
|
DD imagerel $L$SEH_end_aesni_cbc_sha256_enc_xop
|
|
DD imagerel $L$SEH_info_aesni_cbc_sha256_enc_xop
|
|
|
|
DD imagerel $L$SEH_begin_aesni_cbc_sha256_enc_avx
|
|
DD imagerel $L$SEH_end_aesni_cbc_sha256_enc_avx
|
|
DD imagerel $L$SEH_info_aesni_cbc_sha256_enc_avx
|
|
|
|
.pdata ENDS
|
|
END
|