mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
deps: update archs files for OpenSSL-1.1.1a
`cd deps/openssl/config; make` updates all archs dependant files. PR-URL: https://github.com/nodejs/node/pull/25381 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org> Backport-PR-URL: https://github.com/nodejs/node/pull/25688
This commit is contained in:
1 parent
5d5c528120
commit
d4ec110c65
1192 files changed
+1444997
-35376
No files matched your search
+3846
-357
File diff suppressed because it is too large.
Load diff
+124
-21
@@ -332,15 +332,23 @@ _x86_64_AES_encrypt_compact:
|
||||
.hidden asm_AES_encrypt
|
||||
asm_AES_encrypt:
|
||||
AES_encrypt:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
movq %rsp,%r10
|
||||
leaq -63(%rdx),%rcx
|
||||
andq $-64,%rsp
|
||||
subq %rsp,%rcx
|
||||
@@ -350,7 +358,8 @@ AES_encrypt:
|
||||
subq $32,%rsp
|
||||
|
||||
movq %rsi,16(%rsp)
|
||||
movq %r10,24(%rsp)
|
||||
movq %rax,24(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x18,0x06,0x23,0x08
|
||||
.Lenc_prologue:
|
||||
|
||||
movq %rdx,%r15
|
||||
@@ -377,20 +386,29 @@ AES_encrypt:
|
||||
|
||||
movq 16(%rsp),%r9
|
||||
movq 24(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movl %eax,0(%r9)
|
||||
movl %ebx,4(%r9)
|
||||
movl %ecx,8(%r9)
|
||||
movl %edx,12(%r9)
|
||||
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lenc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size AES_encrypt,.-AES_encrypt
|
||||
.type _x86_64_AES_decrypt,@function
|
||||
.align 16
|
||||
@@ -779,15 +797,23 @@ _x86_64_AES_decrypt_compact:
|
||||
.hidden asm_AES_decrypt
|
||||
asm_AES_decrypt:
|
||||
AES_decrypt:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
movq %rsp,%r10
|
||||
leaq -63(%rdx),%rcx
|
||||
andq $-64,%rsp
|
||||
subq %rsp,%rcx
|
||||
@@ -797,7 +823,8 @@ AES_decrypt:
|
||||
subq $32,%rsp
|
||||
|
||||
movq %rsi,16(%rsp)
|
||||
movq %r10,24(%rsp)
|
||||
movq %rax,24(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x18,0x06,0x23,0x08
|
||||
.Ldec_prologue:
|
||||
|
||||
movq %rdx,%r15
|
||||
@@ -826,41 +853,68 @@ AES_decrypt:
|
||||
|
||||
movq 16(%rsp),%r9
|
||||
movq 24(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movl %eax,0(%r9)
|
||||
movl %ebx,4(%r9)
|
||||
movl %ecx,8(%r9)
|
||||
movl %edx,12(%r9)
|
||||
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Ldec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size AES_decrypt,.-AES_decrypt
|
||||
.globl AES_set_encrypt_key
|
||||
.type AES_set_encrypt_key,@function
|
||||
.align 16
|
||||
AES_set_encrypt_key:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
subq $8,%rsp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.Lenc_key_prologue:
|
||||
|
||||
call _x86_64_AES_set_encrypt_key
|
||||
|
||||
movq 40(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 48(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
addq $56,%rsp
|
||||
.cfi_adjust_cfa_offset -56
|
||||
.Lenc_key_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size AES_set_encrypt_key,.-AES_set_encrypt_key
|
||||
|
||||
.type _x86_64_AES_set_encrypt_key,@function
|
||||
@@ -1106,13 +1160,27 @@ _x86_64_AES_set_encrypt_key:
|
||||
.type AES_set_decrypt_key,@function
|
||||
.align 16
|
||||
AES_set_decrypt_key:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
pushq %rdx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.Ldec_key_prologue:
|
||||
|
||||
call _x86_64_AES_set_encrypt_key
|
||||
@@ -1280,14 +1348,22 @@ AES_set_decrypt_key:
|
||||
xorq %rax,%rax
|
||||
.Labort:
|
||||
movq 8(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 16(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 24(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 32(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 40(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 48(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
addq $56,%rsp
|
||||
.cfi_adjust_cfa_offset -56
|
||||
.Ldec_key_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size AES_set_decrypt_key,.-AES_set_decrypt_key
|
||||
.globl AES_cbc_encrypt
|
||||
.type AES_cbc_encrypt,@function
|
||||
@@ -1297,25 +1373,39 @@ AES_set_decrypt_key:
|
||||
.hidden asm_AES_cbc_encrypt
|
||||
asm_AES_cbc_encrypt:
|
||||
AES_cbc_encrypt:
|
||||
.cfi_startproc
|
||||
cmpq $0,%rdx
|
||||
je .Lcbc_epilogue
|
||||
pushfq
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset 49,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-32
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-40
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-48
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-56
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-64
|
||||
.Lcbc_prologue:
|
||||
|
||||
cld
|
||||
movl %r9d,%r9d
|
||||
|
||||
leaq .LAES_Te(%rip),%r14
|
||||
leaq .LAES_Td(%rip),%r10
|
||||
cmpq $0,%r9
|
||||
jne .Lcbc_picked_te
|
||||
leaq .LAES_Td(%rip),%r14
|
||||
.Lcbc_picked_te:
|
||||
cmoveq %r10,%r14
|
||||
|
||||
movl OPENSSL_ia32cap_P(%rip),%r10d
|
||||
cmpq $512,%rdx
|
||||
@@ -1351,8 +1441,10 @@ AES_cbc_encrypt:
|
||||
.Lcbc_te_ok:
|
||||
|
||||
xchgq %rsp,%r15
|
||||
.cfi_def_cfa_register %r15
|
||||
|
||||
movq %r15,16(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x10,0x06,0x23,0x40
|
||||
.Lcbc_fast_body:
|
||||
movq %rdi,24(%rsp)
|
||||
movq %rsi,32(%rsp)
|
||||
@@ -1734,17 +1826,28 @@ AES_cbc_encrypt:
|
||||
.align 16
|
||||
.Lcbc_exit:
|
||||
movq 16(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,64
|
||||
movq (%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq 32(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 40(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
.cfi_def_cfa %rsp,16
|
||||
.Lcbc_popfq:
|
||||
popfq
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore 49
|
||||
.Lcbc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size AES_cbc_encrypt,.-AES_cbc_encrypt
|
||||
.align 64
|
||||
.LAES_Te:
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
.type aesni_multi_cbc_encrypt,@function
|
||||
.align 32
|
||||
aesni_multi_cbc_encrypt:
|
||||
.cfi_startproc
|
||||
cmpl $2,%edx
|
||||
jb .Lenc_non_avx
|
||||
movl OPENSSL_ia32cap_P+4(%rip),%ecx
|
||||
@@ -15,12 +16,19 @@ aesni_multi_cbc_encrypt:
|
||||
.align 16
|
||||
.Lenc_non_avx:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +38,7 @@ aesni_multi_cbc_encrypt:
|
||||
subq $48,%rsp
|
||||
andq $-64,%rsp
|
||||
movq %rax,16(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x10,0x06,0x23,0x08
|
||||
|
||||
.Lenc4x_body:
|
||||
movdqu (%rsi),%xmm12
|
||||
@@ -239,6 +248,7 @@ aesni_multi_cbc_encrypt:
|
||||
jnz .Loop_enc4x
|
||||
|
||||
movq 16(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movl 24(%rsp),%edx
|
||||
|
||||
|
||||
@@ -256,20 +266,29 @@ aesni_multi_cbc_encrypt:
|
||||
|
||||
.Lenc4x_done:
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lenc4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_multi_cbc_encrypt,.-aesni_multi_cbc_encrypt
|
||||
|
||||
.globl aesni_multi_cbc_decrypt
|
||||
.type aesni_multi_cbc_decrypt,@function
|
||||
.align 32
|
||||
aesni_multi_cbc_decrypt:
|
||||
.cfi_startproc
|
||||
cmpl $2,%edx
|
||||
jb .Ldec_non_avx
|
||||
movl OPENSSL_ia32cap_P+4(%rip),%ecx
|
||||
@@ -279,12 +298,19 @@ aesni_multi_cbc_decrypt:
|
||||
.align 16
|
||||
.Ldec_non_avx:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
|
||||
@@ -294,6 +320,7 @@ aesni_multi_cbc_decrypt:
|
||||
subq $48,%rsp
|
||||
andq $-64,%rsp
|
||||
movq %rax,16(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x10,0x06,0x23,0x08
|
||||
|
||||
.Ldec4x_body:
|
||||
movdqu (%rsi),%xmm12
|
||||
@@ -503,6 +530,7 @@ aesni_multi_cbc_decrypt:
|
||||
jnz .Loop_dec4x
|
||||
|
||||
movq 16(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movl 24(%rsp),%edx
|
||||
|
||||
leaq 160(%rdi),%rdi
|
||||
@@ -511,26 +539,42 @@ aesni_multi_cbc_decrypt:
|
||||
|
||||
.Ldec4x_done:
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Ldec4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_multi_cbc_decrypt,.-aesni_multi_cbc_decrypt
|
||||
.type aesni_multi_cbc_encrypt_avx,@function
|
||||
.align 32
|
||||
aesni_multi_cbc_encrypt_avx:
|
||||
.cfi_startproc
|
||||
_avx_cbc_enc_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
|
||||
@@ -542,6 +586,7 @@ _avx_cbc_enc_shortcut:
|
||||
subq $192,%rsp
|
||||
andq $-128,%rsp
|
||||
movq %rax,16(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x10,0x06,0x23,0x08
|
||||
|
||||
.Lenc8x_body:
|
||||
vzeroupper
|
||||
@@ -939,6 +984,7 @@ _avx_cbc_enc_shortcut:
|
||||
jnz .Loop_enc8x
|
||||
|
||||
movq 16(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
|
||||
|
||||
|
||||
@@ -947,27 +993,43 @@ _avx_cbc_enc_shortcut:
|
||||
.Lenc8x_done:
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lenc8x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_multi_cbc_encrypt_avx,.-aesni_multi_cbc_encrypt_avx
|
||||
|
||||
.type aesni_multi_cbc_decrypt_avx,@function
|
||||
.align 32
|
||||
aesni_multi_cbc_decrypt_avx:
|
||||
.cfi_startproc
|
||||
_avx_cbc_dec_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
|
||||
|
||||
@@ -981,6 +1043,7 @@ _avx_cbc_dec_shortcut:
|
||||
andq $-256,%rsp
|
||||
subq $192,%rsp
|
||||
movq %rax,16(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x10,0x06,0x23,0x08
|
||||
|
||||
.Ldec8x_body:
|
||||
vzeroupper
|
||||
@@ -1416,6 +1479,7 @@ _avx_cbc_dec_shortcut:
|
||||
jnz .Loop_dec8x
|
||||
|
||||
movq 16(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
|
||||
|
||||
|
||||
@@ -1424,12 +1488,20 @@ _avx_cbc_dec_shortcut:
|
||||
.Ldec8x_done:
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Ldec8x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_multi_cbc_decrypt_avx,.-aesni_multi_cbc_decrypt_avx
|
||||
@@ -21,16 +21,30 @@ aesni_cbc_sha1_enc:
|
||||
.type aesni_cbc_sha1_enc_ssse3,@function
|
||||
.align 32
|
||||
aesni_cbc_sha1_enc_ssse3:
|
||||
.cfi_startproc
|
||||
movq 8(%rsp),%r10
|
||||
|
||||
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -104(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 104
|
||||
|
||||
|
||||
movq %rdi,%r12
|
||||
@@ -1362,29 +1376,52 @@ aesni_cbc_sha1_enc_ssse3:
|
||||
movl %ebp,16(%r9)
|
||||
movups %xmm2,(%r8)
|
||||
leaq 104(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,56
|
||||
movq 0(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq 32(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 40(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
.cfi_def_cfa %rsp,8
|
||||
.Lepilogue_ssse3:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_sha1_enc_ssse3,.-aesni_cbc_sha1_enc_ssse3
|
||||
.type aesni_cbc_sha1_enc_avx,@function
|
||||
.align 32
|
||||
aesni_cbc_sha1_enc_avx:
|
||||
.cfi_startproc
|
||||
movq 8(%rsp),%r10
|
||||
|
||||
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -104(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 104
|
||||
|
||||
|
||||
vzeroall
|
||||
@@ -2660,15 +2697,24 @@ aesni_cbc_sha1_enc_avx:
|
||||
vmovups %xmm12,(%r8)
|
||||
vzeroall
|
||||
leaq 104(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,56
|
||||
movq 0(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq 32(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 40(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
.cfi_def_cfa %rsp,8
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_sha1_enc_avx,.-aesni_cbc_sha1_enc_avx
|
||||
.align 64
|
||||
K_XX_XX:
|
||||
|
||||
+84
-30
@@ -77,15 +77,23 @@ K256:
|
||||
.type aesni_cbc_sha256_enc_xop,@function
|
||||
.align 64
|
||||
aesni_cbc_sha256_enc_xop:
|
||||
.cfi_startproc
|
||||
.Lxop_shortcut:
|
||||
movq 8(%rsp),%r10
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
subq $128,%rsp
|
||||
andq $-64,%rsp
|
||||
|
||||
@@ -101,7 +109,8 @@ aesni_cbc_sha256_enc_xop:
|
||||
movq %r8,64+32(%rsp)
|
||||
movq %r9,64+40(%rsp)
|
||||
movq %r10,64+48(%rsp)
|
||||
movq %r11,64+56(%rsp)
|
||||
movq %rax,120(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xf8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_xop:
|
||||
vzeroall
|
||||
|
||||
@@ -1207,31 +1216,48 @@ aesni_cbc_sha256_enc_xop:
|
||||
jb .Lloop_xop
|
||||
|
||||
movq 64+32(%rsp),%r8
|
||||
movq 64+56(%rsp),%rsi
|
||||
movq 120(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vmovdqu %xmm8,(%r8)
|
||||
vzeroall
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_xop:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_sha256_enc_xop,.-aesni_cbc_sha256_enc_xop
|
||||
.type aesni_cbc_sha256_enc_avx,@function
|
||||
.align 64
|
||||
aesni_cbc_sha256_enc_avx:
|
||||
.cfi_startproc
|
||||
.Lavx_shortcut:
|
||||
movq 8(%rsp),%r10
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
subq $128,%rsp
|
||||
andq $-64,%rsp
|
||||
|
||||
@@ -1247,7 +1273,8 @@ aesni_cbc_sha256_enc_avx:
|
||||
movq %r8,64+32(%rsp)
|
||||
movq %r9,64+40(%rsp)
|
||||
movq %r10,64+48(%rsp)
|
||||
movq %r11,64+56(%rsp)
|
||||
movq %rax,120(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xf8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_avx:
|
||||
vzeroall
|
||||
|
||||
@@ -2384,31 +2411,48 @@ aesni_cbc_sha256_enc_avx:
|
||||
jb .Lloop_avx
|
||||
|
||||
movq 64+32(%rsp),%r8
|
||||
movq 64+56(%rsp),%rsi
|
||||
movq 120(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vmovdqu %xmm8,(%r8)
|
||||
vzeroall
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_sha256_enc_avx,.-aesni_cbc_sha256_enc_avx
|
||||
.type aesni_cbc_sha256_enc_avx2,@function
|
||||
.align 64
|
||||
aesni_cbc_sha256_enc_avx2:
|
||||
.cfi_startproc
|
||||
.Lavx2_shortcut:
|
||||
movq 8(%rsp),%r10
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
subq $576,%rsp
|
||||
andq $-1024,%rsp
|
||||
addq $448,%rsp
|
||||
@@ -2425,7 +2469,8 @@ aesni_cbc_sha256_enc_avx2:
|
||||
movq %r8,64+32(%rsp)
|
||||
movq %r9,64+40(%rsp)
|
||||
movq %r10,64+48(%rsp)
|
||||
movq %r11,64+56(%rsp)
|
||||
movq %rax,120(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xf8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_avx2:
|
||||
vzeroall
|
||||
|
||||
@@ -3987,18 +4032,27 @@ aesni_cbc_sha256_enc_avx2:
|
||||
.Ldone_avx2:
|
||||
leaq (%rbp),%rsp
|
||||
movq 64+32(%rsp),%r8
|
||||
movq 64+56(%rsp),%rsi
|
||||
movq 120(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vmovdqu %xmm8,(%r8)
|
||||
vzeroall
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_sha256_enc_avx2,.-aesni_cbc_sha256_enc_avx2
|
||||
.type aesni_cbc_sha256_enc_shaext,@function
|
||||
.align 32
|
||||
|
||||
+155
-84
@@ -995,6 +995,7 @@ aesni_ccm64_decrypt_blocks:
|
||||
.type aesni_ctr32_encrypt_blocks,@function
|
||||
.align 16
|
||||
aesni_ctr32_encrypt_blocks:
|
||||
.cfi_startproc
|
||||
cmpq $1,%rdx
|
||||
jne .Lctr32_bulk
|
||||
|
||||
@@ -1024,11 +1025,12 @@ aesni_ctr32_encrypt_blocks:
|
||||
|
||||
.align 16
|
||||
.Lctr32_bulk:
|
||||
leaq (%rsp),%rax
|
||||
leaq (%rsp),%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-16
|
||||
subq $128,%rsp
|
||||
andq $-16,%rsp
|
||||
leaq -8(%rax),%rbp
|
||||
|
||||
|
||||
|
||||
@@ -1037,7 +1039,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
movdqu (%rcx),%xmm0
|
||||
movl 12(%r8),%r8d
|
||||
pxor %xmm0,%xmm2
|
||||
movl 12(%rcx),%r11d
|
||||
movl 12(%rcx),%ebp
|
||||
movdqa %xmm2,0(%rsp)
|
||||
bswapl %r8d
|
||||
movdqa %xmm2,%xmm3
|
||||
@@ -1053,8 +1055,8 @@ aesni_ctr32_encrypt_blocks:
|
||||
leaq 2(%r8),%rdx
|
||||
bswapl %eax
|
||||
bswapl %edx
|
||||
xorl %r11d,%eax
|
||||
xorl %r11d,%edx
|
||||
xorl %ebp,%eax
|
||||
xorl %ebp,%edx
|
||||
.byte 102,15,58,34,216,3
|
||||
leaq 3(%r8),%rax
|
||||
movdqa %xmm3,16(%rsp)
|
||||
@@ -1063,25 +1065,25 @@ aesni_ctr32_encrypt_blocks:
|
||||
movq %r10,%rdx
|
||||
leaq 4(%r8),%r10
|
||||
movdqa %xmm4,32(%rsp)
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
bswapl %r10d
|
||||
.byte 102,15,58,34,232,3
|
||||
xorl %r11d,%r10d
|
||||
xorl %ebp,%r10d
|
||||
movdqa %xmm5,48(%rsp)
|
||||
leaq 5(%r8),%r9
|
||||
movl %r10d,64+12(%rsp)
|
||||
bswapl %r9d
|
||||
leaq 6(%r8),%r10
|
||||
movl 240(%rcx),%eax
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
bswapl %r10d
|
||||
movl %r9d,80+12(%rsp)
|
||||
xorl %r11d,%r10d
|
||||
xorl %ebp,%r10d
|
||||
leaq 7(%r8),%r9
|
||||
movl %r10d,96+12(%rsp)
|
||||
bswapl %r9d
|
||||
movl OPENSSL_ia32cap_P+4(%rip),%r10d
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
andl $71303168,%r10d
|
||||
movl %r9d,112+12(%rsp)
|
||||
|
||||
@@ -1105,7 +1107,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
.Lctr32_6x:
|
||||
shll $4,%eax
|
||||
movl $48,%r10d
|
||||
bswapl %r11d
|
||||
bswapl %ebp
|
||||
leaq 32(%rcx,%rax,1),%rcx
|
||||
subq %rax,%r10
|
||||
jmp .Lctr32_loop6
|
||||
@@ -1116,32 +1118,32 @@ aesni_ctr32_encrypt_blocks:
|
||||
movups -48(%rcx,%r10,1),%xmm0
|
||||
.byte 102,15,56,220,209
|
||||
movl %r8d,%eax
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
.byte 102,15,56,220,217
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,12
|
||||
leal 1(%r8),%eax
|
||||
.byte 102,15,56,220,225
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,28
|
||||
.byte 102,15,56,220,233
|
||||
leal 2(%r8),%eax
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
.byte 102,15,56,220,241
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,44
|
||||
leal 3(%r8),%eax
|
||||
.byte 102,15,56,220,249
|
||||
movups -32(%rcx,%r10,1),%xmm1
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
|
||||
.byte 102,15,56,220,208
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,60
|
||||
leal 4(%r8),%eax
|
||||
.byte 102,15,56,220,216
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,76
|
||||
.byte 102,15,56,220,224
|
||||
leal 5(%r8),%eax
|
||||
xorl %r11d,%eax
|
||||
xorl %ebp,%eax
|
||||
.byte 102,15,56,220,232
|
||||
.byte 0x0f,0x38,0xf1,0x44,0x24,92
|
||||
movq %r10,%rax
|
||||
@@ -1202,7 +1204,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
movups 32-128(%rcx),%xmm0
|
||||
.byte 102,15,56,220,225
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
nop
|
||||
.byte 102,15,56,220,233
|
||||
movl %r9d,0+12(%rsp)
|
||||
@@ -1215,7 +1217,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,208
|
||||
.byte 102,15,56,220,216
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,224
|
||||
.byte 102,15,56,220,232
|
||||
@@ -1229,7 +1231,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,209
|
||||
.byte 102,15,56,220,217
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,225
|
||||
.byte 102,15,56,220,233
|
||||
@@ -1243,7 +1245,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,208
|
||||
.byte 102,15,56,220,216
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,224
|
||||
.byte 102,15,56,220,232
|
||||
@@ -1257,7 +1259,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,209
|
||||
.byte 102,15,56,220,217
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,225
|
||||
.byte 102,15,56,220,233
|
||||
@@ -1271,7 +1273,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,208
|
||||
.byte 102,15,56,220,216
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,224
|
||||
.byte 102,15,56,220,232
|
||||
@@ -1285,7 +1287,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
bswapl %r9d
|
||||
.byte 102,15,56,220,209
|
||||
.byte 102,15,56,220,217
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
.byte 0x66,0x90
|
||||
.byte 102,15,56,220,225
|
||||
.byte 102,15,56,220,233
|
||||
@@ -1300,7 +1302,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
.byte 102,15,56,220,208
|
||||
.byte 102,15,56,220,216
|
||||
.byte 102,15,56,220,224
|
||||
xorl %r11d,%r9d
|
||||
xorl %ebp,%r9d
|
||||
movdqu 0(%rdi),%xmm10
|
||||
.byte 102,15,56,220,232
|
||||
movl %r9d,112+12(%rsp)
|
||||
@@ -1535,7 +1537,7 @@ aesni_ctr32_encrypt_blocks:
|
||||
|
||||
.Lctr32_done:
|
||||
xorps %xmm0,%xmm0
|
||||
xorl %r11d,%r11d
|
||||
xorl %ebp,%ebp
|
||||
pxor %xmm1,%xmm1
|
||||
pxor %xmm2,%xmm2
|
||||
pxor %xmm3,%xmm3
|
||||
@@ -1559,20 +1561,25 @@ aesni_ctr32_encrypt_blocks:
|
||||
pxor %xmm14,%xmm14
|
||||
movaps %xmm0,112(%rsp)
|
||||
pxor %xmm15,%xmm15
|
||||
leaq (%rbp),%rsp
|
||||
popq %rbp
|
||||
movq -8(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lctr32_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_ctr32_encrypt_blocks,.-aesni_ctr32_encrypt_blocks
|
||||
.globl aesni_xts_encrypt
|
||||
.type aesni_xts_encrypt,@function
|
||||
.align 16
|
||||
aesni_xts_encrypt:
|
||||
leaq (%rsp),%rax
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-16
|
||||
subq $112,%rsp
|
||||
andq $-16,%rsp
|
||||
leaq -8(%rax),%rbp
|
||||
movups (%r9),%xmm2
|
||||
movl 240(%r8),%eax
|
||||
movl 240(%rcx),%r10d
|
||||
@@ -1588,7 +1595,7 @@ aesni_xts_encrypt:
|
||||
jnz .Loop_enc1_8
|
||||
.byte 102,15,56,221,209
|
||||
movups (%rcx),%xmm0
|
||||
movq %rcx,%r11
|
||||
movq %rcx,%rbp
|
||||
movl %r10d,%eax
|
||||
shll $4,%r10d
|
||||
movq %rdx,%r9
|
||||
@@ -1644,9 +1651,9 @@ aesni_xts_encrypt:
|
||||
jc .Lxts_enc_short
|
||||
|
||||
movl $16+96,%eax
|
||||
leaq 32(%r11,%r10,1),%rcx
|
||||
leaq 32(%rbp,%r10,1),%rcx
|
||||
subq %r10,%rax
|
||||
movups 16(%r11),%xmm1
|
||||
movups 16(%rbp),%xmm1
|
||||
movq %rax,%r10
|
||||
leaq .Lxts_magic(%rip),%r8
|
||||
jmp .Lxts_enc_grandloop
|
||||
@@ -1671,7 +1678,7 @@ aesni_xts_encrypt:
|
||||
movdqa 96(%rsp),%xmm9
|
||||
pxor %xmm14,%xmm6
|
||||
.byte 102,15,56,220,233
|
||||
movups 32(%r11),%xmm0
|
||||
movups 32(%rbp),%xmm0
|
||||
leaq 96(%rdi),%rdi
|
||||
pxor %xmm8,%xmm7
|
||||
|
||||
@@ -1680,7 +1687,7 @@ aesni_xts_encrypt:
|
||||
pxor %xmm9,%xmm11
|
||||
movdqa %xmm10,0(%rsp)
|
||||
.byte 102,15,56,220,249
|
||||
movups 48(%r11),%xmm1
|
||||
movups 48(%rbp),%xmm1
|
||||
pxor %xmm9,%xmm12
|
||||
|
||||
.byte 102,15,56,220,208
|
||||
@@ -1695,7 +1702,7 @@ aesni_xts_encrypt:
|
||||
movdqa %xmm14,64(%rsp)
|
||||
.byte 102,15,56,220,240
|
||||
.byte 102,15,56,220,248
|
||||
movups 64(%r11),%xmm0
|
||||
movups 64(%rbp),%xmm0
|
||||
movdqa %xmm8,80(%rsp)
|
||||
pshufd $0x5f,%xmm15,%xmm9
|
||||
jmp .Lxts_enc_loop6
|
||||
@@ -1727,7 +1734,7 @@ aesni_xts_encrypt:
|
||||
psrad $31,%xmm14
|
||||
.byte 102,15,56,220,217
|
||||
pand %xmm8,%xmm14
|
||||
movups (%r11),%xmm10
|
||||
movups (%rbp),%xmm10
|
||||
.byte 102,15,56,220,225
|
||||
.byte 102,15,56,220,233
|
||||
.byte 102,15,56,220,241
|
||||
@@ -1795,10 +1802,10 @@ aesni_xts_encrypt:
|
||||
.byte 102,15,56,220,225
|
||||
.byte 102,15,56,220,233
|
||||
pxor %xmm0,%xmm15
|
||||
movups (%r11),%xmm0
|
||||
movups (%rbp),%xmm0
|
||||
.byte 102,15,56,220,241
|
||||
.byte 102,15,56,220,249
|
||||
movups 16(%r11),%xmm1
|
||||
movups 16(%rbp),%xmm1
|
||||
|
||||
pxor %xmm15,%xmm14
|
||||
.byte 102,15,56,221,84,36,0
|
||||
@@ -1825,7 +1832,7 @@ aesni_xts_encrypt:
|
||||
|
||||
movl $16+96,%eax
|
||||
subl %r10d,%eax
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
shrl $4,%eax
|
||||
|
||||
.Lxts_enc_short:
|
||||
@@ -1981,7 +1988,7 @@ aesni_xts_encrypt:
|
||||
jnz .Lxts_enc_steal
|
||||
|
||||
subq %r9,%rsi
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
movl %r10d,%eax
|
||||
|
||||
movups -16(%rsi),%xmm2
|
||||
@@ -2024,20 +2031,25 @@ aesni_xts_encrypt:
|
||||
movaps %xmm0,96(%rsp)
|
||||
pxor %xmm14,%xmm14
|
||||
pxor %xmm15,%xmm15
|
||||
leaq (%rbp),%rsp
|
||||
popq %rbp
|
||||
movq -8(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lxts_enc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_xts_encrypt,.-aesni_xts_encrypt
|
||||
.globl aesni_xts_decrypt
|
||||
.type aesni_xts_decrypt,@function
|
||||
.align 16
|
||||
aesni_xts_decrypt:
|
||||
leaq (%rsp),%rax
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-16
|
||||
subq $112,%rsp
|
||||
andq $-16,%rsp
|
||||
leaq -8(%rax),%rbp
|
||||
movups (%r9),%xmm2
|
||||
movl 240(%r8),%eax
|
||||
movl 240(%rcx),%r10d
|
||||
@@ -2059,7 +2071,7 @@ aesni_xts_decrypt:
|
||||
subq %rax,%rdx
|
||||
|
||||
movups (%rcx),%xmm0
|
||||
movq %rcx,%r11
|
||||
movq %rcx,%rbp
|
||||
movl %r10d,%eax
|
||||
shll $4,%r10d
|
||||
movq %rdx,%r9
|
||||
@@ -2115,9 +2127,9 @@ aesni_xts_decrypt:
|
||||
jc .Lxts_dec_short
|
||||
|
||||
movl $16+96,%eax
|
||||
leaq 32(%r11,%r10,1),%rcx
|
||||
leaq 32(%rbp,%r10,1),%rcx
|
||||
subq %r10,%rax
|
||||
movups 16(%r11),%xmm1
|
||||
movups 16(%rbp),%xmm1
|
||||
movq %rax,%r10
|
||||
leaq .Lxts_magic(%rip),%r8
|
||||
jmp .Lxts_dec_grandloop
|
||||
@@ -2142,7 +2154,7 @@ aesni_xts_decrypt:
|
||||
movdqa 96(%rsp),%xmm9
|
||||
pxor %xmm14,%xmm6
|
||||
.byte 102,15,56,222,233
|
||||
movups 32(%r11),%xmm0
|
||||
movups 32(%rbp),%xmm0
|
||||
leaq 96(%rdi),%rdi
|
||||
pxor %xmm8,%xmm7
|
||||
|
||||
@@ -2151,7 +2163,7 @@ aesni_xts_decrypt:
|
||||
pxor %xmm9,%xmm11
|
||||
movdqa %xmm10,0(%rsp)
|
||||
.byte 102,15,56,222,249
|
||||
movups 48(%r11),%xmm1
|
||||
movups 48(%rbp),%xmm1
|
||||
pxor %xmm9,%xmm12
|
||||
|
||||
.byte 102,15,56,222,208
|
||||
@@ -2166,7 +2178,7 @@ aesni_xts_decrypt:
|
||||
movdqa %xmm14,64(%rsp)
|
||||
.byte 102,15,56,222,240
|
||||
.byte 102,15,56,222,248
|
||||
movups 64(%r11),%xmm0
|
||||
movups 64(%rbp),%xmm0
|
||||
movdqa %xmm8,80(%rsp)
|
||||
pshufd $0x5f,%xmm15,%xmm9
|
||||
jmp .Lxts_dec_loop6
|
||||
@@ -2198,7 +2210,7 @@ aesni_xts_decrypt:
|
||||
psrad $31,%xmm14
|
||||
.byte 102,15,56,222,217
|
||||
pand %xmm8,%xmm14
|
||||
movups (%r11),%xmm10
|
||||
movups (%rbp),%xmm10
|
||||
.byte 102,15,56,222,225
|
||||
.byte 102,15,56,222,233
|
||||
.byte 102,15,56,222,241
|
||||
@@ -2266,10 +2278,10 @@ aesni_xts_decrypt:
|
||||
.byte 102,15,56,222,225
|
||||
.byte 102,15,56,222,233
|
||||
pxor %xmm0,%xmm15
|
||||
movups (%r11),%xmm0
|
||||
movups (%rbp),%xmm0
|
||||
.byte 102,15,56,222,241
|
||||
.byte 102,15,56,222,249
|
||||
movups 16(%r11),%xmm1
|
||||
movups 16(%rbp),%xmm1
|
||||
|
||||
pxor %xmm15,%xmm14
|
||||
.byte 102,15,56,223,84,36,0
|
||||
@@ -2296,7 +2308,7 @@ aesni_xts_decrypt:
|
||||
|
||||
movl $16+96,%eax
|
||||
subl %r10d,%eax
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
shrl $4,%eax
|
||||
|
||||
.Lxts_dec_short:
|
||||
@@ -2453,7 +2465,7 @@ aesni_xts_decrypt:
|
||||
jz .Lxts_dec_ret
|
||||
.Lxts_dec_done2:
|
||||
movq %r9,%rdx
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
movl %r10d,%eax
|
||||
|
||||
movups (%rdi),%xmm2
|
||||
@@ -2483,7 +2495,7 @@ aesni_xts_decrypt:
|
||||
jnz .Lxts_dec_steal
|
||||
|
||||
subq %r9,%rsi
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
movl %r10d,%eax
|
||||
|
||||
movups (%rsi),%xmm2
|
||||
@@ -2526,21 +2538,35 @@ aesni_xts_decrypt:
|
||||
movaps %xmm0,96(%rsp)
|
||||
pxor %xmm14,%xmm14
|
||||
pxor %xmm15,%xmm15
|
||||
leaq (%rbp),%rsp
|
||||
popq %rbp
|
||||
movq -8(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lxts_dec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_xts_decrypt,.-aesni_xts_decrypt
|
||||
.globl aesni_ocb_encrypt
|
||||
.type aesni_ocb_encrypt,@function
|
||||
.align 32
|
||||
aesni_ocb_encrypt:
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%rax
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
movq 8(%rax),%rbx
|
||||
movq 8+8(%rax),%rbp
|
||||
|
||||
@@ -2716,13 +2742,23 @@ aesni_ocb_encrypt:
|
||||
pxor %xmm13,%xmm13
|
||||
pxor %xmm14,%xmm14
|
||||
pxor %xmm15,%xmm15
|
||||
popq %r14
|
||||
popq %r13
|
||||
popq %r12
|
||||
popq %rbp
|
||||
popq %rbx
|
||||
leaq 40(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Locb_enc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_ocb_encrypt,.-aesni_ocb_encrypt
|
||||
|
||||
.type __ocb_encrypt6,@function
|
||||
@@ -2935,12 +2971,23 @@ __ocb_encrypt1:
|
||||
.type aesni_ocb_decrypt,@function
|
||||
.align 32
|
||||
aesni_ocb_decrypt:
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%rax
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
movq 8(%rax),%rbx
|
||||
movq 8+8(%rax),%rbp
|
||||
|
||||
@@ -3138,13 +3185,23 @@ aesni_ocb_decrypt:
|
||||
pxor %xmm13,%xmm13
|
||||
pxor %xmm14,%xmm14
|
||||
pxor %xmm15,%xmm15
|
||||
popq %r14
|
||||
popq %r13
|
||||
popq %r12
|
||||
popq %rbp
|
||||
popq %rbx
|
||||
leaq 40(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Locb_dec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_ocb_decrypt,.-aesni_ocb_decrypt
|
||||
|
||||
.type __ocb_decrypt6,@function
|
||||
@@ -3345,6 +3402,7 @@ __ocb_decrypt1:
|
||||
.type aesni_cbc_encrypt,@function
|
||||
.align 16
|
||||
aesni_cbc_encrypt:
|
||||
.cfi_startproc
|
||||
testq %rdx,%rdx
|
||||
jz .Lcbc_ret
|
||||
|
||||
@@ -3437,11 +3495,13 @@ aesni_cbc_encrypt:
|
||||
jmp .Lcbc_ret
|
||||
.align 16
|
||||
.Lcbc_decrypt_bulk:
|
||||
leaq (%rsp),%rax
|
||||
leaq (%rsp),%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-16
|
||||
subq $16,%rsp
|
||||
andq $-16,%rsp
|
||||
leaq -8(%rax),%rbp
|
||||
movq %rcx,%rbp
|
||||
movups (%r8),%xmm10
|
||||
movl %r10d,%eax
|
||||
cmpq $0x50,%rdx
|
||||
@@ -3481,7 +3541,7 @@ aesni_cbc_encrypt:
|
||||
pxor %xmm0,%xmm3
|
||||
movups 16-112(%rcx),%xmm1
|
||||
pxor %xmm0,%xmm4
|
||||
xorq %r11,%r11
|
||||
movq $-1,%rbp
|
||||
cmpq $0x70,%rdx
|
||||
pxor %xmm0,%xmm5
|
||||
pxor %xmm0,%xmm6
|
||||
@@ -3497,10 +3557,10 @@ aesni_cbc_encrypt:
|
||||
.byte 102,15,56,222,241
|
||||
.byte 102,15,56,222,249
|
||||
.byte 102,68,15,56,222,193
|
||||
setnc %r11b
|
||||
shlq $7,%r11
|
||||
adcq $0,%rbp
|
||||
andq $128,%rbp
|
||||
.byte 102,68,15,56,222,201
|
||||
addq %rdi,%r11
|
||||
addq %rdi,%rbp
|
||||
movups 48-112(%rcx),%xmm1
|
||||
.byte 102,15,56,222,208
|
||||
.byte 102,15,56,222,216
|
||||
@@ -3638,18 +3698,18 @@ aesni_cbc_encrypt:
|
||||
movdqu 112(%rdi),%xmm0
|
||||
.byte 102,65,15,56,223,228
|
||||
leaq 128(%rdi),%rdi
|
||||
movdqu 0(%r11),%xmm11
|
||||
movdqu 0(%rbp),%xmm11
|
||||
.byte 102,65,15,56,223,237
|
||||
.byte 102,65,15,56,223,246
|
||||
movdqu 16(%r11),%xmm12
|
||||
movdqu 32(%r11),%xmm13
|
||||
movdqu 16(%rbp),%xmm12
|
||||
movdqu 32(%rbp),%xmm13
|
||||
.byte 102,65,15,56,223,255
|
||||
.byte 102,68,15,56,223,193
|
||||
movdqu 48(%r11),%xmm14
|
||||
movdqu 64(%r11),%xmm15
|
||||
movdqu 48(%rbp),%xmm14
|
||||
movdqu 64(%rbp),%xmm15
|
||||
.byte 102,69,15,56,223,202
|
||||
movdqa %xmm0,%xmm10
|
||||
movdqu 80(%r11),%xmm1
|
||||
movdqu 80(%rbp),%xmm1
|
||||
movups -112(%rcx),%xmm0
|
||||
|
||||
movups %xmm2,(%rsi)
|
||||
@@ -3768,7 +3828,7 @@ aesni_cbc_encrypt:
|
||||
pxor %xmm13,%xmm5
|
||||
movdqu %xmm4,32(%rsi)
|
||||
pxor %xmm14,%xmm6
|
||||
movq %r11,%rcx
|
||||
movq %rbp,%rcx
|
||||
movdqu %xmm5,48(%rsi)
|
||||
pxor %xmm15,%xmm7
|
||||
movl %r10d,%eax
|
||||
@@ -3921,16 +3981,21 @@ aesni_cbc_encrypt:
|
||||
.Lcbc_dec_ret:
|
||||
xorps %xmm0,%xmm0
|
||||
pxor %xmm1,%xmm1
|
||||
leaq (%rbp),%rsp
|
||||
popq %rbp
|
||||
movq -8(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lcbc_ret:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_cbc_encrypt,.-aesni_cbc_encrypt
|
||||
.globl aesni_set_decrypt_key
|
||||
.type aesni_set_decrypt_key,@function
|
||||
.align 16
|
||||
aesni_set_decrypt_key:
|
||||
.cfi_startproc
|
||||
.byte 0x48,0x83,0xEC,0x08
|
||||
.cfi_adjust_cfa_offset 8
|
||||
call __aesni_set_encrypt_key
|
||||
shll $4,%esi
|
||||
testl %eax,%eax
|
||||
@@ -3963,7 +4028,9 @@ aesni_set_decrypt_key:
|
||||
pxor %xmm0,%xmm0
|
||||
.Ldec_key_ret:
|
||||
addq $8,%rsp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.LSEH_end_set_decrypt_key:
|
||||
.size aesni_set_decrypt_key,.-aesni_set_decrypt_key
|
||||
.globl aesni_set_encrypt_key
|
||||
@@ -3971,7 +4038,9 @@ aesni_set_decrypt_key:
|
||||
.align 16
|
||||
aesni_set_encrypt_key:
|
||||
__aesni_set_encrypt_key:
|
||||
.cfi_startproc
|
||||
.byte 0x48,0x83,0xEC,0x08
|
||||
.cfi_adjust_cfa_offset 8
|
||||
movq $-1,%rax
|
||||
testq %rdi,%rdi
|
||||
jz .Lenc_key_ret
|
||||
@@ -4264,7 +4333,9 @@ __aesni_set_encrypt_key:
|
||||
pxor %xmm4,%xmm4
|
||||
pxor %xmm5,%xmm5
|
||||
addq $8,%rsp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.LSEH_end_set_encrypt_key:
|
||||
|
||||
.align 16
|
||||
|
||||
+127
-36
@@ -1067,6 +1067,7 @@ _bsaes_key_convert:
|
||||
.type bsaes_cbc_encrypt,@function
|
||||
.align 16
|
||||
bsaes_cbc_encrypt:
|
||||
.cfi_startproc
|
||||
cmpl $0,%r9d
|
||||
jne asm_AES_cbc_encrypt
|
||||
cmpq $128,%rdx
|
||||
@@ -1075,13 +1076,27 @@ bsaes_cbc_encrypt:
|
||||
movq %rsp,%rax
|
||||
.Lcbc_dec_prologue:
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 0x48
|
||||
movq %rsp,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
movl 240(%rcx),%eax
|
||||
movq %rdi,%r12
|
||||
movq %rsi,%r13
|
||||
@@ -1300,33 +1315,56 @@ bsaes_cbc_encrypt:
|
||||
cmpq %rax,%rbp
|
||||
ja .Lcbc_dec_bzero
|
||||
|
||||
leaq (%rbp),%rsp
|
||||
movq 72(%rsp),%r15
|
||||
movq 80(%rsp),%r14
|
||||
movq 88(%rsp),%r13
|
||||
movq 96(%rsp),%r12
|
||||
movq 104(%rsp),%rbx
|
||||
movq 112(%rsp),%rax
|
||||
leaq 120(%rsp),%rsp
|
||||
movq %rax,%rbp
|
||||
leaq 120(%rbp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq -8(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lcbc_dec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bsaes_cbc_encrypt,.-bsaes_cbc_encrypt
|
||||
|
||||
.globl bsaes_ctr32_encrypt_blocks
|
||||
.type bsaes_ctr32_encrypt_blocks,@function
|
||||
.align 16
|
||||
bsaes_ctr32_encrypt_blocks:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.Lctr_enc_prologue:
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 0x48
|
||||
movq %rsp,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
movdqu (%r8),%xmm0
|
||||
movl 240(%rcx),%eax
|
||||
movq %rdi,%r12
|
||||
@@ -1500,32 +1538,55 @@ bsaes_ctr32_encrypt_blocks:
|
||||
cmpq %rax,%rbp
|
||||
ja .Lctr_enc_bzero
|
||||
|
||||
leaq (%rbp),%rsp
|
||||
movq 72(%rsp),%r15
|
||||
movq 80(%rsp),%r14
|
||||
movq 88(%rsp),%r13
|
||||
movq 96(%rsp),%r12
|
||||
movq 104(%rsp),%rbx
|
||||
movq 112(%rsp),%rax
|
||||
leaq 120(%rsp),%rsp
|
||||
movq %rax,%rbp
|
||||
leaq 120(%rbp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq -8(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lctr_enc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bsaes_ctr32_encrypt_blocks,.-bsaes_ctr32_encrypt_blocks
|
||||
.globl bsaes_xts_encrypt
|
||||
.type bsaes_xts_encrypt,@function
|
||||
.align 16
|
||||
bsaes_xts_encrypt:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.Lxts_enc_prologue:
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 0x48
|
||||
movq %rsp,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
movq %rdi,%r12
|
||||
movq %rsi,%r13
|
||||
movq %rdx,%r14
|
||||
@@ -1951,32 +2012,54 @@ bsaes_xts_encrypt:
|
||||
cmpq %rax,%rbp
|
||||
ja .Lxts_enc_bzero
|
||||
|
||||
leaq (%rbp),%rsp
|
||||
movq 72(%rsp),%r15
|
||||
movq 80(%rsp),%r14
|
||||
movq 88(%rsp),%r13
|
||||
movq 96(%rsp),%r12
|
||||
movq 104(%rsp),%rbx
|
||||
movq 112(%rsp),%rax
|
||||
leaq 120(%rsp),%rsp
|
||||
movq %rax,%rbp
|
||||
leaq 120(%rbp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq -8(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lxts_enc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bsaes_xts_encrypt,.-bsaes_xts_encrypt
|
||||
|
||||
.globl bsaes_xts_decrypt
|
||||
.type bsaes_xts_decrypt,@function
|
||||
.align 16
|
||||
bsaes_xts_decrypt:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.Lxts_dec_prologue:
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 0x48
|
||||
movq %rsp,%rbp
|
||||
movq %rdi,%r12
|
||||
movq %rsi,%r13
|
||||
@@ -2429,17 +2512,25 @@ bsaes_xts_decrypt:
|
||||
cmpq %rax,%rbp
|
||||
ja .Lxts_dec_bzero
|
||||
|
||||
leaq (%rbp),%rsp
|
||||
movq 72(%rsp),%r15
|
||||
movq 80(%rsp),%r14
|
||||
movq 88(%rsp),%r13
|
||||
movq 96(%rsp),%r12
|
||||
movq 104(%rsp),%rbx
|
||||
movq 112(%rsp),%rax
|
||||
leaq 120(%rsp),%rsp
|
||||
movq %rax,%rbp
|
||||
leaq 120(%rbp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq -8(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lxts_dec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bsaes_xts_decrypt,.-bsaes_xts_decrypt
|
||||
.type _bsaes_const,@object
|
||||
.align 64
|
||||
|
||||
@@ -4,15 +4,24 @@
|
||||
.type rsaz_1024_sqr_avx2,@function
|
||||
.align 64
|
||||
rsaz_1024_sqr_avx2:
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
vzeroupper
|
||||
movq %rax,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
movq %rdx,%r13
|
||||
subq $832,%rsp
|
||||
movq %r13,%r15
|
||||
@@ -625,28 +634,46 @@ rsaz_1024_sqr_avx2:
|
||||
|
||||
vzeroall
|
||||
movq %rbp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lsqr_1024_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_1024_sqr_avx2,.-rsaz_1024_sqr_avx2
|
||||
.globl rsaz_1024_mul_avx2
|
||||
.type rsaz_1024_mul_avx2,@function
|
||||
.align 64
|
||||
rsaz_1024_mul_avx2:
|
||||
.cfi_startproc
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
movq %rax,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
vzeroall
|
||||
movq %rdx,%r13
|
||||
subq $64,%rsp
|
||||
@@ -1162,15 +1189,24 @@ rsaz_1024_mul_avx2:
|
||||
vzeroupper
|
||||
|
||||
movq %rbp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_1024_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_1024_mul_avx2,.-rsaz_1024_mul_avx2
|
||||
.globl rsaz_1024_red2norm_avx2
|
||||
.type rsaz_1024_red2norm_avx2,@function
|
||||
@@ -1555,8 +1591,10 @@ rsaz_1024_scatter5_avx2:
|
||||
.type rsaz_1024_gather5_avx2,@function
|
||||
.align 32
|
||||
rsaz_1024_gather5_avx2:
|
||||
.cfi_startproc
|
||||
vzeroupper
|
||||
movq %rsp,%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
leaq -256(%rsp),%rsp
|
||||
andq $-32,%rsp
|
||||
leaq .Linc(%rip),%r10
|
||||
@@ -1665,7 +1703,10 @@ rsaz_1024_gather5_avx2:
|
||||
vmovdqu %ymm0,(%rdi)
|
||||
vzeroupper
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.LSEH_end_rsaz_1024_gather5:
|
||||
.size rsaz_1024_gather5_avx2,.-rsaz_1024_gather5_avx2
|
||||
|
||||
.globl rsaz_avx2_eligible
|
||||
|
||||
@@ -6,14 +6,28 @@
|
||||
.type rsaz_512_sqr,@function
|
||||
.align 32
|
||||
rsaz_512_sqr:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
subq $128+24,%rsp
|
||||
.cfi_adjust_cfa_offset 128+24
|
||||
.Lsqr_body:
|
||||
movq %rdx,%rbp
|
||||
movq (%rsi),%rdx
|
||||
@@ -658,28 +672,51 @@ rsaz_512_sqr:
|
||||
.Lsqr_tail:
|
||||
|
||||
leaq 128+24+48(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lsqr_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_512_sqr,.-rsaz_512_sqr
|
||||
.globl rsaz_512_mul
|
||||
.type rsaz_512_mul,@function
|
||||
.align 32
|
||||
rsaz_512_mul:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
subq $128+24,%rsp
|
||||
.cfi_adjust_cfa_offset 128+24
|
||||
.Lmul_body:
|
||||
.byte 102,72,15,110,199
|
||||
.byte 102,72,15,110,201
|
||||
@@ -741,28 +778,51 @@ rsaz_512_mul:
|
||||
call __rsaz_512_subtract
|
||||
|
||||
leaq 128+24+48(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_512_mul,.-rsaz_512_mul
|
||||
.globl rsaz_512_mul_gather4
|
||||
.type rsaz_512_mul_gather4,@function
|
||||
.align 32
|
||||
rsaz_512_mul_gather4:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
subq $152,%rsp
|
||||
.cfi_adjust_cfa_offset 152
|
||||
.Lmul_gather4_body:
|
||||
movd %r9d,%xmm8
|
||||
movdqa .Linc+16(%rip),%xmm1
|
||||
@@ -1151,29 +1211,52 @@ rsaz_512_mul_gather4:
|
||||
call __rsaz_512_subtract
|
||||
|
||||
leaq 128+24+48(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_gather4_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_512_mul_gather4,.-rsaz_512_mul_gather4
|
||||
.globl rsaz_512_mul_scatter4
|
||||
.type rsaz_512_mul_scatter4,@function
|
||||
.align 32
|
||||
rsaz_512_mul_scatter4:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
movl %r9d,%r9d
|
||||
subq $128+24,%rsp
|
||||
.cfi_adjust_cfa_offset 128+24
|
||||
.Lmul_scatter4_body:
|
||||
leaq (%r8,%r9,8),%r8
|
||||
.byte 102,72,15,110,199
|
||||
@@ -1248,28 +1331,51 @@ rsaz_512_mul_scatter4:
|
||||
movq %r15,896(%rsi)
|
||||
|
||||
leaq 128+24+48(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_scatter4_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_512_mul_scatter4,.-rsaz_512_mul_scatter4
|
||||
.globl rsaz_512_mul_by_one
|
||||
.type rsaz_512_mul_by_one,@function
|
||||
.align 32
|
||||
rsaz_512_mul_by_one:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
subq $128+24,%rsp
|
||||
.cfi_adjust_cfa_offset 128+24
|
||||
.Lmul_by_one_body:
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%eax
|
||||
movq %rdx,%rbp
|
||||
@@ -1312,15 +1418,24 @@ rsaz_512_mul_by_one:
|
||||
movq %r15,56(%rdi)
|
||||
|
||||
leaq 128+24+48(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_by_one_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rsaz_512_mul_by_one,.-rsaz_512_mul_by_one
|
||||
.type __rsaz_512_reduce,@function
|
||||
.align 32
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
.type _mul_1x1,@function
|
||||
.align 16
|
||||
_mul_1x1:
|
||||
.cfi_startproc
|
||||
subq $128+8,%rsp
|
||||
.cfi_adjust_cfa_offset 128+8
|
||||
movq $-1,%r9
|
||||
leaq (%rax,%rax,1),%rsi
|
||||
shrq $3,%r9
|
||||
@@ -193,16 +195,20 @@ _mul_1x1:
|
||||
xorq %rdi,%rdx
|
||||
|
||||
addq $128+8,%rsp
|
||||
.cfi_adjust_cfa_offset -128-8
|
||||
.byte 0xf3,0xc3
|
||||
.Lend_mul_1x1:
|
||||
.cfi_endproc
|
||||
.size _mul_1x1,.-_mul_1x1
|
||||
|
||||
.globl bn_GF2m_mul_2x2
|
||||
.type bn_GF2m_mul_2x2,@function
|
||||
.align 16
|
||||
bn_GF2m_mul_2x2:
|
||||
movq OPENSSL_ia32cap_P(%rip),%rax
|
||||
btq $33,%rax
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
movq OPENSSL_ia32cap_P(%rip),%r10
|
||||
btq $33,%r10
|
||||
jnc .Lvanilla_mul_2x2
|
||||
|
||||
.byte 102,72,15,110,198
|
||||
@@ -230,11 +236,17 @@ bn_GF2m_mul_2x2:
|
||||
.align 16
|
||||
.Lvanilla_mul_2x2:
|
||||
leaq -136(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 8*17
|
||||
movq %r14,80(%rsp)
|
||||
.cfi_rel_offset %r14,8*10
|
||||
movq %r13,88(%rsp)
|
||||
.cfi_rel_offset %r13,8*11
|
||||
movq %r12,96(%rsp)
|
||||
.cfi_rel_offset %r12,8*12
|
||||
movq %rbp,104(%rsp)
|
||||
.cfi_rel_offset %rbp,8*13
|
||||
movq %rbx,112(%rsp)
|
||||
.cfi_rel_offset %rbx,8*14
|
||||
.Lbody_mul_2x2:
|
||||
movq %rdi,32(%rsp)
|
||||
movq %rsi,40(%rsp)
|
||||
@@ -279,13 +291,21 @@ bn_GF2m_mul_2x2:
|
||||
movq %rax,8(%rbp)
|
||||
|
||||
movq 80(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 88(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 96(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 104(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 112(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 136(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -8*17
|
||||
.Lepilogue_mul_2x2:
|
||||
.byte 0xf3,0xc3
|
||||
.Lend_mul_2x2:
|
||||
.cfi_endproc
|
||||
.size bn_GF2m_mul_2x2,.-bn_GF2m_mul_2x2
|
||||
.byte 71,70,40,50,94,109,41,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
.align 16
|
||||
@@ -6,8 +6,10 @@
|
||||
.type bn_mul_mont,@function
|
||||
.align 16
|
||||
bn_mul_mont:
|
||||
.cfi_startproc
|
||||
movl %r9d,%r9d
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
testl $3,%r9d
|
||||
jnz .Lmul_enter
|
||||
cmpl $8,%r9d
|
||||
@@ -22,11 +24,17 @@ bn_mul_mont:
|
||||
.align 16
|
||||
.Lmul_enter:
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
negq %r9
|
||||
movq %rsp,%r11
|
||||
@@ -59,6 +67,7 @@ bn_mul_mont:
|
||||
.Lmul_page_walk_done:
|
||||
|
||||
movq %rax,8(%rsp,%r9,8)
|
||||
.cfi_escape 0x0f,0x0a,0x77,0x08,0x79,0x00,0x38,0x1e,0x22,0x06,0x23,0x08
|
||||
.Lmul_body:
|
||||
movq %rdx,%r12
|
||||
movq (%r8),%r8
|
||||
@@ -226,32 +235,49 @@ bn_mul_mont:
|
||||
jnz .Lcopy
|
||||
|
||||
movq 8(%rsp,%r9,8),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mul_mont,.-bn_mul_mont
|
||||
.type bn_mul4x_mont,@function
|
||||
.align 16
|
||||
bn_mul4x_mont:
|
||||
.cfi_startproc
|
||||
movl %r9d,%r9d
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lmul4x_enter:
|
||||
andl $0x80100,%r11d
|
||||
cmpl $0x80100,%r11d
|
||||
je .Lmulx4x_enter
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
negq %r9
|
||||
movq %rsp,%r11
|
||||
@@ -275,6 +301,7 @@ bn_mul4x_mont:
|
||||
.Lmul4x_page_walk_done:
|
||||
|
||||
movq %rax,8(%rsp,%r9,8)
|
||||
.cfi_escape 0x0f,0x0a,0x77,0x08,0x79,0x00,0x38,0x1e,0x22,0x06,0x23,0x08
|
||||
.Lmul4x_body:
|
||||
movq %rdi,16(%rsp,%r9,8)
|
||||
movq %rdx,%r12
|
||||
@@ -642,16 +669,25 @@ bn_mul4x_mont:
|
||||
decq %r15
|
||||
jnz .Lcopy4x
|
||||
movq 8(%rsp,%r9,8),%rsi
|
||||
.cfi_def_cfa %rsi, 8
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mul4x_mont,.-bn_mul4x_mont
|
||||
|
||||
|
||||
@@ -659,14 +695,22 @@ bn_mul4x_mont:
|
||||
.type bn_sqr8x_mont,@function
|
||||
.align 32
|
||||
bn_sqr8x_mont:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lsqr8x_enter:
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lsqr8x_prologue:
|
||||
|
||||
movl %r9d,%r10d
|
||||
@@ -722,6 +766,7 @@ bn_sqr8x_mont:
|
||||
|
||||
movq %r8,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lsqr8x_body:
|
||||
|
||||
.byte 102,72,15,110,209
|
||||
@@ -787,6 +832,7 @@ bn_sqr8x_mont:
|
||||
pxor %xmm0,%xmm0
|
||||
pshufd $0,%xmm1,%xmm1
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
jmp .Lsqr8x_cond_copy
|
||||
|
||||
.align 32
|
||||
@@ -816,26 +862,42 @@ bn_sqr8x_mont:
|
||||
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lsqr8x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_sqr8x_mont,.-bn_sqr8x_mont
|
||||
.type bn_mulx4x_mont,@function
|
||||
.align 32
|
||||
bn_mulx4x_mont:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lmulx4x_enter:
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lmulx4x_prologue:
|
||||
|
||||
shll $3,%r9d
|
||||
@@ -881,6 +943,7 @@ bn_mulx4x_mont:
|
||||
movq %r8,24(%rsp)
|
||||
movq %rdi,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
movq %r9,48(%rsp)
|
||||
jmp .Lmulx4x_body
|
||||
|
||||
@@ -1125,6 +1188,7 @@ bn_mulx4x_mont:
|
||||
pxor %xmm0,%xmm0
|
||||
pshufd $0,%xmm1,%xmm1
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
jmp .Lmulx4x_cond_copy
|
||||
|
||||
.align 32
|
||||
@@ -1154,14 +1218,22 @@ bn_mulx4x_mont:
|
||||
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmulx4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mulx4x_mont,.-bn_mulx4x_mont
|
||||
.byte 77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
.align 16
|
||||
@@ -6,8 +6,10 @@
|
||||
.type bn_mul_mont_gather5,@function
|
||||
.align 64
|
||||
bn_mul_mont_gather5:
|
||||
.cfi_startproc
|
||||
movl %r9d,%r9d
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
testl $7,%r9d
|
||||
jnz .Lmul_enter
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%r11d
|
||||
@@ -17,11 +19,17 @@ bn_mul_mont_gather5:
|
||||
.Lmul_enter:
|
||||
movd 8(%rsp),%xmm5
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
negq %r9
|
||||
movq %rsp,%r11
|
||||
@@ -54,6 +62,7 @@ bn_mul_mont_gather5:
|
||||
|
||||
leaq .Linc(%rip),%r10
|
||||
movq %rax,8(%rsp,%r9,8)
|
||||
.cfi_escape 0x0f,0x0a,0x77,0x08,0x79,0x00,0x38,0x1e,0x22,0x06,0x23,0x08
|
||||
.Lmul_body:
|
||||
|
||||
leaq 128(%rdx),%r12
|
||||
@@ -411,33 +420,50 @@ bn_mul_mont_gather5:
|
||||
jnz .Lcopy
|
||||
|
||||
movq 8(%rsp,%r9,8),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mul_mont_gather5,.-bn_mul_mont_gather5
|
||||
.type bn_mul4x_mont_gather5,@function
|
||||
.align 32
|
||||
bn_mul4x_mont_gather5:
|
||||
.cfi_startproc
|
||||
.byte 0x67
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lmul4x_enter:
|
||||
andl $0x80108,%r11d
|
||||
cmpl $0x80108,%r11d
|
||||
je .Lmulx4x_enter
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lmul4x_prologue:
|
||||
|
||||
.byte 0x67
|
||||
@@ -493,22 +519,32 @@ bn_mul4x_mont_gather5:
|
||||
negq %r9
|
||||
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lmul4x_body:
|
||||
|
||||
call mul4x_internal
|
||||
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmul4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mul4x_mont_gather5,.-bn_mul4x_mont_gather5
|
||||
|
||||
.type mul4x_internal,@function
|
||||
@@ -1040,17 +1076,25 @@ mul4x_internal:
|
||||
.type bn_power5,@function
|
||||
.align 32
|
||||
bn_power5:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%r11d
|
||||
andl $0x80108,%r11d
|
||||
cmpl $0x80108,%r11d
|
||||
je .Lpowerx5_enter
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lpower5_prologue:
|
||||
|
||||
shll $3,%r9d
|
||||
@@ -1115,6 +1159,7 @@ bn_power5:
|
||||
|
||||
movq %r8,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lpower5_body:
|
||||
.byte 102,72,15,110,207
|
||||
.byte 102,72,15,110,209
|
||||
@@ -1141,16 +1186,25 @@ bn_power5:
|
||||
call mul4x_internal
|
||||
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lpower5_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_power5,.-bn_power5
|
||||
|
||||
.globl bn_sqr8x_internal
|
||||
@@ -2001,14 +2055,22 @@ bn_from_montgomery:
|
||||
.type bn_from_mont8x,@function
|
||||
.align 32
|
||||
bn_from_mont8x:
|
||||
.cfi_startproc
|
||||
.byte 0x67
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lfrom_prologue:
|
||||
|
||||
shll $3,%r9d
|
||||
@@ -2073,6 +2135,7 @@ bn_from_mont8x:
|
||||
|
||||
movq %r8,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lfrom_body:
|
||||
movq %r9,%r11
|
||||
leaq 48(%rsp),%rax
|
||||
@@ -2114,7 +2177,6 @@ bn_from_mont8x:
|
||||
|
||||
pxor %xmm0,%xmm0
|
||||
leaq 48(%rsp),%rax
|
||||
movq 40(%rsp),%rsi
|
||||
jmp .Lfrom_mont_zero
|
||||
|
||||
.align 32
|
||||
@@ -2124,11 +2186,12 @@ bn_from_mont8x:
|
||||
|
||||
pxor %xmm0,%xmm0
|
||||
leaq 48(%rsp),%rax
|
||||
movq 40(%rsp),%rsi
|
||||
jmp .Lfrom_mont_zero
|
||||
|
||||
.align 32
|
||||
.Lfrom_mont_zero:
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movdqa %xmm0,0(%rax)
|
||||
movdqa %xmm0,16(%rax)
|
||||
movdqa %xmm0,32(%rax)
|
||||
@@ -2139,26 +2202,42 @@ bn_from_mont8x:
|
||||
|
||||
movq $1,%rax
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lfrom_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_from_mont8x,.-bn_from_mont8x
|
||||
.type bn_mulx4x_mont_gather5,@function
|
||||
.align 32
|
||||
bn_mulx4x_mont_gather5:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lmulx4x_enter:
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lmulx4x_prologue:
|
||||
|
||||
shll $3,%r9d
|
||||
@@ -2224,21 +2303,31 @@ bn_mulx4x_mont_gather5:
|
||||
|
||||
movq %r8,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lmulx4x_body:
|
||||
call mulx4x_internal
|
||||
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lmulx4x_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_mulx4x_mont_gather5,.-bn_mulx4x_mont_gather5
|
||||
|
||||
.type mulx4x_internal,@function
|
||||
@@ -2666,14 +2755,22 @@ mulx4x_internal:
|
||||
.type bn_powerx5,@function
|
||||
.align 32
|
||||
bn_powerx5:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
.Lpowerx5_enter:
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
.Lpowerx5_prologue:
|
||||
|
||||
shll $3,%r9d
|
||||
@@ -2745,6 +2842,7 @@ bn_powerx5:
|
||||
.byte 102,72,15,110,226
|
||||
movq %r8,32(%rsp)
|
||||
movq %rax,40(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x28,0x06,0x23,0x08
|
||||
.Lpowerx5_body:
|
||||
|
||||
call __bn_sqrx8x_internal
|
||||
@@ -2767,17 +2865,26 @@ bn_powerx5:
|
||||
call mulx4x_internal
|
||||
|
||||
movq 40(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq $1,%rax
|
||||
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lpowerx5_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size bn_powerx5,.-bn_powerx5
|
||||
|
||||
.globl bn_sqrx8x_internal
|
||||
|
||||
+43
-33
@@ -1,38 +1,48 @@
|
||||
/* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
|
||||
#define CFLAGS cflags
|
||||
/*
|
||||
* Generate CFLAGS as an array of individual characters. This is a
|
||||
* WARNING: do not edit!
|
||||
* Generated by util/mkbuildinf.pl
|
||||
*
|
||||
* Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#define PLATFORM "platform: BSD-x86_64"
|
||||
#define DATE "built on: Thu Jan 24 21:30:38 2019 UTC"
|
||||
|
||||
/*
|
||||
* Generate compiler_flags as an array of individual characters. This is a
|
||||
* workaround for the situation where CFLAGS gets too long for a C90 string
|
||||
* literal
|
||||
*/
|
||||
static const char cflags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','c','c',' ','-','D','D',
|
||||
'S','O','_','D','L','F','C','N',' ','-','D','H','A','V','E','_',
|
||||
'D','L','F','C','N','_','H',' ','-','D','N','D','E','B','U','G',
|
||||
' ','-','D','O','P','E','N','S','S','L','_','T','H','R','E','A',
|
||||
'D','S',' ','-','D','O','P','E','N','S','S','L','_','N','O','_',
|
||||
'D','Y','N','A','M','I','C','_','E','N','G','I','N','E',' ','-',
|
||||
'D','O','P','E','N','S','S','L','_','P','I','C',' ','-','D','O',
|
||||
'P','E','N','S','S','L','_','I','A','3','2','_','S','S','E','2',
|
||||
' ','-','D','O','P','E','N','S','S','L','_','B','N','_','A','S',
|
||||
'M','_','M','O','N','T',' ','-','D','O','P','E','N','S','S','L',
|
||||
'_','B','N','_','A','S','M','_','M','O','N','T','5',' ','-','D',
|
||||
'O','P','E','N','S','S','L','_','B','N','_','A','S','M','_','G',
|
||||
'F','2','m',' ','-','D','S','H','A','1','_','A','S','M',' ','-',
|
||||
'D','S','H','A','2','5','6','_','A','S','M',' ','-','D','S','H',
|
||||
'A','5','1','2','_','A','S','M',' ','-','D','R','C','4','_','A',
|
||||
'S','M',' ','-','D','M','D','5','_','A','S','M',' ','-','D','A',
|
||||
'E','S','_','A','S','M',' ','-','D','V','P','A','E','S','_','A',
|
||||
'S','M',' ','-','D','B','S','A','E','S','_','A','S','M',' ','-',
|
||||
'D','G','H','A','S','H','_','A','S','M',' ','-','D','E','C','P',
|
||||
'_','N','I','S','T','Z','2','5','6','_','A','S','M',' ','-','D',
|
||||
'P','A','D','L','O','C','K','_','A','S','M',' ','-','D','P','O',
|
||||
'L','Y','1','3','0','5','_','A','S','M',' ','-','D','O','P','E',
|
||||
'N','S','S','L','D','I','R','=','"','\\','"','/','u','s','r','/',
|
||||
'l','o','c','a','l','/','s','s','l','\\','"','"',' ','-','D','E',
|
||||
'N','G','I','N','E','S','D','I','R','=','"','\\','"','/','u','s',
|
||||
'r','/','l','o','c','a','l','/','l','i','b','/','e','n','g','i',
|
||||
'n','e','s','-','1','.','1','\\','"','"',' ','\0'
|
||||
static const char compiler_flags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','g','c','c',' ','-','f',
|
||||
'P','I','C',' ','-','p','t','h','r','e','a','d',' ','-','W','a',
|
||||
',','-','-','n','o','e','x','e','c','s','t','a','c','k',' ','-',
|
||||
'W','a','l','l',' ','-','O','3',' ','-','D','L','_','E','N','D',
|
||||
'I','A','N',' ','-','D','O','P','E','N','S','S','L','_','P','I',
|
||||
'C',' ','-','D','O','P','E','N','S','S','L','_','C','P','U','I',
|
||||
'D','_','O','B','J',' ','-','D','O','P','E','N','S','S','L','_',
|
||||
'I','A','3','2','_','S','S','E','2',' ','-','D','O','P','E','N',
|
||||
'S','S','L','_','B','N','_','A','S','M','_','M','O','N','T',' ',
|
||||
'-','D','O','P','E','N','S','S','L','_','B','N','_','A','S','M',
|
||||
'_','M','O','N','T','5',' ','-','D','O','P','E','N','S','S','L',
|
||||
'_','B','N','_','A','S','M','_','G','F','2','m',' ','-','D','S',
|
||||
'H','A','1','_','A','S','M',' ','-','D','S','H','A','2','5','6',
|
||||
'_','A','S','M',' ','-','D','S','H','A','5','1','2','_','A','S',
|
||||
'M',' ','-','D','K','E','C','C','A','K','1','6','0','0','_','A',
|
||||
'S','M',' ','-','D','R','C','4','_','A','S','M',' ','-','D','M',
|
||||
'D','5','_','A','S','M',' ','-','D','A','E','S','_','A','S','M',
|
||||
' ','-','D','V','P','A','E','S','_','A','S','M',' ','-','D','B',
|
||||
'S','A','E','S','_','A','S','M',' ','-','D','G','H','A','S','H',
|
||||
'_','A','S','M',' ','-','D','E','C','P','_','N','I','S','T','Z',
|
||||
'2','5','6','_','A','S','M',' ','-','D','X','2','5','5','1','9',
|
||||
'_','A','S','M',' ','-','D','P','A','D','L','O','C','K','_','A',
|
||||
'S','M',' ','-','D','P','O','L','Y','1','3','0','5','_','A','S',
|
||||
'M',' ','-','D','_','T','H','R','E','A','D','_','S','A','F','E',
|
||||
' ','-','D','_','R','E','E','N','T','R','A','N','T',' ','-','D',
|
||||
'N','D','E','B','U','G','\0'
|
||||
};
|
||||
#define PLATFORM "platform: BSD-x86_64"
|
||||
#define DATE "built on: Tue Nov 20 09:37:29 2018"
|
||||
@@ -17,11 +17,22 @@ Camellia_EncryptBlock:
|
||||
.align 16
|
||||
.Lenc_rounds:
|
||||
Camellia_EncryptBlock_Rounds:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-32
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-40
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-48
|
||||
.Lenc_prologue:
|
||||
|
||||
|
||||
@@ -53,13 +64,20 @@ Camellia_EncryptBlock_Rounds:
|
||||
movl %r11d,12(%r13)
|
||||
|
||||
movq 0(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 32(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -40
|
||||
.Lenc_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size Camellia_EncryptBlock_Rounds,.-Camellia_EncryptBlock_Rounds
|
||||
|
||||
.type _x86_64_Camellia_encrypt,@function
|
||||
@@ -286,11 +304,22 @@ Camellia_DecryptBlock:
|
||||
.align 16
|
||||
.Ldec_rounds:
|
||||
Camellia_DecryptBlock_Rounds:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-32
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-40
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-48
|
||||
.Ldec_prologue:
|
||||
|
||||
|
||||
@@ -322,13 +351,20 @@ Camellia_DecryptBlock_Rounds:
|
||||
movl %r11d,12(%r13)
|
||||
|
||||
movq 0(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 32(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -40
|
||||
.Ldec_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size Camellia_DecryptBlock_Rounds,.-Camellia_DecryptBlock_Rounds
|
||||
|
||||
.type _x86_64_Camellia_decrypt,@function
|
||||
@@ -542,11 +578,22 @@ _x86_64_Camellia_decrypt:
|
||||
.type Camellia_Ekeygen,@function
|
||||
.align 16
|
||||
Camellia_Ekeygen:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-32
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-40
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-48
|
||||
.Lkey_prologue:
|
||||
|
||||
movl %edi,%r15d
|
||||
@@ -1074,13 +1121,20 @@ Camellia_Ekeygen:
|
||||
movl $4,%eax
|
||||
.Ldone:
|
||||
movq 0(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 32(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -40
|
||||
.Lkey_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size Camellia_Ekeygen,.-Camellia_Ekeygen
|
||||
.align 64
|
||||
.LCamellia_SIGMA:
|
||||
@@ -1605,17 +1659,31 @@ Camellia_Ekeygen:
|
||||
.type Camellia_cbc_encrypt,@function
|
||||
.align 16
|
||||
Camellia_cbc_encrypt:
|
||||
.cfi_startproc
|
||||
cmpq $0,%rdx
|
||||
je .Lcbc_abort
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
.Lcbc_prologue:
|
||||
|
||||
movq %rsp,%rbp
|
||||
.cfi_def_cfa_register %rbp
|
||||
subq $64,%rsp
|
||||
andq $-64,%rsp
|
||||
|
||||
@@ -1636,6 +1704,7 @@ Camellia_cbc_encrypt:
|
||||
|
||||
movq %r8,40(%rsp)
|
||||
movq %rbp,48(%rsp)
|
||||
.cfi_escape 0x0f,0x05,0x77,0x30,0x06,0x23,0x38
|
||||
|
||||
.Lcbc_body:
|
||||
leaq .LCamellia_SBOX(%rip),%rbp
|
||||
@@ -1824,15 +1893,24 @@ Camellia_cbc_encrypt:
|
||||
.align 16
|
||||
.Lcbc_done:
|
||||
movq 48(%rsp),%rcx
|
||||
.cfi_def_cfa %rcx,56
|
||||
movq 0(%rcx),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rcx),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rcx),%r13
|
||||
.cfi_restore %r13
|
||||
movq 24(%rcx),%r12
|
||||
.cfi_restore %r12
|
||||
movq 32(%rcx),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 40(%rcx),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 48(%rcx),%rsp
|
||||
.cfi_def_cfa %rsp,8
|
||||
.Lcbc_abort:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size Camellia_cbc_encrypt,.-Camellia_cbc_encrypt
|
||||
|
||||
.byte 67,97,109,101,108,108,105,97,32,102,111,114,32,120,56,54,95,54,52,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
+1474
-39
File diff suppressed because it is too large.
Load diff
+1455
-68
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,792 @@
|
||||
.text
|
||||
|
||||
.globl x25519_fe51_mul
|
||||
.type x25519_fe51_mul,@function
|
||||
.align 32
|
||||
x25519_fe51_mul:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_mul_body:
|
||||
|
||||
movq 0(%rsi),%rax
|
||||
movq 0(%rdx),%r11
|
||||
movq 8(%rdx),%r12
|
||||
movq 16(%rdx),%r13
|
||||
movq 24(%rdx),%rbp
|
||||
movq 32(%rdx),%r14
|
||||
|
||||
movq %rdi,32(%rsp)
|
||||
movq %rax,%rdi
|
||||
mulq %r11
|
||||
movq %r11,0(%rsp)
|
||||
movq %rax,%rbx
|
||||
movq %rdi,%rax
|
||||
movq %rdx,%rcx
|
||||
mulq %r12
|
||||
movq %r12,8(%rsp)
|
||||
movq %rax,%r8
|
||||
movq %rdi,%rax
|
||||
leaq (%r14,%r14,8),%r15
|
||||
movq %rdx,%r9
|
||||
mulq %r13
|
||||
movq %r13,16(%rsp)
|
||||
movq %rax,%r10
|
||||
movq %rdi,%rax
|
||||
leaq (%r14,%r15,2),%rdi
|
||||
movq %rdx,%r11
|
||||
mulq %rbp
|
||||
movq %rax,%r12
|
||||
movq 0(%rsi),%rax
|
||||
movq %rdx,%r13
|
||||
mulq %r14
|
||||
movq %rax,%r14
|
||||
movq 8(%rsi),%rax
|
||||
movq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rdi
|
||||
addq %rax,%r10
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rdi
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r12
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 16(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rdi
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r10
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 8(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rbp
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r10
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 0(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rbp
|
||||
addq %rax,%r8
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rbp
|
||||
addq %rax,%r10
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
addq %rax,%r14
|
||||
adcq %rdx,%r15
|
||||
|
||||
movq 32(%rsp),%rdi
|
||||
jmp .Lreduce51
|
||||
.Lfe51_mul_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_mul,.-x25519_fe51_mul
|
||||
|
||||
.globl x25519_fe51_sqr
|
||||
.type x25519_fe51_sqr,@function
|
||||
.align 32
|
||||
x25519_fe51_sqr:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_sqr_body:
|
||||
|
||||
movq 0(%rsi),%rax
|
||||
movq 16(%rsi),%r15
|
||||
movq 32(%rsi),%rbp
|
||||
|
||||
movq %rdi,32(%rsp)
|
||||
leaq (%rax,%rax,1),%r14
|
||||
mulq %rax
|
||||
movq %rax,%rbx
|
||||
movq 8(%rsi),%rax
|
||||
movq %rdx,%rcx
|
||||
mulq %r14
|
||||
movq %rax,%r8
|
||||
movq %r15,%rax
|
||||
movq %r15,0(%rsp)
|
||||
movq %rdx,%r9
|
||||
mulq %r14
|
||||
movq %rax,%r10
|
||||
movq 24(%rsi),%rax
|
||||
movq %rdx,%r11
|
||||
imulq $19,%rbp,%rdi
|
||||
mulq %r14
|
||||
movq %rax,%r12
|
||||
movq %rbp,%rax
|
||||
movq %rdx,%r13
|
||||
mulq %r14
|
||||
movq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
movq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%r12
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
|
||||
movq 24(%rsi),%rsi
|
||||
leaq (%rax,%rax,1),%rbp
|
||||
mulq %rax
|
||||
addq %rax,%r10
|
||||
movq 0(%rsp),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rsi
|
||||
addq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r15
|
||||
imulq $19,%rsi,%rbp
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
leaq (%rsi,%rsi,1),%rax
|
||||
adcq %rdx,%rcx
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%r10
|
||||
movq %rsi,%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r8
|
||||
movq 0(%rsp),%rax
|
||||
adcq %rdx,%r9
|
||||
|
||||
leaq (%rax,%rax,1),%rsi
|
||||
mulq %rax
|
||||
addq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r15
|
||||
mulq %rsi
|
||||
addq %rax,%rbx
|
||||
movq %rsi,%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
adcq %rdx,%r9
|
||||
|
||||
movq 32(%rsp),%rdi
|
||||
jmp .Lreduce51
|
||||
|
||||
.align 32
|
||||
.Lreduce51:
|
||||
movq $0x7ffffffffffff,%rbp
|
||||
|
||||
movq %r10,%rdx
|
||||
shrq $51,%r10
|
||||
shlq $13,%r11
|
||||
andq %rbp,%rdx
|
||||
orq %r10,%r11
|
||||
addq %r11,%r12
|
||||
adcq $0,%r13
|
||||
|
||||
movq %rbx,%rax
|
||||
shrq $51,%rbx
|
||||
shlq $13,%rcx
|
||||
andq %rbp,%rax
|
||||
orq %rbx,%rcx
|
||||
addq %rcx,%r8
|
||||
adcq $0,%r9
|
||||
|
||||
movq %r12,%rbx
|
||||
shrq $51,%r12
|
||||
shlq $13,%r13
|
||||
andq %rbp,%rbx
|
||||
orq %r12,%r13
|
||||
addq %r13,%r14
|
||||
adcq $0,%r15
|
||||
|
||||
movq %r8,%rcx
|
||||
shrq $51,%r8
|
||||
shlq $13,%r9
|
||||
andq %rbp,%rcx
|
||||
orq %r8,%r9
|
||||
addq %r9,%rdx
|
||||
|
||||
movq %r14,%r10
|
||||
shrq $51,%r14
|
||||
shlq $13,%r15
|
||||
andq %rbp,%r10
|
||||
orq %r14,%r15
|
||||
|
||||
leaq (%r15,%r15,8),%r14
|
||||
leaq (%r15,%r14,2),%r15
|
||||
addq %r15,%rax
|
||||
|
||||
movq %rdx,%r8
|
||||
andq %rbp,%rdx
|
||||
shrq $51,%r8
|
||||
addq %r8,%rbx
|
||||
|
||||
movq %rax,%r9
|
||||
andq %rbp,%rax
|
||||
shrq $51,%r9
|
||||
addq %r9,%rcx
|
||||
|
||||
movq %rax,0(%rdi)
|
||||
movq %rcx,8(%rdi)
|
||||
movq %rdx,16(%rdi)
|
||||
movq %rbx,24(%rdi)
|
||||
movq %r10,32(%rdi)
|
||||
|
||||
movq 40(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 48(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 56(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 64(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 72(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 80(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq 88(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 88
|
||||
.Lfe51_sqr_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_sqr,.-x25519_fe51_sqr
|
||||
|
||||
.globl x25519_fe51_mul121666
|
||||
.type x25519_fe51_mul121666,@function
|
||||
.align 32
|
||||
x25519_fe51_mul121666:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_mul121666_body:
|
||||
movl $121666,%eax
|
||||
|
||||
mulq 0(%rsi)
|
||||
movq %rax,%rbx
|
||||
movl $121666,%eax
|
||||
movq %rdx,%rcx
|
||||
mulq 8(%rsi)
|
||||
movq %rax,%r8
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r9
|
||||
mulq 16(%rsi)
|
||||
movq %rax,%r10
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r11
|
||||
mulq 24(%rsi)
|
||||
movq %rax,%r12
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r13
|
||||
mulq 32(%rsi)
|
||||
movq %rax,%r14
|
||||
movq %rdx,%r15
|
||||
|
||||
jmp .Lreduce51
|
||||
.Lfe51_mul121666_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_mul121666,.-x25519_fe51_mul121666
|
||||
|
||||
.globl x25519_fe64_eligible
|
||||
.type x25519_fe64_eligible,@function
|
||||
.align 32
|
||||
x25519_fe64_eligible:
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%ecx
|
||||
xorl %eax,%eax
|
||||
andl $0x80100,%ecx
|
||||
cmpl $0x80100,%ecx
|
||||
cmovel %ecx,%eax
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_eligible,.-x25519_fe64_eligible
|
||||
|
||||
.globl x25519_fe64_mul
|
||||
.type x25519_fe64_mul,@function
|
||||
.align 32
|
||||
x25519_fe64_mul:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
pushq %rdi
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rdi,-64
|
||||
leaq -16(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 16
|
||||
.Lfe64_mul_body:
|
||||
|
||||
movq %rdx,%rax
|
||||
movq 0(%rdx),%rbp
|
||||
movq 0(%rsi),%rdx
|
||||
movq 8(%rax),%rcx
|
||||
movq 16(%rax),%r14
|
||||
movq 24(%rax),%r15
|
||||
|
||||
mulxq %rbp,%r8,%rax
|
||||
xorl %edi,%edi
|
||||
mulxq %rcx,%r9,%rbx
|
||||
adcxq %rax,%r9
|
||||
mulxq %r14,%r10,%rax
|
||||
adcxq %rbx,%r10
|
||||
mulxq %r15,%r11,%r12
|
||||
movq 8(%rsi),%rdx
|
||||
adcxq %rax,%r11
|
||||
movq %r14,(%rsp)
|
||||
adcxq %rdi,%r12
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r9
|
||||
adcxq %rbx,%r10
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adoxq %rax,%r10
|
||||
adcxq %rbx,%r11
|
||||
mulxq %r14,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %r15,%rax,%r13
|
||||
movq 16(%rsi),%rdx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rdi,%r13
|
||||
adoxq %rdi,%r13
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adcxq %rax,%r10
|
||||
adoxq %rbx,%r11
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adcxq %rax,%r11
|
||||
adoxq %rbx,%r12
|
||||
mulxq %r14,%rax,%rbx
|
||||
adcxq %rax,%r12
|
||||
adoxq %rbx,%r13
|
||||
mulxq %r15,%rax,%r14
|
||||
movq 24(%rsi),%rdx
|
||||
adcxq %rax,%r13
|
||||
adoxq %rdi,%r14
|
||||
adcxq %rdi,%r14
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rbx,%r13
|
||||
mulxq (%rsp),%rax,%rbx
|
||||
adoxq %rax,%r13
|
||||
adcxq %rbx,%r14
|
||||
mulxq %r15,%rax,%r15
|
||||
movl $38,%edx
|
||||
adoxq %rax,%r14
|
||||
adcxq %rdi,%r15
|
||||
adoxq %rdi,%r15
|
||||
|
||||
jmp .Lreduce64
|
||||
.Lfe64_mul_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe64_mul,.-x25519_fe64_mul
|
||||
|
||||
.globl x25519_fe64_sqr
|
||||
.type x25519_fe64_sqr,@function
|
||||
.align 32
|
||||
x25519_fe64_sqr:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
pushq %rdi
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rdi,-64
|
||||
leaq -16(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 16
|
||||
.Lfe64_sqr_body:
|
||||
|
||||
movq 0(%rsi),%rdx
|
||||
movq 8(%rsi),%rcx
|
||||
movq 16(%rsi),%rbp
|
||||
movq 24(%rsi),%rsi
|
||||
|
||||
|
||||
mulxq %rdx,%r8,%r15
|
||||
mulxq %rcx,%r9,%rax
|
||||
xorl %edi,%edi
|
||||
mulxq %rbp,%r10,%rbx
|
||||
adcxq %rax,%r10
|
||||
mulxq %rsi,%r11,%r12
|
||||
movq %rcx,%rdx
|
||||
adcxq %rbx,%r11
|
||||
adcxq %rdi,%r12
|
||||
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %rsi,%rax,%r13
|
||||
movq %rbp,%rdx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rdi,%r13
|
||||
|
||||
|
||||
mulxq %rsi,%rax,%r14
|
||||
movq %rcx,%rdx
|
||||
adoxq %rax,%r13
|
||||
adcxq %rdi,%r14
|
||||
adoxq %rdi,%r14
|
||||
|
||||
adcxq %r9,%r9
|
||||
adoxq %r15,%r9
|
||||
adcxq %r10,%r10
|
||||
mulxq %rdx,%rax,%rbx
|
||||
movq %rbp,%rdx
|
||||
adcxq %r11,%r11
|
||||
adoxq %rax,%r10
|
||||
adcxq %r12,%r12
|
||||
adoxq %rbx,%r11
|
||||
mulxq %rdx,%rax,%rbx
|
||||
movq %rsi,%rdx
|
||||
adcxq %r13,%r13
|
||||
adoxq %rax,%r12
|
||||
adcxq %r14,%r14
|
||||
adoxq %rbx,%r13
|
||||
mulxq %rdx,%rax,%r15
|
||||
movl $38,%edx
|
||||
adoxq %rax,%r14
|
||||
adcxq %rdi,%r15
|
||||
adoxq %rdi,%r15
|
||||
jmp .Lreduce64
|
||||
|
||||
.align 32
|
||||
.Lreduce64:
|
||||
mulxq %r12,%rax,%rbx
|
||||
adcxq %rax,%r8
|
||||
adoxq %rbx,%r9
|
||||
mulxq %r13,%rax,%rbx
|
||||
adcxq %rax,%r9
|
||||
adoxq %rbx,%r10
|
||||
mulxq %r14,%rax,%rbx
|
||||
adcxq %rax,%r10
|
||||
adoxq %rbx,%r11
|
||||
mulxq %r15,%rax,%r12
|
||||
adcxq %rax,%r11
|
||||
adoxq %rdi,%r12
|
||||
adcxq %rdi,%r12
|
||||
|
||||
movq 16(%rsp),%rdi
|
||||
imulq %rdx,%r12
|
||||
|
||||
addq %r12,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
movq 24(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 32(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 40(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 48(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 56(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 64(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq 72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 88
|
||||
.Lfe64_sqr_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size x25519_fe64_sqr,.-x25519_fe64_sqr
|
||||
|
||||
.globl x25519_fe64_mul121666
|
||||
.type x25519_fe64_mul121666,@function
|
||||
.align 32
|
||||
x25519_fe64_mul121666:
|
||||
.Lfe64_mul121666_body:
|
||||
movl $121666,%edx
|
||||
mulxq 0(%rsi),%r8,%rcx
|
||||
mulxq 8(%rsi),%r9,%rax
|
||||
addq %rcx,%r9
|
||||
mulxq 16(%rsi),%r10,%rcx
|
||||
adcq %rax,%r10
|
||||
mulxq 24(%rsi),%r11,%rax
|
||||
adcq %rcx,%r11
|
||||
adcq $0,%rax
|
||||
|
||||
imulq $38,%rax,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_mul121666_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_mul121666,.-x25519_fe64_mul121666
|
||||
|
||||
.globl x25519_fe64_add
|
||||
.type x25519_fe64_add,@function
|
||||
.align 32
|
||||
x25519_fe64_add:
|
||||
.Lfe64_add_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
addq 0(%rdx),%r8
|
||||
adcq 8(%rdx),%r9
|
||||
adcq 16(%rdx),%r10
|
||||
adcq 24(%rdx),%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
movq %r9,8(%rdi)
|
||||
adcq $0,%r11
|
||||
movq %r10,16(%rdi)
|
||||
sbbq %rax,%rax
|
||||
movq %r11,24(%rdi)
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_add_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_add,.-x25519_fe64_add
|
||||
|
||||
.globl x25519_fe64_sub
|
||||
.type x25519_fe64_sub,@function
|
||||
.align 32
|
||||
x25519_fe64_sub:
|
||||
.Lfe64_sub_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
subq 0(%rdx),%r8
|
||||
sbbq 8(%rdx),%r9
|
||||
sbbq 16(%rdx),%r10
|
||||
sbbq 24(%rdx),%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
sbbq $0,%r9
|
||||
sbbq $0,%r10
|
||||
movq %r9,8(%rdi)
|
||||
sbbq $0,%r11
|
||||
movq %r10,16(%rdi)
|
||||
sbbq %rax,%rax
|
||||
movq %r11,24(%rdi)
|
||||
andq $38,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_sub_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_sub,.-x25519_fe64_sub
|
||||
|
||||
.globl x25519_fe64_tobytes
|
||||
.type x25519_fe64_tobytes,@function
|
||||
.align 32
|
||||
x25519_fe64_tobytes:
|
||||
.Lfe64_to_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
|
||||
leaq (%r11,%r11,1),%rax
|
||||
sarq $63,%r11
|
||||
shrq $1,%rax
|
||||
andq $19,%r11
|
||||
addq $19,%r11
|
||||
|
||||
addq %r11,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%rax
|
||||
|
||||
leaq (%rax,%rax,1),%r11
|
||||
sarq $63,%rax
|
||||
shrq $1,%r11
|
||||
notq %rax
|
||||
andq $19,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
sbbq $0,%r9
|
||||
sbbq $0,%r10
|
||||
sbbq $0,%r11
|
||||
|
||||
movq %r8,0(%rdi)
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
|
||||
.Lfe64_to_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_tobytes,.-x25519_fe64_tobytes
|
||||
.byte 88,50,53,53,49,57,32,112,114,105,109,105,116,105,118,101,115,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
+4
-1
@@ -1,7 +1,7 @@
|
||||
/* WARNING: do not edit! */
|
||||
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
|
||||
/*
|
||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -12,5 +12,8 @@
|
||||
#ifndef HEADER_DSO_CONF_H
|
||||
# define HEADER_DSO_CONF_H
|
||||
|
||||
# define DSO_DLFCN
|
||||
# define HAVE_DLFCN_H
|
||||
# define DSO_EXTENSION ".so"
|
||||
|
||||
#endif
|
||||
@@ -4,11 +4,22 @@
|
||||
.globl md5_block_asm_data_order
|
||||
.type md5_block_asm_data_order,@function
|
||||
md5_block_asm_data_order:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-40
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-48
|
||||
.Lprologue:
|
||||
|
||||
|
||||
@@ -655,11 +666,18 @@ md5_block_asm_data_order:
|
||||
movl %edx,12(%rbp)
|
||||
|
||||
movq (%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 24(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 32(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
addq $40,%rsp
|
||||
.cfi_adjust_cfa_offset -40
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size md5_block_asm_data_order,.-md5_block_asm_data_order
|
||||
@@ -31,23 +31,6 @@ _aesni_ctr32_ghash_6x:
|
||||
vpxor %xmm15,%xmm12,%xmm12
|
||||
vmovups 16-128(%rcx),%xmm2
|
||||
vpclmulqdq $0x01,%xmm3,%xmm7,%xmm6
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
xorq %r12,%r12
|
||||
cmpq %r14,%r15
|
||||
|
||||
@@ -332,20 +315,25 @@ _aesni_ctr32_ghash_6x:
|
||||
.type aesni_gcm_decrypt,@function
|
||||
.align 32
|
||||
aesni_gcm_decrypt:
|
||||
.cfi_startproc
|
||||
xorq %r10,%r10
|
||||
|
||||
|
||||
|
||||
cmpq $0x60,%rdx
|
||||
jb .Lgcm_dec_abort
|
||||
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
vzeroupper
|
||||
|
||||
vmovdqu (%r8),%xmm1
|
||||
@@ -374,15 +362,7 @@ aesni_gcm_decrypt:
|
||||
vmovdqu 80(%rdi),%xmm7
|
||||
leaq (%rdi),%r14
|
||||
vmovdqu 64(%rdi),%xmm4
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
leaq -192(%rdi,%rdx,1),%r15
|
||||
|
||||
vmovdqu 48(%rdi),%xmm5
|
||||
shrq $4,%rdx
|
||||
xorq %r10,%r10
|
||||
@@ -415,15 +395,23 @@ aesni_gcm_decrypt:
|
||||
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lgcm_dec_abort:
|
||||
movq %r10,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_gcm_decrypt,.-aesni_gcm_decrypt
|
||||
.type _aesni_ctr32_6x,@function
|
||||
.align 32
|
||||
@@ -520,21 +508,25 @@ _aesni_ctr32_6x:
|
||||
.type aesni_gcm_encrypt,@function
|
||||
.align 32
|
||||
aesni_gcm_encrypt:
|
||||
.cfi_startproc
|
||||
xorq %r10,%r10
|
||||
|
||||
|
||||
|
||||
|
||||
cmpq $288,%rdx
|
||||
jb .Lgcm_enc_abort
|
||||
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
vzeroupper
|
||||
|
||||
vmovdqu (%r8),%xmm1
|
||||
@@ -558,16 +550,7 @@ aesni_gcm_encrypt:
|
||||
.Lenc_no_key_aliasing:
|
||||
|
||||
leaq (%rsi),%r14
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
leaq -192(%rsi,%rdx,1),%r15
|
||||
|
||||
shrq $4,%rdx
|
||||
|
||||
call _aesni_ctr32_6x
|
||||
@@ -769,15 +752,23 @@ aesni_gcm_encrypt:
|
||||
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lgcm_enc_abort:
|
||||
movq %r10,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_gcm_encrypt,.-aesni_gcm_encrypt
|
||||
.align 64
|
||||
.Lbswap_mask:
|
||||
|
||||
@@ -5,9 +5,27 @@
|
||||
.type gcm_gmult_4bit,@function
|
||||
.align 16
|
||||
gcm_gmult_4bit:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
subq $280,%rsp
|
||||
.cfi_adjust_cfa_offset 280
|
||||
.Lgmult_prologue:
|
||||
|
||||
movzbq 15(%rdi),%r8
|
||||
@@ -84,22 +102,41 @@ gcm_gmult_4bit:
|
||||
movq %r8,8(%rdi)
|
||||
movq %r9,(%rdi)
|
||||
|
||||
movq 16(%rsp),%rbx
|
||||
leaq 24(%rsp),%rsp
|
||||
leaq 280+48(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lgmult_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size gcm_gmult_4bit,.-gcm_gmult_4bit
|
||||
.globl gcm_ghash_4bit
|
||||
.type gcm_ghash_4bit,@function
|
||||
.align 16
|
||||
gcm_ghash_4bit:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
subq $280,%rsp
|
||||
.cfi_adjust_cfa_offset 280
|
||||
.Lghash_prologue:
|
||||
movq %rdx,%r14
|
||||
movq %rcx,%r15
|
||||
@@ -644,16 +681,25 @@ gcm_ghash_4bit:
|
||||
movq %r8,8(%rdi)
|
||||
movq %r9,(%rdi)
|
||||
|
||||
leaq 280(%rsp),%rsi
|
||||
movq 0(%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
leaq 280+48(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 0(%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lghash_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size gcm_ghash_4bit,.-gcm_ghash_4bit
|
||||
.globl gcm_init_clmul
|
||||
.type gcm_init_clmul,@function
|
||||
|
||||
+1762
-30
File diff suppressed because it is too large.
Load diff
@@ -4,15 +4,29 @@
|
||||
.globl rc4_md5_enc
|
||||
.type rc4_md5_enc,@function
|
||||
rc4_md5_enc:
|
||||
.cfi_startproc
|
||||
cmpq $0,%r9
|
||||
je .Labort
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
subq $40,%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lbody:
|
||||
movq %rcx,%r11
|
||||
movq %r9,%r12
|
||||
@@ -1247,13 +1261,21 @@ rc4_md5_enc:
|
||||
movl %ecx,-4(%rdi)
|
||||
|
||||
movq 40(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 48(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 56(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 64(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 72(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 80(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 88(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -88
|
||||
.Lepilogue:
|
||||
.Labort:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size rc4_md5_enc,.-rc4_md5_enc
|
||||
@@ -8,9 +8,16 @@ RC4: orq %rsi,%rsi
|
||||
jne .Lentry
|
||||
.byte 0xf3,0xc3
|
||||
.Lentry:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-24
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-32
|
||||
.Lprologue:
|
||||
movq %rsi,%r11
|
||||
movq %rdx,%r12
|
||||
@@ -511,11 +518,16 @@ RC4: orq %rsi,%rsi
|
||||
movl %ecx,-4(%rdi)
|
||||
|
||||
movq (%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 8(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 16(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
addq $24,%rsp
|
||||
.cfi_adjust_cfa_offset -24
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size RC4,.-RC4
|
||||
.globl RC4_set_key
|
||||
.type RC4_set_key,@function
|
||||
|
||||
@@ -0,0 +1,522 @@
|
||||
.text
|
||||
|
||||
.type __KeccakF1600,@function
|
||||
.align 32
|
||||
__KeccakF1600:
|
||||
movq 60(%rdi),%rax
|
||||
movq 68(%rdi),%rbx
|
||||
movq 76(%rdi),%rcx
|
||||
movq 84(%rdi),%rdx
|
||||
movq 92(%rdi),%rbp
|
||||
jmp .Loop
|
||||
|
||||
.align 32
|
||||
.Loop:
|
||||
movq -100(%rdi),%r8
|
||||
movq -52(%rdi),%r9
|
||||
movq -4(%rdi),%r10
|
||||
movq 44(%rdi),%r11
|
||||
|
||||
xorq -84(%rdi),%rcx
|
||||
xorq -76(%rdi),%rdx
|
||||
xorq %r8,%rax
|
||||
xorq -92(%rdi),%rbx
|
||||
xorq -44(%rdi),%rcx
|
||||
xorq -60(%rdi),%rax
|
||||
movq %rbp,%r12
|
||||
xorq -68(%rdi),%rbp
|
||||
|
||||
xorq %r10,%rcx
|
||||
xorq -20(%rdi),%rax
|
||||
xorq -36(%rdi),%rdx
|
||||
xorq %r9,%rbx
|
||||
xorq -28(%rdi),%rbp
|
||||
|
||||
xorq 36(%rdi),%rcx
|
||||
xorq 20(%rdi),%rax
|
||||
xorq 4(%rdi),%rdx
|
||||
xorq -12(%rdi),%rbx
|
||||
xorq 12(%rdi),%rbp
|
||||
|
||||
movq %rcx,%r13
|
||||
rolq $1,%rcx
|
||||
xorq %rax,%rcx
|
||||
xorq %r11,%rdx
|
||||
|
||||
rolq $1,%rax
|
||||
xorq %rdx,%rax
|
||||
xorq 28(%rdi),%rbx
|
||||
|
||||
rolq $1,%rdx
|
||||
xorq %rbx,%rdx
|
||||
xorq 52(%rdi),%rbp
|
||||
|
||||
rolq $1,%rbx
|
||||
xorq %rbp,%rbx
|
||||
|
||||
rolq $1,%rbp
|
||||
xorq %r13,%rbp
|
||||
xorq %rcx,%r9
|
||||
xorq %rdx,%r10
|
||||
rolq $44,%r9
|
||||
xorq %rbp,%r11
|
||||
xorq %rax,%r12
|
||||
rolq $43,%r10
|
||||
xorq %rbx,%r8
|
||||
movq %r9,%r13
|
||||
rolq $21,%r11
|
||||
orq %r10,%r9
|
||||
xorq %r8,%r9
|
||||
rolq $14,%r12
|
||||
|
||||
xorq (%r15),%r9
|
||||
leaq 8(%r15),%r15
|
||||
|
||||
movq %r12,%r14
|
||||
andq %r11,%r12
|
||||
movq %r9,-100(%rsi)
|
||||
xorq %r10,%r12
|
||||
notq %r10
|
||||
movq %r12,-84(%rsi)
|
||||
|
||||
orq %r11,%r10
|
||||
movq 76(%rdi),%r12
|
||||
xorq %r13,%r10
|
||||
movq %r10,-92(%rsi)
|
||||
|
||||
andq %r8,%r13
|
||||
movq -28(%rdi),%r9
|
||||
xorq %r14,%r13
|
||||
movq -20(%rdi),%r10
|
||||
movq %r13,-68(%rsi)
|
||||
|
||||
orq %r8,%r14
|
||||
movq -76(%rdi),%r8
|
||||
xorq %r11,%r14
|
||||
movq 28(%rdi),%r11
|
||||
movq %r14,-76(%rsi)
|
||||
|
||||
|
||||
xorq %rbp,%r8
|
||||
xorq %rdx,%r12
|
||||
rolq $28,%r8
|
||||
xorq %rcx,%r11
|
||||
xorq %rax,%r9
|
||||
rolq $61,%r12
|
||||
rolq $45,%r11
|
||||
xorq %rbx,%r10
|
||||
rolq $20,%r9
|
||||
movq %r8,%r13
|
||||
orq %r12,%r8
|
||||
rolq $3,%r10
|
||||
|
||||
xorq %r11,%r8
|
||||
movq %r8,-36(%rsi)
|
||||
|
||||
movq %r9,%r14
|
||||
andq %r13,%r9
|
||||
movq -92(%rdi),%r8
|
||||
xorq %r12,%r9
|
||||
notq %r12
|
||||
movq %r9,-28(%rsi)
|
||||
|
||||
orq %r11,%r12
|
||||
movq -44(%rdi),%r9
|
||||
xorq %r10,%r12
|
||||
movq %r12,-44(%rsi)
|
||||
|
||||
andq %r10,%r11
|
||||
movq 60(%rdi),%r12
|
||||
xorq %r14,%r11
|
||||
movq %r11,-52(%rsi)
|
||||
|
||||
orq %r10,%r14
|
||||
movq 4(%rdi),%r10
|
||||
xorq %r13,%r14
|
||||
movq 52(%rdi),%r11
|
||||
movq %r14,-60(%rsi)
|
||||
|
||||
|
||||
xorq %rbp,%r10
|
||||
xorq %rax,%r11
|
||||
rolq $25,%r10
|
||||
xorq %rdx,%r9
|
||||
rolq $8,%r11
|
||||
xorq %rbx,%r12
|
||||
rolq $6,%r9
|
||||
xorq %rcx,%r8
|
||||
rolq $18,%r12
|
||||
movq %r10,%r13
|
||||
andq %r11,%r10
|
||||
rolq $1,%r8
|
||||
|
||||
notq %r11
|
||||
xorq %r9,%r10
|
||||
movq %r10,-12(%rsi)
|
||||
|
||||
movq %r12,%r14
|
||||
andq %r11,%r12
|
||||
movq -12(%rdi),%r10
|
||||
xorq %r13,%r12
|
||||
movq %r12,-4(%rsi)
|
||||
|
||||
orq %r9,%r13
|
||||
movq 84(%rdi),%r12
|
||||
xorq %r8,%r13
|
||||
movq %r13,-20(%rsi)
|
||||
|
||||
andq %r8,%r9
|
||||
xorq %r14,%r9
|
||||
movq %r9,12(%rsi)
|
||||
|
||||
orq %r8,%r14
|
||||
movq -60(%rdi),%r9
|
||||
xorq %r11,%r14
|
||||
movq 36(%rdi),%r11
|
||||
movq %r14,4(%rsi)
|
||||
|
||||
|
||||
movq -68(%rdi),%r8
|
||||
|
||||
xorq %rcx,%r10
|
||||
xorq %rdx,%r11
|
||||
rolq $10,%r10
|
||||
xorq %rbx,%r9
|
||||
rolq $15,%r11
|
||||
xorq %rbp,%r12
|
||||
rolq $36,%r9
|
||||
xorq %rax,%r8
|
||||
rolq $56,%r12
|
||||
movq %r10,%r13
|
||||
orq %r11,%r10
|
||||
rolq $27,%r8
|
||||
|
||||
notq %r11
|
||||
xorq %r9,%r10
|
||||
movq %r10,28(%rsi)
|
||||
|
||||
movq %r12,%r14
|
||||
orq %r11,%r12
|
||||
xorq %r13,%r12
|
||||
movq %r12,36(%rsi)
|
||||
|
||||
andq %r9,%r13
|
||||
xorq %r8,%r13
|
||||
movq %r13,20(%rsi)
|
||||
|
||||
orq %r8,%r9
|
||||
xorq %r14,%r9
|
||||
movq %r9,52(%rsi)
|
||||
|
||||
andq %r14,%r8
|
||||
xorq %r11,%r8
|
||||
movq %r8,44(%rsi)
|
||||
|
||||
|
||||
xorq -84(%rdi),%rdx
|
||||
xorq -36(%rdi),%rbp
|
||||
rolq $62,%rdx
|
||||
xorq 68(%rdi),%rcx
|
||||
rolq $55,%rbp
|
||||
xorq 12(%rdi),%rax
|
||||
rolq $2,%rcx
|
||||
xorq 20(%rdi),%rbx
|
||||
xchgq %rsi,%rdi
|
||||
rolq $39,%rax
|
||||
rolq $41,%rbx
|
||||
movq %rdx,%r13
|
||||
andq %rbp,%rdx
|
||||
notq %rbp
|
||||
xorq %rcx,%rdx
|
||||
movq %rdx,92(%rdi)
|
||||
|
||||
movq %rax,%r14
|
||||
andq %rbp,%rax
|
||||
xorq %r13,%rax
|
||||
movq %rax,60(%rdi)
|
||||
|
||||
orq %rcx,%r13
|
||||
xorq %rbx,%r13
|
||||
movq %r13,84(%rdi)
|
||||
|
||||
andq %rbx,%rcx
|
||||
xorq %r14,%rcx
|
||||
movq %rcx,76(%rdi)
|
||||
|
||||
orq %r14,%rbx
|
||||
xorq %rbp,%rbx
|
||||
movq %rbx,68(%rdi)
|
||||
|
||||
movq %rdx,%rbp
|
||||
movq %r13,%rdx
|
||||
|
||||
testq $255,%r15
|
||||
jnz .Loop
|
||||
|
||||
leaq -192(%r15),%r15
|
||||
.byte 0xf3,0xc3
|
||||
.size __KeccakF1600,.-__KeccakF1600
|
||||
|
||||
.type KeccakF1600,@function
|
||||
.align 32
|
||||
KeccakF1600:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
leaq 100(%rdi),%rdi
|
||||
subq $200,%rsp
|
||||
.cfi_adjust_cfa_offset 200
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
|
||||
leaq iotas(%rip),%r15
|
||||
leaq 100(%rsp),%rsi
|
||||
|
||||
call __KeccakF1600
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
leaq -100(%rdi),%rdi
|
||||
|
||||
addq $200,%rsp
|
||||
.cfi_adjust_cfa_offset -200
|
||||
|
||||
popq %r15
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r15
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r12
|
||||
popq %rbp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbp
|
||||
popq %rbx
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbx
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size KeccakF1600,.-KeccakF1600
|
||||
.globl SHA3_absorb
|
||||
.type SHA3_absorb,@function
|
||||
.align 32
|
||||
SHA3_absorb:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
leaq 100(%rdi),%rdi
|
||||
subq $232,%rsp
|
||||
.cfi_adjust_cfa_offset 232
|
||||
|
||||
movq %rsi,%r9
|
||||
leaq 100(%rsp),%rsi
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
leaq iotas(%rip),%r15
|
||||
|
||||
movq %rcx,216-100(%rsi)
|
||||
|
||||
.Loop_absorb:
|
||||
cmpq %rcx,%rdx
|
||||
jc .Ldone_absorb
|
||||
|
||||
shrq $3,%rcx
|
||||
leaq -100(%rdi),%r8
|
||||
|
||||
.Lblock_absorb:
|
||||
movq (%r9),%rax
|
||||
leaq 8(%r9),%r9
|
||||
xorq (%r8),%rax
|
||||
leaq 8(%r8),%r8
|
||||
subq $8,%rdx
|
||||
movq %rax,-8(%r8)
|
||||
subq $1,%rcx
|
||||
jnz .Lblock_absorb
|
||||
|
||||
movq %r9,200-100(%rsi)
|
||||
movq %rdx,208-100(%rsi)
|
||||
call __KeccakF1600
|
||||
movq 200-100(%rsi),%r9
|
||||
movq 208-100(%rsi),%rdx
|
||||
movq 216-100(%rsi),%rcx
|
||||
jmp .Loop_absorb
|
||||
|
||||
.align 32
|
||||
.Ldone_absorb:
|
||||
movq %rdx,%rax
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
|
||||
addq $232,%rsp
|
||||
.cfi_adjust_cfa_offset -232
|
||||
|
||||
popq %r15
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r15
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r12
|
||||
popq %rbp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbp
|
||||
popq %rbx
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbx
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size SHA3_absorb,.-SHA3_absorb
|
||||
.globl SHA3_squeeze
|
||||
.type SHA3_squeeze,@function
|
||||
.align 32
|
||||
SHA3_squeeze:
|
||||
.cfi_startproc
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-16
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-24
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-32
|
||||
|
||||
shrq $3,%rcx
|
||||
movq %rdi,%r8
|
||||
movq %rsi,%r12
|
||||
movq %rdx,%r13
|
||||
movq %rcx,%r14
|
||||
jmp .Loop_squeeze
|
||||
|
||||
.align 32
|
||||
.Loop_squeeze:
|
||||
cmpq $8,%r13
|
||||
jb .Ltail_squeeze
|
||||
|
||||
movq (%r8),%rax
|
||||
leaq 8(%r8),%r8
|
||||
movq %rax,(%r12)
|
||||
leaq 8(%r12),%r12
|
||||
subq $8,%r13
|
||||
jz .Ldone_squeeze
|
||||
|
||||
subq $1,%rcx
|
||||
jnz .Loop_squeeze
|
||||
|
||||
call KeccakF1600
|
||||
movq %rdi,%r8
|
||||
movq %r14,%rcx
|
||||
jmp .Loop_squeeze
|
||||
|
||||
.Ltail_squeeze:
|
||||
movq %r8,%rsi
|
||||
movq %r12,%rdi
|
||||
movq %r13,%rcx
|
||||
.byte 0xf3,0xa4
|
||||
|
||||
.Ldone_squeeze:
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size SHA3_squeeze,.-SHA3_squeeze
|
||||
.align 256
|
||||
.quad 0,0,0,0,0,0,0,0
|
||||
.type iotas,@object
|
||||
iotas:
|
||||
.quad 0x0000000000000001
|
||||
.quad 0x0000000000008082
|
||||
.quad 0x800000000000808a
|
||||
.quad 0x8000000080008000
|
||||
.quad 0x000000000000808b
|
||||
.quad 0x0000000080000001
|
||||
.quad 0x8000000080008081
|
||||
.quad 0x8000000000008009
|
||||
.quad 0x000000000000008a
|
||||
.quad 0x0000000000000088
|
||||
.quad 0x0000000080008009
|
||||
.quad 0x000000008000000a
|
||||
.quad 0x000000008000808b
|
||||
.quad 0x800000000000008b
|
||||
.quad 0x8000000000008089
|
||||
.quad 0x8000000000008003
|
||||
.quad 0x8000000000008002
|
||||
.quad 0x8000000000000080
|
||||
.quad 0x000000000000800a
|
||||
.quad 0x800000008000000a
|
||||
.quad 0x8000000080008081
|
||||
.quad 0x8000000000008080
|
||||
.quad 0x0000000080000001
|
||||
.quad 0x8000000080008008
|
||||
.size iotas,.-iotas
|
||||
.byte 75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
@@ -6,17 +6,22 @@
|
||||
.type sha1_multi_block,@function
|
||||
.align 32
|
||||
sha1_multi_block:
|
||||
.cfi_startproc
|
||||
movq OPENSSL_ia32cap_P+4(%rip),%rcx
|
||||
btq $61,%rcx
|
||||
jc _shaext_shortcut
|
||||
testl $268435456,%ecx
|
||||
jnz _avx_shortcut
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbx,-24
|
||||
subq $288,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,272(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x90,0x02,0x06,0x23,0x08
|
||||
.Lbody:
|
||||
leaq K_XX_XX(%rip),%rbp
|
||||
leaq 256(%rsp),%rbx
|
||||
@@ -2546,19 +2551,28 @@ sha1_multi_block:
|
||||
|
||||
.Ldone:
|
||||
movq 272(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_multi_block,.-sha1_multi_block
|
||||
.type sha1_multi_block_shaext,@function
|
||||
.align 32
|
||||
sha1_multi_block_shaext:
|
||||
.cfi_startproc
|
||||
_shaext_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
subq $288,%rsp
|
||||
shll $1,%edx
|
||||
andq $-256,%rsp
|
||||
@@ -2914,14 +2928,19 @@ _shaext_shortcut:
|
||||
.Ldone_shaext:
|
||||
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_shaext:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_multi_block_shaext,.-sha1_multi_block_shaext
|
||||
.type sha1_multi_block_avx,@function
|
||||
.align 32
|
||||
sha1_multi_block_avx:
|
||||
.cfi_startproc
|
||||
_avx_shortcut:
|
||||
shrq $32,%rcx
|
||||
cmpl $2,%edx
|
||||
@@ -2932,11 +2951,15 @@ _avx_shortcut:
|
||||
.align 32
|
||||
.Lavx:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
subq $288,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,272(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x90,0x02,0x06,0x23,0x08
|
||||
.Lbody_avx:
|
||||
leaq K_XX_XX(%rip),%rbp
|
||||
leaq 256(%rsp),%rbx
|
||||
@@ -4986,27 +5009,41 @@ _avx_shortcut:
|
||||
|
||||
.Ldone_avx:
|
||||
movq 272(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
vzeroupper
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_multi_block_avx,.-sha1_multi_block_avx
|
||||
.type sha1_multi_block_avx2,@function
|
||||
.align 32
|
||||
sha1_multi_block_avx2:
|
||||
.cfi_startproc
|
||||
_avx2_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
subq $576,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,544(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xa0,0x04,0x06,0x23,0x08
|
||||
.Lbody_avx2:
|
||||
leaq K_XX_XX(%rip),%rbp
|
||||
shrl $1,%edx
|
||||
@@ -7193,16 +7230,25 @@ _avx2_shortcut:
|
||||
|
||||
.Ldone_avx2:
|
||||
movq 544(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_multi_block_avx2,.-sha1_multi_block_avx2
|
||||
|
||||
.align 256
|
||||
|
||||
+109
-55
@@ -5,6 +5,7 @@
|
||||
.type sha1_block_data_order,@function
|
||||
.align 16
|
||||
sha1_block_data_order:
|
||||
.cfi_startproc
|
||||
movl OPENSSL_ia32cap_P+0(%rip),%r9d
|
||||
movl OPENSSL_ia32cap_P+4(%rip),%r8d
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%r10d
|
||||
@@ -25,17 +26,24 @@ sha1_block_data_order:
|
||||
.align 16
|
||||
.Lialu:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
movq %rdi,%r8
|
||||
subq $72,%rsp
|
||||
movq %rsi,%r9
|
||||
andq $-64,%rsp
|
||||
movq %rdx,%r10
|
||||
movq %rax,64(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xc0,0x00,0x06,0x23,0x08
|
||||
.Lprologue:
|
||||
|
||||
movl 0(%r8),%esi
|
||||
@@ -1230,19 +1238,28 @@ sha1_block_data_order:
|
||||
jnz .Lloop
|
||||
|
||||
movq 64(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_block_data_order,.-sha1_block_data_order
|
||||
.type sha1_block_data_order_shaext,@function
|
||||
.align 32
|
||||
sha1_block_data_order_shaext:
|
||||
_shaext_shortcut:
|
||||
.cfi_startproc
|
||||
movdqu (%rdi),%xmm0
|
||||
movd 16(%rdi),%xmm1
|
||||
movdqa K_XX_XX+160(%rip),%xmm3
|
||||
@@ -1404,20 +1421,27 @@ _shaext_shortcut:
|
||||
pshufd $27,%xmm1,%xmm1
|
||||
movdqu %xmm0,(%rdi)
|
||||
movd %xmm1,16(%rdi)
|
||||
.cfi_endproc
|
||||
.byte 0xf3,0xc3
|
||||
.size sha1_block_data_order_shaext,.-sha1_block_data_order_shaext
|
||||
.type sha1_block_data_order_ssse3,@function
|
||||
.align 16
|
||||
sha1_block_data_order_ssse3:
|
||||
_ssse3_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_startproc
|
||||
movq %rsp,%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
leaq -64(%rsp),%rsp
|
||||
movq %rax,%r14
|
||||
andq $-64,%rsp
|
||||
movq %rdi,%r8
|
||||
movq %rsi,%r9
|
||||
@@ -1425,7 +1449,7 @@ _ssse3_shortcut:
|
||||
|
||||
shlq $6,%r10
|
||||
addq %r9,%r10
|
||||
leaq K_XX_XX+64(%rip),%r11
|
||||
leaq K_XX_XX+64(%rip),%r14
|
||||
|
||||
movl 0(%r8),%eax
|
||||
movl 4(%r8),%ebx
|
||||
@@ -1437,8 +1461,8 @@ _ssse3_shortcut:
|
||||
xorl %edx,%edi
|
||||
andl %edi,%esi
|
||||
|
||||
movdqa 64(%r11),%xmm6
|
||||
movdqa -64(%r11),%xmm9
|
||||
movdqa 64(%r14),%xmm6
|
||||
movdqa -64(%r14),%xmm9
|
||||
movdqu 0(%r9),%xmm0
|
||||
movdqu 16(%r9),%xmm1
|
||||
movdqu 32(%r9),%xmm2
|
||||
@@ -1514,7 +1538,7 @@ _ssse3_shortcut:
|
||||
pslld $2,%xmm9
|
||||
pxor %xmm10,%xmm4
|
||||
xorl %ebp,%edx
|
||||
movdqa -64(%r11),%xmm10
|
||||
movdqa -64(%r14),%xmm10
|
||||
roll $5,%ecx
|
||||
addl %edi,%ebx
|
||||
andl %edx,%esi
|
||||
@@ -1575,7 +1599,7 @@ _ssse3_shortcut:
|
||||
pslld $2,%xmm10
|
||||
pxor %xmm8,%xmm5
|
||||
xorl %eax,%ebp
|
||||
movdqa -32(%r11),%xmm8
|
||||
movdqa -32(%r14),%xmm8
|
||||
roll $5,%edx
|
||||
addl %edi,%ecx
|
||||
andl %ebp,%esi
|
||||
@@ -1636,7 +1660,7 @@ _ssse3_shortcut:
|
||||
pslld $2,%xmm8
|
||||
pxor %xmm9,%xmm6
|
||||
xorl %ebx,%eax
|
||||
movdqa -32(%r11),%xmm9
|
||||
movdqa -32(%r14),%xmm9
|
||||
roll $5,%ebp
|
||||
addl %edi,%edx
|
||||
andl %eax,%esi
|
||||
@@ -1697,7 +1721,7 @@ _ssse3_shortcut:
|
||||
pslld $2,%xmm9
|
||||
pxor %xmm10,%xmm7
|
||||
xorl %ecx,%ebx
|
||||
movdqa -32(%r11),%xmm10
|
||||
movdqa -32(%r14),%xmm10
|
||||
roll $5,%eax
|
||||
addl %edi,%ebp
|
||||
andl %ebx,%esi
|
||||
@@ -1808,7 +1832,7 @@ _ssse3_shortcut:
|
||||
pxor %xmm3,%xmm2
|
||||
addl %esi,%eax
|
||||
xorl %edx,%edi
|
||||
movdqa 0(%r11),%xmm10
|
||||
movdqa 0(%r14),%xmm10
|
||||
rorl $7,%ecx
|
||||
paddd %xmm1,%xmm9
|
||||
addl %ebx,%eax
|
||||
@@ -2043,7 +2067,7 @@ _ssse3_shortcut:
|
||||
pxor %xmm0,%xmm7
|
||||
roll $5,%ebx
|
||||
addl %esi,%eax
|
||||
movdqa 32(%r11),%xmm9
|
||||
movdqa 32(%r14),%xmm9
|
||||
xorl %ecx,%edi
|
||||
paddd %xmm6,%xmm8
|
||||
xorl %edx,%ecx
|
||||
@@ -2334,8 +2358,8 @@ _ssse3_shortcut:
|
||||
addl %edx,%ecx
|
||||
cmpq %r10,%r9
|
||||
je .Ldone_ssse3
|
||||
movdqa 64(%r11),%xmm6
|
||||
movdqa -64(%r11),%xmm9
|
||||
movdqa 64(%r14),%xmm6
|
||||
movdqa -64(%r14),%xmm9
|
||||
movdqu 0(%r9),%xmm0
|
||||
movdqu 16(%r9),%xmm1
|
||||
movdqu 32(%r9),%xmm2
|
||||
@@ -2572,29 +2596,41 @@ _ssse3_shortcut:
|
||||
movl %ecx,8(%r8)
|
||||
movl %edx,12(%r8)
|
||||
movl %ebp,16(%r8)
|
||||
leaq (%r14),%rsi
|
||||
movq -40(%rsi),%r14
|
||||
movq -32(%rsi),%r13
|
||||
movq -24(%rsi),%r12
|
||||
movq -16(%rsi),%rbp
|
||||
movq -8(%rsi),%rbx
|
||||
leaq (%rsi),%rsp
|
||||
movq -40(%r11),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%r11),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%r11),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%r11),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_ssse3:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_block_data_order_ssse3,.-sha1_block_data_order_ssse3
|
||||
.type sha1_block_data_order_avx,@function
|
||||
.align 16
|
||||
sha1_block_data_order_avx:
|
||||
_avx_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_startproc
|
||||
movq %rsp,%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
leaq -64(%rsp),%rsp
|
||||
vzeroupper
|
||||
movq %rax,%r14
|
||||
andq $-64,%rsp
|
||||
movq %rdi,%r8
|
||||
movq %rsi,%r9
|
||||
@@ -2602,7 +2638,7 @@ _avx_shortcut:
|
||||
|
||||
shlq $6,%r10
|
||||
addq %r9,%r10
|
||||
leaq K_XX_XX+64(%rip),%r11
|
||||
leaq K_XX_XX+64(%rip),%r14
|
||||
|
||||
movl 0(%r8),%eax
|
||||
movl 4(%r8),%ebx
|
||||
@@ -2614,8 +2650,8 @@ _avx_shortcut:
|
||||
xorl %edx,%edi
|
||||
andl %edi,%esi
|
||||
|
||||
vmovdqa 64(%r11),%xmm6
|
||||
vmovdqa -64(%r11),%xmm11
|
||||
vmovdqa 64(%r14),%xmm6
|
||||
vmovdqa -64(%r14),%xmm11
|
||||
vmovdqu 0(%r9),%xmm0
|
||||
vmovdqu 16(%r9),%xmm1
|
||||
vmovdqu 32(%r9),%xmm2
|
||||
@@ -2740,7 +2776,7 @@ _avx_shortcut:
|
||||
vpxor %xmm10,%xmm5,%xmm5
|
||||
xorl %eax,%ebp
|
||||
shldl $5,%edx,%edx
|
||||
vmovdqa -32(%r11),%xmm11
|
||||
vmovdqa -32(%r14),%xmm11
|
||||
addl %edi,%ecx
|
||||
andl %ebp,%esi
|
||||
xorl %eax,%ebp
|
||||
@@ -2953,7 +2989,7 @@ _avx_shortcut:
|
||||
addl %esi,%eax
|
||||
xorl %edx,%edi
|
||||
vpaddd %xmm1,%xmm11,%xmm9
|
||||
vmovdqa 0(%r11),%xmm11
|
||||
vmovdqa 0(%r14),%xmm11
|
||||
shrdl $7,%ecx,%ecx
|
||||
addl %ebx,%eax
|
||||
vpxor %xmm8,%xmm2,%xmm2
|
||||
@@ -3172,7 +3208,7 @@ _avx_shortcut:
|
||||
movl %ebx,%edi
|
||||
xorl %edx,%esi
|
||||
vpaddd %xmm6,%xmm11,%xmm9
|
||||
vmovdqa 32(%r11),%xmm11
|
||||
vmovdqa 32(%r14),%xmm11
|
||||
shldl $5,%ebx,%ebx
|
||||
addl %esi,%eax
|
||||
vpxor %xmm8,%xmm7,%xmm7
|
||||
@@ -3451,8 +3487,8 @@ _avx_shortcut:
|
||||
addl %edx,%ecx
|
||||
cmpq %r10,%r9
|
||||
je .Ldone_avx
|
||||
vmovdqa 64(%r11),%xmm6
|
||||
vmovdqa -64(%r11),%xmm11
|
||||
vmovdqa 64(%r14),%xmm6
|
||||
vmovdqa -64(%r14),%xmm11
|
||||
vmovdqu 0(%r9),%xmm0
|
||||
vmovdqu 16(%r9),%xmm1
|
||||
vmovdqu 32(%r9),%xmm2
|
||||
@@ -3688,28 +3724,40 @@ _avx_shortcut:
|
||||
movl %ecx,8(%r8)
|
||||
movl %edx,12(%r8)
|
||||
movl %ebp,16(%r8)
|
||||
leaq (%r14),%rsi
|
||||
movq -40(%rsi),%r14
|
||||
movq -32(%rsi),%r13
|
||||
movq -24(%rsi),%r12
|
||||
movq -16(%rsi),%rbp
|
||||
movq -8(%rsi),%rbx
|
||||
leaq (%rsi),%rsp
|
||||
movq -40(%r11),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%r11),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%r11),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%r11),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_block_data_order_avx,.-sha1_block_data_order_avx
|
||||
.type sha1_block_data_order_avx2,@function
|
||||
.align 16
|
||||
sha1_block_data_order_avx2:
|
||||
_avx2_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_startproc
|
||||
movq %rsp,%r11
|
||||
.cfi_def_cfa_register %r11
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
vzeroupper
|
||||
movq %rax,%r14
|
||||
movq %rdi,%r8
|
||||
movq %rsi,%r9
|
||||
movq %rdx,%r10
|
||||
@@ -3719,7 +3767,7 @@ _avx2_shortcut:
|
||||
leaq 64(%r9),%r13
|
||||
andq $-128,%rsp
|
||||
addq %r9,%r10
|
||||
leaq K_XX_XX+64(%rip),%r11
|
||||
leaq K_XX_XX+64(%rip),%r14
|
||||
|
||||
movl 0(%r8),%eax
|
||||
cmpq %r10,%r13
|
||||
@@ -3728,7 +3776,7 @@ _avx2_shortcut:
|
||||
movl 8(%r8),%ecx
|
||||
movl 12(%r8),%edx
|
||||
movl 16(%r8),%esi
|
||||
vmovdqu 64(%r11),%ymm6
|
||||
vmovdqu 64(%r14),%ymm6
|
||||
|
||||
vmovdqu (%r9),%xmm0
|
||||
vmovdqu 16(%r9),%xmm1
|
||||
@@ -3742,7 +3790,7 @@ _avx2_shortcut:
|
||||
vpshufb %ymm6,%ymm1,%ymm1
|
||||
vinserti128 $1,48(%r13),%ymm3,%ymm3
|
||||
vpshufb %ymm6,%ymm2,%ymm2
|
||||
vmovdqu -64(%r11),%ymm11
|
||||
vmovdqu -64(%r14),%ymm11
|
||||
vpshufb %ymm6,%ymm3,%ymm3
|
||||
|
||||
vpaddd %ymm11,%ymm0,%ymm4
|
||||
@@ -3774,7 +3822,7 @@ _avx2_shortcut:
|
||||
vpxor %ymm3,%ymm8,%ymm8
|
||||
vpxor %ymm8,%ymm5,%ymm5
|
||||
vpsrld $31,%ymm5,%ymm8
|
||||
vmovdqu -32(%r11),%ymm11
|
||||
vmovdqu -32(%r14),%ymm11
|
||||
vpslldq $12,%ymm5,%ymm10
|
||||
vpaddd %ymm5,%ymm5,%ymm5
|
||||
vpsrld $30,%ymm10,%ymm9
|
||||
@@ -3928,7 +3976,7 @@ _avx2_shortcut:
|
||||
addl -56(%r13),%ebp
|
||||
andnl %esi,%ebx,%edi
|
||||
vpxor %ymm3,%ymm2,%ymm2
|
||||
vmovdqu 0(%r11),%ymm11
|
||||
vmovdqu 0(%r14),%ymm11
|
||||
addl %ecx,%ebp
|
||||
rorxl $27,%ebx,%r12d
|
||||
rorxl $2,%ebx,%ecx
|
||||
@@ -4159,7 +4207,7 @@ _avx2_shortcut:
|
||||
addl -116(%r13),%eax
|
||||
leal (%rax,%rbx,1),%eax
|
||||
vpxor %ymm0,%ymm7,%ymm7
|
||||
vmovdqu 32(%r11),%ymm11
|
||||
vmovdqu 32(%r14),%ymm11
|
||||
rorxl $27,%ebp,%r12d
|
||||
rorxl $2,%ebp,%ebx
|
||||
xorl %ecx,%ebp
|
||||
@@ -4604,7 +4652,7 @@ _avx2_shortcut:
|
||||
|
||||
cmpq %r10,%r9
|
||||
je .Ldone_avx2
|
||||
vmovdqu 64(%r11),%ymm6
|
||||
vmovdqu 64(%r14),%ymm6
|
||||
cmpq %r10,%rdi
|
||||
ja .Last_avx2
|
||||
|
||||
@@ -4820,7 +4868,7 @@ _avx2_shortcut:
|
||||
xorl %ebx,%eax
|
||||
addl %r12d,%esi
|
||||
xorl %ecx,%eax
|
||||
vmovdqu -64(%r11),%ymm11
|
||||
vmovdqu -64(%r14),%ymm11
|
||||
vpshufb %ymm6,%ymm0,%ymm0
|
||||
addl 68(%r13),%edx
|
||||
leal (%rdx,%rax,1),%edx
|
||||
@@ -5176,7 +5224,7 @@ _avx2_shortcut:
|
||||
xorl %ebp,%esi
|
||||
addl %r12d,%edx
|
||||
vpsrld $31,%ymm5,%ymm8
|
||||
vmovdqu -32(%r11),%ymm11
|
||||
vmovdqu -32(%r14),%ymm11
|
||||
xorl %ebx,%esi
|
||||
addl 104(%r13),%ecx
|
||||
leal (%rcx,%rsi,1),%ecx
|
||||
@@ -5369,15 +5417,21 @@ _avx2_shortcut:
|
||||
|
||||
.Ldone_avx2:
|
||||
vzeroupper
|
||||
leaq (%r14),%rsi
|
||||
movq -40(%rsi),%r14
|
||||
movq -32(%rsi),%r13
|
||||
movq -24(%rsi),%r12
|
||||
movq -16(%rsi),%rbp
|
||||
movq -8(%rsi),%rbx
|
||||
leaq (%rsi),%rsp
|
||||
movq -40(%r11),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%r11),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%r11),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%r11),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%r11),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%r11),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha1_block_data_order_avx2,.-sha1_block_data_order_avx2
|
||||
.align 64
|
||||
K_XX_XX:
|
||||
|
||||
@@ -6,17 +6,22 @@
|
||||
.type sha256_multi_block,@function
|
||||
.align 32
|
||||
sha256_multi_block:
|
||||
.cfi_startproc
|
||||
movq OPENSSL_ia32cap_P+4(%rip),%rcx
|
||||
btq $61,%rcx
|
||||
jc _shaext_shortcut
|
||||
testl $268435456,%ecx
|
||||
jnz _avx_shortcut
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
subq $288,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,272(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x90,0x02,0x06,0x23,0x08
|
||||
.Lbody:
|
||||
leaq K256+128(%rip),%rbp
|
||||
leaq 256(%rsp),%rbx
|
||||
@@ -2615,19 +2620,28 @@ sha256_multi_block:
|
||||
|
||||
.Ldone:
|
||||
movq 272(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_multi_block,.-sha256_multi_block
|
||||
.type sha256_multi_block_shaext,@function
|
||||
.align 32
|
||||
sha256_multi_block_shaext:
|
||||
.cfi_startproc
|
||||
_shaext_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
subq $288,%rsp
|
||||
shll $1,%edx
|
||||
andq $-256,%rsp
|
||||
@@ -3102,14 +3116,19 @@ _shaext_shortcut:
|
||||
.Ldone_shaext:
|
||||
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_shaext:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_multi_block_shaext,.-sha256_multi_block_shaext
|
||||
.type sha256_multi_block_avx,@function
|
||||
.align 32
|
||||
sha256_multi_block_avx:
|
||||
.cfi_startproc
|
||||
_avx_shortcut:
|
||||
shrq $32,%rcx
|
||||
cmpl $2,%edx
|
||||
@@ -3120,11 +3139,15 @@ _avx_shortcut:
|
||||
.align 32
|
||||
.Lavx:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
subq $288,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,272(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x90,0x02,0x06,0x23,0x08
|
||||
.Lbody_avx:
|
||||
leaq K256+128(%rip),%rbp
|
||||
leaq 256(%rsp),%rbx
|
||||
@@ -5353,27 +5376,41 @@ _avx_shortcut:
|
||||
|
||||
.Ldone_avx:
|
||||
movq 272(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
vzeroupper
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_multi_block_avx,.-sha256_multi_block_avx
|
||||
.type sha256_multi_block_avx2,@function
|
||||
.align 32
|
||||
sha256_multi_block_avx2:
|
||||
.cfi_startproc
|
||||
_avx2_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
subq $576,%rsp
|
||||
andq $-256,%rsp
|
||||
movq %rax,544(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xa0,0x04,0x06,0x23,0x08
|
||||
.Lbody_avx2:
|
||||
leaq K256+128(%rip),%rbp
|
||||
leaq 128(%rdi),%rdi
|
||||
@@ -7738,16 +7775,25 @@ _avx2_shortcut:
|
||||
|
||||
.Ldone_avx2:
|
||||
movq 544(%rsp),%rax
|
||||
.cfi_def_cfa %rax,8
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_multi_block_avx2,.-sha256_multi_block_avx2
|
||||
.align 256
|
||||
K256:
|
||||
|
||||
+112
-40
@@ -5,6 +5,7 @@
|
||||
.type sha256_block_data_order,@function
|
||||
.align 16
|
||||
sha256_block_data_order:
|
||||
.cfi_startproc
|
||||
leaq OPENSSL_ia32cap_P(%rip),%r11
|
||||
movl 0(%r11),%r9d
|
||||
movl 4(%r11),%r10d
|
||||
@@ -21,13 +22,20 @@ sha256_block_data_order:
|
||||
je .Lavx_shortcut
|
||||
testl $512,%r10d
|
||||
jnz .Lssse3_shortcut
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $64+32,%rsp
|
||||
leaq (%rsi,%rdx,4),%rdx
|
||||
@@ -35,7 +43,8 @@ sha256_block_data_order:
|
||||
movq %rdi,64+0(%rsp)
|
||||
movq %rsi,64+8(%rsp)
|
||||
movq %rdx,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %rax,88(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xd8,0x00,0x06,0x23,0x08
|
||||
.Lprologue:
|
||||
|
||||
movl 0(%rdi),%eax
|
||||
@@ -1699,16 +1708,25 @@ sha256_block_data_order:
|
||||
movl %r11d,28(%rdi)
|
||||
jb .Lloop
|
||||
|
||||
movq 64+24(%rsp),%rsi
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq 88(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_block_data_order,.-sha256_block_data_order
|
||||
.align 64
|
||||
.type K256,@object
|
||||
@@ -1963,14 +1981,22 @@ _shaext_shortcut:
|
||||
.type sha256_block_data_order_ssse3,@function
|
||||
.align 64
|
||||
sha256_block_data_order_ssse3:
|
||||
.cfi_startproc
|
||||
.Lssse3_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $96,%rsp
|
||||
leaq (%rsi,%rdx,4),%rdx
|
||||
@@ -1978,7 +2004,8 @@ sha256_block_data_order_ssse3:
|
||||
movq %rdi,64+0(%rsp)
|
||||
movq %rsi,64+8(%rsp)
|
||||
movq %rdx,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %rax,88(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xd8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_ssse3:
|
||||
|
||||
movl 0(%rdi),%eax
|
||||
@@ -3044,28 +3071,45 @@ sha256_block_data_order_ssse3:
|
||||
movl %r11d,28(%rdi)
|
||||
jb .Lloop_ssse3
|
||||
|
||||
movq 64+24(%rsp),%rsi
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq 88(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_ssse3:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_block_data_order_ssse3,.-sha256_block_data_order_ssse3
|
||||
.type sha256_block_data_order_avx,@function
|
||||
.align 64
|
||||
sha256_block_data_order_avx:
|
||||
.cfi_startproc
|
||||
.Lavx_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $96,%rsp
|
||||
leaq (%rsi,%rdx,4),%rdx
|
||||
@@ -3073,7 +3117,8 @@ sha256_block_data_order_avx:
|
||||
movq %rdi,64+0(%rsp)
|
||||
movq %rsi,64+8(%rsp)
|
||||
movq %rdx,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %rax,88(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xd8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_avx:
|
||||
|
||||
vzeroupper
|
||||
@@ -4100,29 +4145,46 @@ sha256_block_data_order_avx:
|
||||
movl %r11d,28(%rdi)
|
||||
jb .Lloop_avx
|
||||
|
||||
movq 64+24(%rsp),%rsi
|
||||
movq 88(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vzeroupper
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_block_data_order_avx,.-sha256_block_data_order_avx
|
||||
.type sha256_block_data_order_avx2,@function
|
||||
.align 64
|
||||
sha256_block_data_order_avx2:
|
||||
.cfi_startproc
|
||||
.Lavx2_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
subq $544,%rsp
|
||||
shlq $4,%rdx
|
||||
andq $-1024,%rsp
|
||||
@@ -4131,7 +4193,8 @@ sha256_block_data_order_avx2:
|
||||
movq %rdi,64+0(%rsp)
|
||||
movq %rsi,64+8(%rsp)
|
||||
movq %rdx,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %rax,88(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xd8,0x00,0x06,0x23,0x08
|
||||
.Lprologue_avx2:
|
||||
|
||||
vzeroupper
|
||||
@@ -5344,15 +5407,24 @@ sha256_block_data_order_avx2:
|
||||
|
||||
.Ldone_avx2:
|
||||
leaq (%rbp),%rsp
|
||||
movq 64+24(%rsp),%rsi
|
||||
movq 88(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vzeroupper
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha256_block_data_order_avx2,.-sha256_block_data_order_avx2
|
||||
+112
-40
@@ -5,6 +5,7 @@
|
||||
.type sha512_block_data_order,@function
|
||||
.align 16
|
||||
sha512_block_data_order:
|
||||
.cfi_startproc
|
||||
leaq OPENSSL_ia32cap_P(%rip),%r11
|
||||
movl 0(%r11),%r9d
|
||||
movl 4(%r11),%r10d
|
||||
@@ -19,13 +20,20 @@ sha512_block_data_order:
|
||||
orl %r9d,%r10d
|
||||
cmpl $1342177792,%r10d
|
||||
je .Lavx_shortcut
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $128+32,%rsp
|
||||
leaq (%rsi,%rdx,8),%rdx
|
||||
@@ -33,7 +41,8 @@ sha512_block_data_order:
|
||||
movq %rdi,128+0(%rsp)
|
||||
movq %rsi,128+8(%rsp)
|
||||
movq %rdx,128+16(%rsp)
|
||||
movq %r11,128+24(%rsp)
|
||||
movq %rax,152(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x98,0x01,0x06,0x23,0x08
|
||||
.Lprologue:
|
||||
|
||||
movq 0(%rdi),%rax
|
||||
@@ -1697,16 +1706,25 @@ sha512_block_data_order:
|
||||
movq %r11,56(%rdi)
|
||||
jb .Lloop
|
||||
|
||||
movq 128+24(%rsp),%rsi
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq 152(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha512_block_data_order,.-sha512_block_data_order
|
||||
.align 64
|
||||
.type K512,@object
|
||||
@@ -1798,14 +1816,22 @@ K512:
|
||||
.type sha512_block_data_order_xop,@function
|
||||
.align 64
|
||||
sha512_block_data_order_xop:
|
||||
.cfi_startproc
|
||||
.Lxop_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $160,%rsp
|
||||
leaq (%rsi,%rdx,8),%rdx
|
||||
@@ -1813,7 +1839,8 @@ sha512_block_data_order_xop:
|
||||
movq %rdi,128+0(%rsp)
|
||||
movq %rsi,128+8(%rsp)
|
||||
movq %rdx,128+16(%rsp)
|
||||
movq %r11,128+24(%rsp)
|
||||
movq %rax,152(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x98,0x01,0x06,0x23,0x08
|
||||
.Lprologue_xop:
|
||||
|
||||
vzeroupper
|
||||
@@ -2866,29 +2893,46 @@ sha512_block_data_order_xop:
|
||||
movq %r11,56(%rdi)
|
||||
jb .Lloop_xop
|
||||
|
||||
movq 128+24(%rsp),%rsi
|
||||
movq 152(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vzeroupper
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_xop:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha512_block_data_order_xop,.-sha512_block_data_order_xop
|
||||
.type sha512_block_data_order_avx,@function
|
||||
.align 64
|
||||
sha512_block_data_order_avx:
|
||||
.cfi_startproc
|
||||
.Lavx_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
shlq $4,%rdx
|
||||
subq $160,%rsp
|
||||
leaq (%rsi,%rdx,8),%rdx
|
||||
@@ -2896,7 +2940,8 @@ sha512_block_data_order_avx:
|
||||
movq %rdi,128+0(%rsp)
|
||||
movq %rsi,128+8(%rsp)
|
||||
movq %rdx,128+16(%rsp)
|
||||
movq %r11,128+24(%rsp)
|
||||
movq %rax,152(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x98,0x01,0x06,0x23,0x08
|
||||
.Lprologue_avx:
|
||||
|
||||
vzeroupper
|
||||
@@ -4013,29 +4058,46 @@ sha512_block_data_order_avx:
|
||||
movq %r11,56(%rdi)
|
||||
jb .Lloop_avx
|
||||
|
||||
movq 128+24(%rsp),%rsi
|
||||
movq 152(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vzeroupper
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha512_block_data_order_avx,.-sha512_block_data_order_avx
|
||||
.type sha512_block_data_order_avx2,@function
|
||||
.align 64
|
||||
sha512_block_data_order_avx2:
|
||||
.cfi_startproc
|
||||
.Lavx2_shortcut:
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
movq %rsp,%r11
|
||||
.cfi_offset %r15,-56
|
||||
subq $1312,%rsp
|
||||
shlq $4,%rdx
|
||||
andq $-2048,%rsp
|
||||
@@ -4044,7 +4106,8 @@ sha512_block_data_order_avx2:
|
||||
movq %rdi,128+0(%rsp)
|
||||
movq %rsi,128+8(%rsp)
|
||||
movq %rdx,128+16(%rsp)
|
||||
movq %r11,128+24(%rsp)
|
||||
movq %rax,152(%rsp)
|
||||
.cfi_escape 0x0f,0x06,0x77,0x98,0x01,0x06,0x23,0x08
|
||||
.Lprologue_avx2:
|
||||
|
||||
vzeroupper
|
||||
@@ -5351,15 +5414,24 @@ sha512_block_data_order_avx2:
|
||||
|
||||
.Ldone_avx2:
|
||||
leaq (%rbp),%rsp
|
||||
movq 128+24(%rsp),%rsi
|
||||
movq 152(%rsp),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
vzeroupper
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue_avx2:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size sha512_block_data_order_avx2,.-sha512_block_data_order_avx2
|
||||
@@ -4,14 +4,22 @@
|
||||
.type whirlpool_block,@function
|
||||
.align 16
|
||||
whirlpool_block:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
movq %rsp,%r11
|
||||
subq $128+40,%rsp
|
||||
andq $-64,%rsp
|
||||
|
||||
@@ -19,7 +27,8 @@ whirlpool_block:
|
||||
movq %rdi,0(%r10)
|
||||
movq %rsi,8(%r10)
|
||||
movq %rdx,16(%r10)
|
||||
movq %r11,32(%r10)
|
||||
movq %rax,32(%r10)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xa0,0x01,0x06,0x23,0x08
|
||||
.Lprologue:
|
||||
|
||||
movq %r10,%rbx
|
||||
@@ -579,15 +588,24 @@ whirlpool_block:
|
||||
jmp .Louterloop
|
||||
.Lalldone:
|
||||
movq 32(%rbx),%rsi
|
||||
movq (%rsi),%r15
|
||||
movq 8(%rsi),%r14
|
||||
movq 16(%rsi),%r13
|
||||
movq 24(%rsi),%r12
|
||||
movq 32(%rsi),%rbp
|
||||
movq 40(%rsi),%rbx
|
||||
leaq 48(%rsi),%rsp
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size whirlpool_block,.-whirlpool_block
|
||||
|
||||
.align 64
|
||||
|
||||
+40
-34
@@ -36,10 +36,12 @@ OPENSSL_rdtsc:
|
||||
.type OPENSSL_ia32_cpuid,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_cpuid:
|
||||
.cfi_startproc
|
||||
movq %rbx,%r8
|
||||
.cfi_register %rbx,%r8
|
||||
|
||||
xorl %eax,%eax
|
||||
movl %eax,8(%rdi)
|
||||
movq %rax,8(%rdi)
|
||||
cpuid
|
||||
movl %eax,%r11d
|
||||
|
||||
@@ -110,6 +112,7 @@ OPENSSL_ia32_cpuid:
|
||||
.Lnocacheinfo:
|
||||
movl $1,%eax
|
||||
cpuid
|
||||
movd %eax,%xmm0
|
||||
andl $0xbfefffff,%edx
|
||||
cmpl $0,%r9d
|
||||
jne .Lnotintel
|
||||
@@ -157,26 +160,45 @@ OPENSSL_ia32_cpuid:
|
||||
jc .Lnotknights
|
||||
andl $0xfff7ffff,%ebx
|
||||
.Lnotknights:
|
||||
movd %xmm0,%eax
|
||||
andl $0x0fff0ff0,%eax
|
||||
cmpl $0x00050650,%eax
|
||||
jne .Lnotskylakex
|
||||
andl $0xfffeffff,%ebx
|
||||
|
||||
.Lnotskylakex:
|
||||
movl %ebx,8(%rdi)
|
||||
movl %ecx,12(%rdi)
|
||||
.Lno_extended_info:
|
||||
|
||||
btl $27,%r9d
|
||||
jnc .Lclear_avx
|
||||
xorl %ecx,%ecx
|
||||
.byte 0x0f,0x01,0xd0
|
||||
andl $0xe6,%eax
|
||||
cmpl $0xe6,%eax
|
||||
je .Ldone
|
||||
andl $0x3fdeffff,8(%rdi)
|
||||
|
||||
|
||||
|
||||
|
||||
andl $6,%eax
|
||||
cmpl $6,%eax
|
||||
je .Ldone
|
||||
.Lclear_avx:
|
||||
movl $0xefffe7ff,%eax
|
||||
andl %eax,%r9d
|
||||
andl $0xffffffdf,8(%rdi)
|
||||
movl $0x3fdeffdf,%eax
|
||||
andl %eax,8(%rdi)
|
||||
.Ldone:
|
||||
shlq $32,%r9
|
||||
movl %r10d,%eax
|
||||
movq %r8,%rbx
|
||||
.cfi_restore %rbx
|
||||
orq %r9,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size OPENSSL_ia32_cpuid,.-OPENSSL_ia32_cpuid
|
||||
|
||||
.globl OPENSSL_cleanse
|
||||
@@ -222,6 +244,18 @@ CRYPTO_memcmp:
|
||||
xorq %r10,%r10
|
||||
cmpq $0,%rdx
|
||||
je .Lno_data
|
||||
cmpq $16,%rdx
|
||||
jne .Loop_cmp
|
||||
movq (%rdi),%r10
|
||||
movq 8(%rdi),%r11
|
||||
movq $1,%rdx
|
||||
xorq (%rsi),%r10
|
||||
xorq 8(%rsi),%r11
|
||||
orq %r11,%r10
|
||||
cmovnzq %rdx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
|
||||
.align 16
|
||||
.Loop_cmp:
|
||||
movb (%rdi),%r10b
|
||||
leaq 1(%rdi),%rdi
|
||||
@@ -345,21 +379,6 @@ OPENSSL_instrument_bus2:
|
||||
subq %rcx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2
|
||||
.globl OPENSSL_ia32_rdrand
|
||||
.type OPENSSL_ia32_rdrand,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_rdrand:
|
||||
movl $8,%ecx
|
||||
.Loop_rdrand:
|
||||
.byte 72,15,199,240
|
||||
jc .Lbreak_rdrand
|
||||
loop .Loop_rdrand
|
||||
.Lbreak_rdrand:
|
||||
cmpq $0,%rax
|
||||
cmoveq %rcx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdrand,.-OPENSSL_ia32_rdrand
|
||||
|
||||
.globl OPENSSL_ia32_rdrand_bytes
|
||||
.type OPENSSL_ia32_rdrand_bytes,@function
|
||||
.align 16
|
||||
@@ -393,28 +412,14 @@ OPENSSL_ia32_rdrand_bytes:
|
||||
movb %r10b,(%rdi)
|
||||
leaq 1(%rdi),%rdi
|
||||
incq %rax
|
||||
shrq $8,%r8
|
||||
shrq $8,%r10
|
||||
decq %rsi
|
||||
jnz .Ltail_rdrand_bytes
|
||||
|
||||
.Ldone_rdrand_bytes:
|
||||
xorq %r10,%r10
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdrand_bytes,.-OPENSSL_ia32_rdrand_bytes
|
||||
.globl OPENSSL_ia32_rdseed
|
||||
.type OPENSSL_ia32_rdseed,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_rdseed:
|
||||
movl $8,%ecx
|
||||
.Loop_rdseed:
|
||||
.byte 72,15,199,248
|
||||
jc .Lbreak_rdseed
|
||||
loop .Loop_rdseed
|
||||
.Lbreak_rdseed:
|
||||
cmpq $0,%rax
|
||||
cmoveq %rcx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdseed,.-OPENSSL_ia32_rdseed
|
||||
|
||||
.globl OPENSSL_ia32_rdseed_bytes
|
||||
.type OPENSSL_ia32_rdseed_bytes,@function
|
||||
.align 16
|
||||
@@ -448,10 +453,11 @@ OPENSSL_ia32_rdseed_bytes:
|
||||
movb %r10b,(%rdi)
|
||||
leaq 1(%rdi),%rdi
|
||||
incq %rax
|
||||
shrq $8,%r8
|
||||
shrq $8,%r10
|
||||
decq %rsi
|
||||
jnz .Ltail_rdseed_bytes
|
||||
|
||||
.Ldone_rdseed_bytes:
|
||||
xorq %r10,%r10
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdseed_bytes,.-OPENSSL_ia32_rdseed_bytes
|
||||
@@ -8,11 +8,20 @@ padlock_capability:
|
||||
cpuid
|
||||
xorl %eax,%eax
|
||||
cmpl $0x746e6543,%ebx
|
||||
jne .Lnoluck
|
||||
jne .Lzhaoxin
|
||||
cmpl $0x48727561,%edx
|
||||
jne .Lnoluck
|
||||
cmpl $0x736c7561,%ecx
|
||||
jne .Lnoluck
|
||||
jmp .LzhaoxinEnd
|
||||
.Lzhaoxin:
|
||||
cmpl $0x68532020,%ebx
|
||||
jne .Lnoluck
|
||||
cmpl $0x68676e61,%edx
|
||||
jne .Lnoluck
|
||||
cmpl $0x20206961,%ecx
|
||||
jne .Lnoluck
|
||||
.LzhaoxinEnd:
|
||||
movl $0xC0000000,%eax
|
||||
cpuid
|
||||
movl %eax,%edx
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -34,6 +36,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_THREADS
|
||||
# define OPENSSL_THREADS
|
||||
#endif
|
||||
#ifndef OPENSSL_RAND_SEED_OS
|
||||
# define OPENSSL_RAND_SEED_OS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -46,12 +51,18 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DEVCRYPTOENG
|
||||
# define OPENSSL_NO_DEVCRYPTOENG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
# define OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EGD
|
||||
# define OPENSSL_NO_EGD
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EXTERNAL_TESTS
|
||||
# define OPENSSL_NO_EXTERNAL_TESTS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_FUZZ_AFL
|
||||
# define OPENSSL_NO_FUZZ_AFL
|
||||
#endif
|
||||
@@ -85,6 +96,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
# define OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
|
||||
# define OPENSSL_NO_DYNAMIC_ENGINE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -103,15 +117,11 @@ extern "C" {
|
||||
* functions.
|
||||
*/
|
||||
#ifndef DECLARE_DEPRECATED
|
||||
# if defined(OPENSSL_NO_DEPRECATED)
|
||||
# define DECLARE_DEPRECATED(f)
|
||||
# else
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
@@ -135,6 +145,18 @@ extern "C" {
|
||||
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not deprecate things to be deprecated in version 1.2.0 before the
|
||||
* OpenSSL version number matches.
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) f;
|
||||
#elif OPENSSL_API_COMPAT < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_2_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
@@ -153,8 +175,6 @@ extern "C" {
|
||||
# define DEPRECATEDIN_0_9_8(f)
|
||||
#endif
|
||||
|
||||
#define OPENSSL_CPUID_OBJ
|
||||
|
||||
/* Generate 80386 code? */
|
||||
#undef I386_ONLY
|
||||
|
||||
|
||||
+266
-177
@@ -2,7 +2,7 @@
|
||||
* WARNING: do not edit!
|
||||
* Generated by apps/progs.pl
|
||||
*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -39,7 +39,6 @@ extern int ecparam_main(int argc, char *argv[]);
|
||||
extern int enc_main(int argc, char *argv[]);
|
||||
extern int engine_main(int argc, char *argv[]);
|
||||
extern int errstr_main(int argc, char *argv[]);
|
||||
extern int exit_main(int argc, char *argv[]);
|
||||
extern int gendsa_main(int argc, char *argv[]);
|
||||
extern int genpkey_main(int argc, char *argv[]);
|
||||
extern int genrsa_main(int argc, char *argv[]);
|
||||
@@ -68,351 +67,441 @@ extern int smime_main(int argc, char *argv[]);
|
||||
extern int speed_main(int argc, char *argv[]);
|
||||
extern int spkac_main(int argc, char *argv[]);
|
||||
extern int srp_main(int argc, char *argv[]);
|
||||
extern int storeutl_main(int argc, char *argv[]);
|
||||
extern int ts_main(int argc, char *argv[]);
|
||||
extern int verify_main(int argc, char *argv[]);
|
||||
extern int version_main(int argc, char *argv[]);
|
||||
extern int x509_main(int argc, char *argv[]);
|
||||
|
||||
extern OPTIONS asn1parse_options[];
|
||||
extern OPTIONS ca_options[];
|
||||
extern OPTIONS ciphers_options[];
|
||||
extern OPTIONS cms_options[];
|
||||
extern OPTIONS crl_options[];
|
||||
extern OPTIONS crl2pkcs7_options[];
|
||||
extern OPTIONS dgst_options[];
|
||||
extern OPTIONS dhparam_options[];
|
||||
extern OPTIONS dsa_options[];
|
||||
extern OPTIONS dsaparam_options[];
|
||||
extern OPTIONS ec_options[];
|
||||
extern OPTIONS ecparam_options[];
|
||||
extern OPTIONS enc_options[];
|
||||
extern OPTIONS engine_options[];
|
||||
extern OPTIONS errstr_options[];
|
||||
extern OPTIONS exit_options[];
|
||||
extern OPTIONS gendsa_options[];
|
||||
extern OPTIONS genpkey_options[];
|
||||
extern OPTIONS genrsa_options[];
|
||||
extern OPTIONS help_options[];
|
||||
extern OPTIONS list_options[];
|
||||
extern OPTIONS nseq_options[];
|
||||
extern OPTIONS ocsp_options[];
|
||||
extern OPTIONS passwd_options[];
|
||||
extern OPTIONS pkcs12_options[];
|
||||
extern OPTIONS pkcs7_options[];
|
||||
extern OPTIONS pkcs8_options[];
|
||||
extern OPTIONS pkey_options[];
|
||||
extern OPTIONS pkeyparam_options[];
|
||||
extern OPTIONS pkeyutl_options[];
|
||||
extern OPTIONS prime_options[];
|
||||
extern OPTIONS rand_options[];
|
||||
extern OPTIONS rehash_options[];
|
||||
extern OPTIONS req_options[];
|
||||
extern OPTIONS rsa_options[];
|
||||
extern OPTIONS rsautl_options[];
|
||||
extern OPTIONS s_client_options[];
|
||||
extern OPTIONS s_server_options[];
|
||||
extern OPTIONS s_time_options[];
|
||||
extern OPTIONS sess_id_options[];
|
||||
extern OPTIONS smime_options[];
|
||||
extern OPTIONS speed_options[];
|
||||
extern OPTIONS spkac_options[];
|
||||
extern OPTIONS srp_options[];
|
||||
extern OPTIONS ts_options[];
|
||||
extern OPTIONS verify_options[];
|
||||
extern OPTIONS version_options[];
|
||||
extern OPTIONS x509_options[];
|
||||
extern const OPTIONS asn1parse_options[];
|
||||
extern const OPTIONS ca_options[];
|
||||
extern const OPTIONS ciphers_options[];
|
||||
extern const OPTIONS cms_options[];
|
||||
extern const OPTIONS crl_options[];
|
||||
extern const OPTIONS crl2pkcs7_options[];
|
||||
extern const OPTIONS dgst_options[];
|
||||
extern const OPTIONS dhparam_options[];
|
||||
extern const OPTIONS dsa_options[];
|
||||
extern const OPTIONS dsaparam_options[];
|
||||
extern const OPTIONS ec_options[];
|
||||
extern const OPTIONS ecparam_options[];
|
||||
extern const OPTIONS enc_options[];
|
||||
extern const OPTIONS engine_options[];
|
||||
extern const OPTIONS errstr_options[];
|
||||
extern const OPTIONS gendsa_options[];
|
||||
extern const OPTIONS genpkey_options[];
|
||||
extern const OPTIONS genrsa_options[];
|
||||
extern const OPTIONS help_options[];
|
||||
extern const OPTIONS list_options[];
|
||||
extern const OPTIONS nseq_options[];
|
||||
extern const OPTIONS ocsp_options[];
|
||||
extern const OPTIONS passwd_options[];
|
||||
extern const OPTIONS pkcs12_options[];
|
||||
extern const OPTIONS pkcs7_options[];
|
||||
extern const OPTIONS pkcs8_options[];
|
||||
extern const OPTIONS pkey_options[];
|
||||
extern const OPTIONS pkeyparam_options[];
|
||||
extern const OPTIONS pkeyutl_options[];
|
||||
extern const OPTIONS prime_options[];
|
||||
extern const OPTIONS rand_options[];
|
||||
extern const OPTIONS rehash_options[];
|
||||
extern const OPTIONS req_options[];
|
||||
extern const OPTIONS rsa_options[];
|
||||
extern const OPTIONS rsautl_options[];
|
||||
extern const OPTIONS s_client_options[];
|
||||
extern const OPTIONS s_server_options[];
|
||||
extern const OPTIONS s_time_options[];
|
||||
extern const OPTIONS sess_id_options[];
|
||||
extern const OPTIONS smime_options[];
|
||||
extern const OPTIONS speed_options[];
|
||||
extern const OPTIONS spkac_options[];
|
||||
extern const OPTIONS srp_options[];
|
||||
extern const OPTIONS storeutl_options[];
|
||||
extern const OPTIONS ts_options[];
|
||||
extern const OPTIONS verify_options[];
|
||||
extern const OPTIONS version_options[];
|
||||
extern const OPTIONS x509_options[];
|
||||
|
||||
#ifdef INCLUDE_FUNCTION_TABLE
|
||||
static FUNCTION functions[] = {
|
||||
{ FT_general, "asn1parse", asn1parse_main, asn1parse_options },
|
||||
{ FT_general, "ca", ca_main, ca_options },
|
||||
{FT_general, "asn1parse", asn1parse_main, asn1parse_options},
|
||||
{FT_general, "ca", ca_main, ca_options},
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "ciphers", ciphers_main, ciphers_options },
|
||||
{FT_general, "ciphers", ciphers_main, ciphers_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CMS
|
||||
{ FT_general, "cms", cms_main, cms_options },
|
||||
{FT_general, "cms", cms_main, cms_options},
|
||||
#endif
|
||||
{ FT_general, "crl", crl_main, crl_options },
|
||||
{ FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options },
|
||||
{ FT_general, "dgst", dgst_main, dgst_options },
|
||||
{FT_general, "crl", crl_main, crl_options},
|
||||
{FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options},
|
||||
{FT_general, "dgst", dgst_main, dgst_options},
|
||||
#ifndef OPENSSL_NO_DH
|
||||
{ FT_general, "dhparam", dhparam_main, dhparam_options },
|
||||
{FT_general, "dhparam", dhparam_main, dhparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsa", dsa_main, dsa_options },
|
||||
{FT_general, "dsa", dsa_main, dsa_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsaparam", dsaparam_main, dsaparam_options },
|
||||
{FT_general, "dsaparam", dsaparam_main, dsaparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ec", ec_main, ec_options },
|
||||
{FT_general, "ec", ec_main, ec_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ecparam", ecparam_main, ecparam_options },
|
||||
{FT_general, "ecparam", ecparam_main, ecparam_options},
|
||||
#endif
|
||||
{ FT_general, "enc", enc_main, enc_options },
|
||||
{FT_general, "enc", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ENGINE
|
||||
{ FT_general, "engine", engine_main, engine_options },
|
||||
{FT_general, "engine", engine_main, engine_options},
|
||||
#endif
|
||||
{ FT_general, "errstr", errstr_main, errstr_options },
|
||||
{ FT_general, "exit", exit_main, exit_options },
|
||||
{FT_general, "errstr", errstr_main, errstr_options},
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "gendsa", gendsa_main, gendsa_options },
|
||||
{FT_general, "gendsa", gendsa_main, gendsa_options},
|
||||
#endif
|
||||
{ FT_general, "genpkey", genpkey_main, genpkey_options },
|
||||
{FT_general, "genpkey", genpkey_main, genpkey_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "genrsa", genrsa_main, genrsa_options },
|
||||
{FT_general, "genrsa", genrsa_main, genrsa_options},
|
||||
#endif
|
||||
{ FT_general, "help", help_main, help_options },
|
||||
{ FT_general, "list", list_main, list_options },
|
||||
{ FT_general, "nseq", nseq_main, nseq_options },
|
||||
{FT_general, "help", help_main, help_options},
|
||||
{FT_general, "list", list_main, list_options},
|
||||
{FT_general, "nseq", nseq_main, nseq_options},
|
||||
#ifndef OPENSSL_NO_OCSP
|
||||
{ FT_general, "ocsp", ocsp_main, ocsp_options },
|
||||
{FT_general, "ocsp", ocsp_main, ocsp_options},
|
||||
#endif
|
||||
{ FT_general, "passwd", passwd_main, passwd_options },
|
||||
{FT_general, "passwd", passwd_main, passwd_options},
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_general, "pkcs12", pkcs12_main, pkcs12_options },
|
||||
{FT_general, "pkcs12", pkcs12_main, pkcs12_options},
|
||||
#endif
|
||||
{ FT_general, "pkcs7", pkcs7_main, pkcs7_options },
|
||||
{ FT_general, "pkcs8", pkcs8_main, pkcs8_options },
|
||||
{ FT_general, "pkey", pkey_main, pkey_options },
|
||||
{ FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options },
|
||||
{ FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options },
|
||||
{ FT_general, "prime", prime_main, prime_options },
|
||||
{ FT_general, "rand", rand_main, rand_options },
|
||||
{ FT_general, "rehash", rehash_main, rehash_options },
|
||||
{ FT_general, "req", req_main, req_options },
|
||||
{ FT_general, "rsa", rsa_main, rsa_options },
|
||||
{FT_general, "pkcs7", pkcs7_main, pkcs7_options},
|
||||
{FT_general, "pkcs8", pkcs8_main, pkcs8_options},
|
||||
{FT_general, "pkey", pkey_main, pkey_options},
|
||||
{FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options},
|
||||
{FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options},
|
||||
{FT_general, "prime", prime_main, prime_options},
|
||||
{FT_general, "rand", rand_main, rand_options},
|
||||
{FT_general, "rehash", rehash_main, rehash_options},
|
||||
{FT_general, "req", req_main, req_options},
|
||||
{FT_general, "rsa", rsa_main, rsa_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "rsautl", rsautl_main, rsautl_options },
|
||||
{FT_general, "rsautl", rsautl_main, rsautl_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_client", s_client_main, s_client_options },
|
||||
{FT_general, "s_client", s_client_main, s_client_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_server", s_server_main, s_server_options },
|
||||
{FT_general, "s_server", s_server_main, s_server_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_time", s_time_main, s_time_options },
|
||||
{FT_general, "s_time", s_time_main, s_time_options},
|
||||
#endif
|
||||
{ FT_general, "sess_id", sess_id_main, sess_id_options },
|
||||
{ FT_general, "smime", smime_main, smime_options },
|
||||
{ FT_general, "speed", speed_main, speed_options },
|
||||
{ FT_general, "spkac", spkac_main, spkac_options },
|
||||
{FT_general, "sess_id", sess_id_main, sess_id_options},
|
||||
{FT_general, "smime", smime_main, smime_options},
|
||||
{FT_general, "speed", speed_main, speed_options},
|
||||
{FT_general, "spkac", spkac_main, spkac_options},
|
||||
#ifndef OPENSSL_NO_SRP
|
||||
{ FT_general, "srp", srp_main, srp_options },
|
||||
{FT_general, "srp", srp_main, srp_options},
|
||||
#endif
|
||||
{FT_general, "storeutl", storeutl_main, storeutl_options},
|
||||
#ifndef OPENSSL_NO_TS
|
||||
{ FT_general, "ts", ts_main, ts_options },
|
||||
{FT_general, "ts", ts_main, ts_options},
|
||||
#endif
|
||||
{ FT_general, "verify", verify_main, verify_options },
|
||||
{ FT_general, "version", version_main, version_options },
|
||||
{ FT_general, "x509", x509_main, x509_options },
|
||||
{FT_general, "verify", verify_main, verify_options},
|
||||
{FT_general, "version", version_main, version_options},
|
||||
{FT_general, "x509", x509_main, x509_options},
|
||||
#ifndef OPENSSL_NO_MD2
|
||||
{ FT_md, "md2", dgst_main},
|
||||
{FT_md, "md2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MD4
|
||||
{ FT_md, "md4", dgst_main},
|
||||
{FT_md, "md4", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "md5", dgst_main},
|
||||
{FT_md, "md5", dgst_main},
|
||||
#ifndef OPENSSL_NO_GOST
|
||||
{ FT_md, "gost", dgst_main},
|
||||
{FT_md, "gost", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "sha1", dgst_main},
|
||||
{ FT_md, "sha224", dgst_main},
|
||||
{ FT_md, "sha256", dgst_main},
|
||||
{ FT_md, "sha384", dgst_main},
|
||||
{ FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha1", dgst_main},
|
||||
{FT_md, "sha224", dgst_main},
|
||||
{FT_md, "sha256", dgst_main},
|
||||
{FT_md, "sha384", dgst_main},
|
||||
{FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha512-224", dgst_main},
|
||||
{FT_md, "sha512-256", dgst_main},
|
||||
{FT_md, "sha3-224", dgst_main},
|
||||
{FT_md, "sha3-256", dgst_main},
|
||||
{FT_md, "sha3-384", dgst_main},
|
||||
{FT_md, "sha3-512", dgst_main},
|
||||
{FT_md, "shake128", dgst_main},
|
||||
{FT_md, "shake256", dgst_main},
|
||||
#ifndef OPENSSL_NO_MDC2
|
||||
{ FT_md, "mdc2", dgst_main},
|
||||
{FT_md, "mdc2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RMD160
|
||||
{ FT_md, "rmd160", dgst_main},
|
||||
{FT_md, "rmd160", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2b512", dgst_main},
|
||||
{FT_md, "blake2b512", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2s256", dgst_main},
|
||||
{FT_md, "blake2s256", dgst_main},
|
||||
#endif
|
||||
{ FT_cipher, "aes-128-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-128-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-ecb", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-cbc", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_SM3
|
||||
{FT_md, "sm3", dgst_main},
|
||||
#endif
|
||||
{FT_cipher, "aes-128-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-128-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-ecb", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
{ FT_cipher, "base64", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
{FT_cipher, "base64", enc_main, enc_options},
|
||||
#ifdef ZLIB
|
||||
{ FT_cipher, "zlib", enc_main, enc_options },
|
||||
{FT_cipher, "zlib", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des", enc_main, enc_options },
|
||||
{FT_cipher, "des", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des3", enc_main, enc_options },
|
||||
{FT_cipher, "des3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "desx", enc_main, enc_options },
|
||||
{FT_cipher, "desx", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea", enc_main, enc_options },
|
||||
{FT_cipher, "idea", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed", enc_main, enc_options },
|
||||
{FT_cipher, "seed", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4", enc_main, enc_options },
|
||||
{FT_cipher, "rc4", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4-40", enc_main, enc_options },
|
||||
{FT_cipher, "rc4-40", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2", enc_main, enc_options },
|
||||
{FT_cipher, "rc2", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf", enc_main, enc_options },
|
||||
{FT_cipher, "bf", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast", enc_main, enc_options },
|
||||
{FT_cipher, "cast", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5", enc_main, enc_options },
|
||||
{FT_cipher, "rc5", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-64-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-64-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-40-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-40-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
{ 0, NULL, NULL}
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
#endif
|
||||
+16
-11
@@ -1,12 +1,10 @@
|
||||
{
|
||||
'variables': {
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'DSO_DLFCN',
|
||||
'HAVE_DLFCN_H',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
'OPENSSL_BN_ASM_MONT5',
|
||||
@@ -14,6 +12,7 @@
|
||||
'SHA1_ASM',
|
||||
'SHA256_ASM',
|
||||
'SHA512_ASM',
|
||||
'KECCAK1600_ASM',
|
||||
'RC4_ASM',
|
||||
'MD5_ASM',
|
||||
'AES_ASM',
|
||||
@@ -21,18 +20,20 @@
|
||||
'BSAES_ASM',
|
||||
'GHASH_ASM',
|
||||
'ECP_NISTZ256_ASM',
|
||||
'X25519_ASM',
|
||||
'PADLOCK_ASM',
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-DL_ENDIAN -Wall -O3 -pthread -D_THREAD_SAFE -D_REENTRANT',
|
||||
'-Wa,--noexecstack',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'',
|
||||
'-pthread',
|
||||
],
|
||||
'openssl_cli_srcs_BSD-x86_64': [
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/asn1pars.c',
|
||||
'openssl/apps/ca.c',
|
||||
'openssl/apps/ciphers.c',
|
||||
@@ -54,7 +55,6 @@
|
||||
'openssl/apps/nseq.c',
|
||||
'openssl/apps/ocsp.c',
|
||||
'openssl/apps/openssl.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/passwd.c',
|
||||
'openssl/apps/pkcs12.c',
|
||||
'openssl/apps/pkcs7.c',
|
||||
@@ -68,20 +68,25 @@
|
||||
'openssl/apps/req.c',
|
||||
'openssl/apps/rsa.c',
|
||||
'openssl/apps/rsautl.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_client.c',
|
||||
'openssl/apps/s_server.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
'openssl/apps/s_time.c',
|
||||
'openssl/apps/sess_id.c',
|
||||
'openssl/apps/smime.c',
|
||||
'openssl/apps/speed.c',
|
||||
'openssl/apps/spkac.c',
|
||||
'openssl/apps/srp.c',
|
||||
'openssl/apps/storeutl.c',
|
||||
'openssl/apps/ts.c',
|
||||
'openssl/apps/verify.c',
|
||||
'openssl/apps/version.c',
|
||||
'openssl/apps/x509.c',
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/bf_prefix.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
],
|
||||
},
|
||||
'defines': ['<@(openssl_defines_BSD-x86_64)'],
|
||||
|
||||
+56
-14
@@ -6,12 +6,14 @@
|
||||
'openssl/ssl/d1_msg.c',
|
||||
'openssl/ssl/d1_srtp.c',
|
||||
'openssl/ssl/methods.c',
|
||||
'openssl/ssl/packet.c',
|
||||
'openssl/ssl/pqueue.c',
|
||||
'openssl/ssl/record/dtls1_bitmap.c',
|
||||
'openssl/ssl/record/rec_layer_d1.c',
|
||||
'openssl/ssl/record/rec_layer_s3.c',
|
||||
'openssl/ssl/record/ssl3_buffer.c',
|
||||
'openssl/ssl/record/ssl3_record.c',
|
||||
'openssl/ssl/record/ssl3_record_tls13.c',
|
||||
'openssl/ssl/s3_cbc.c',
|
||||
'openssl/ssl/s3_enc.c',
|
||||
'openssl/ssl/s3_lib.c',
|
||||
@@ -29,16 +31,19 @@
|
||||
'openssl/ssl/ssl_stat.c',
|
||||
'openssl/ssl/ssl_txt.c',
|
||||
'openssl/ssl/ssl_utst.c',
|
||||
'openssl/ssl/statem/extensions.c',
|
||||
'openssl/ssl/statem/extensions_clnt.c',
|
||||
'openssl/ssl/statem/extensions_cust.c',
|
||||
'openssl/ssl/statem/extensions_srvr.c',
|
||||
'openssl/ssl/statem/statem.c',
|
||||
'openssl/ssl/statem/statem_clnt.c',
|
||||
'openssl/ssl/statem/statem_dtls.c',
|
||||
'openssl/ssl/statem/statem_lib.c',
|
||||
'openssl/ssl/statem/statem_srvr.c',
|
||||
'openssl/ssl/t1_enc.c',
|
||||
'openssl/ssl/t1_ext.c',
|
||||
'openssl/ssl/t1_lib.c',
|
||||
'openssl/ssl/t1_reneg.c',
|
||||
'openssl/ssl/t1_trce.c',
|
||||
'openssl/ssl/tls13_enc.c',
|
||||
'openssl/ssl/tls_srp.c',
|
||||
'openssl/crypto/aes/aes_cfb.c',
|
||||
'openssl/crypto/aes/aes_ecb.c',
|
||||
@@ -46,6 +51,7 @@
|
||||
'openssl/crypto/aes/aes_misc.c',
|
||||
'openssl/crypto/aes/aes_ofb.c',
|
||||
'openssl/crypto/aes/aes_wrap.c',
|
||||
'openssl/crypto/aria/aria.c',
|
||||
'openssl/crypto/asn1/a_bitstr.c',
|
||||
'openssl/crypto/asn1/a_d2i_fp.c',
|
||||
'openssl/crypto/asn1/a_digest.c',
|
||||
@@ -68,6 +74,7 @@
|
||||
'openssl/crypto/asn1/ameth_lib.c',
|
||||
'openssl/crypto/asn1/asn1_err.c',
|
||||
'openssl/crypto/asn1/asn1_gen.c',
|
||||
'openssl/crypto/asn1/asn1_item_list.c',
|
||||
'openssl/crypto/asn1/asn1_lib.c',
|
||||
'openssl/crypto/asn1/asn1_par.c',
|
||||
'openssl/crypto/asn1/asn_mime.c',
|
||||
@@ -228,6 +235,7 @@
|
||||
'openssl/crypto/ct/ct_sct_ctx.c',
|
||||
'openssl/crypto/ct/ct_vfy.c',
|
||||
'openssl/crypto/ct/ct_x509v3.c',
|
||||
'openssl/crypto/ctype.c',
|
||||
'openssl/crypto/cversion.c',
|
||||
'openssl/crypto/des/cbc_cksm.c',
|
||||
'openssl/crypto/des/cbc_enc.c',
|
||||
@@ -245,7 +253,6 @@
|
||||
'openssl/crypto/des/pcbc_enc.c',
|
||||
'openssl/crypto/des/qud_cksm.c',
|
||||
'openssl/crypto/des/rand_key.c',
|
||||
'openssl/crypto/des/rpc_enc.c',
|
||||
'openssl/crypto/des/set_key.c',
|
||||
'openssl/crypto/des/str2key.c',
|
||||
'openssl/crypto/des/xcbc_enc.c',
|
||||
@@ -262,6 +269,7 @@
|
||||
'openssl/crypto/dh/dh_pmeth.c',
|
||||
'openssl/crypto/dh/dh_prn.c',
|
||||
'openssl/crypto/dh/dh_rfc5114.c',
|
||||
'openssl/crypto/dh/dh_rfc7919.c',
|
||||
'openssl/crypto/dsa/dsa_ameth.c',
|
||||
'openssl/crypto/dsa/dsa_asn1.c',
|
||||
'openssl/crypto/dsa/dsa_depr.c',
|
||||
@@ -284,7 +292,12 @@
|
||||
'openssl/crypto/dso/dso_win32.c',
|
||||
'openssl/crypto/ebcdic.c',
|
||||
'openssl/crypto/ec/curve25519.c',
|
||||
'openssl/crypto/ec/ec2_mult.c',
|
||||
'openssl/crypto/ec/curve448/arch_32/f_impl.c',
|
||||
'openssl/crypto/ec/curve448/curve448.c',
|
||||
'openssl/crypto/ec/curve448/curve448_tables.c',
|
||||
'openssl/crypto/ec/curve448/eddsa.c',
|
||||
'openssl/crypto/ec/curve448/f_generic.c',
|
||||
'openssl/crypto/ec/curve448/scalar.c',
|
||||
'openssl/crypto/ec/ec2_oct.c',
|
||||
'openssl/crypto/ec/ec2_smpl.c',
|
||||
'openssl/crypto/ec/ec_ameth.c',
|
||||
@@ -318,7 +331,6 @@
|
||||
'openssl/crypto/ec/ecx_meth.c',
|
||||
'openssl/crypto/engine/eng_all.c',
|
||||
'openssl/crypto/engine/eng_cnf.c',
|
||||
'openssl/crypto/engine/eng_cryptodev.c',
|
||||
'openssl/crypto/engine/eng_ctrl.c',
|
||||
'openssl/crypto/engine/eng_dyn.c',
|
||||
'openssl/crypto/engine/eng_err.c',
|
||||
@@ -353,6 +365,7 @@
|
||||
'openssl/crypto/evp/e_aes.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha1.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha256.c',
|
||||
'openssl/crypto/evp/e_aria.c',
|
||||
'openssl/crypto/evp/e_bf.c',
|
||||
'openssl/crypto/evp/e_camellia.c',
|
||||
'openssl/crypto/evp/e_cast.c',
|
||||
@@ -367,6 +380,7 @@
|
||||
'openssl/crypto/evp/e_rc4_hmac_md5.c',
|
||||
'openssl/crypto/evp/e_rc5.c',
|
||||
'openssl/crypto/evp/e_seed.c',
|
||||
'openssl/crypto/evp/e_sm4.c',
|
||||
'openssl/crypto/evp/e_xcbc_d.c',
|
||||
'openssl/crypto/evp/encode.c',
|
||||
'openssl/crypto/evp/evp_cnf.c',
|
||||
@@ -384,6 +398,7 @@
|
||||
'openssl/crypto/evp/m_null.c',
|
||||
'openssl/crypto/evp/m_ripemd.c',
|
||||
'openssl/crypto/evp/m_sha1.c',
|
||||
'openssl/crypto/evp/m_sha3.c',
|
||||
'openssl/crypto/evp/m_sigver.c',
|
||||
'openssl/crypto/evp/m_wp.c',
|
||||
'openssl/crypto/evp/names.c',
|
||||
@@ -396,10 +411,10 @@
|
||||
'openssl/crypto/evp/p_seal.c',
|
||||
'openssl/crypto/evp/p_sign.c',
|
||||
'openssl/crypto/evp/p_verify.c',
|
||||
'openssl/crypto/evp/pbe_scrypt.c',
|
||||
'openssl/crypto/evp/pmeth_fn.c',
|
||||
'openssl/crypto/evp/pmeth_gn.c',
|
||||
'openssl/crypto/evp/pmeth_lib.c',
|
||||
'openssl/crypto/evp/scrypt.c',
|
||||
'openssl/crypto/ex_data.c',
|
||||
'openssl/crypto/getenv.c',
|
||||
'openssl/crypto/hmac/hm_ameth.c',
|
||||
@@ -413,6 +428,7 @@
|
||||
'openssl/crypto/init.c',
|
||||
'openssl/crypto/kdf/hkdf.c',
|
||||
'openssl/crypto/kdf/kdf_err.c',
|
||||
'openssl/crypto/kdf/scrypt.c',
|
||||
'openssl/crypto/kdf/tls1_prf.c',
|
||||
'openssl/crypto/lhash/lh_stats.c',
|
||||
'openssl/crypto/lhash/lhash.c',
|
||||
@@ -492,7 +508,10 @@
|
||||
'openssl/crypto/pkcs7/pk7_smime.c',
|
||||
'openssl/crypto/pkcs7/pkcs7err.c',
|
||||
'openssl/crypto/poly1305/poly1305.c',
|
||||
'openssl/crypto/rand/md_rand.c',
|
||||
'openssl/crypto/poly1305/poly1305_ameth.c',
|
||||
'openssl/crypto/poly1305/poly1305_pmeth.c',
|
||||
'openssl/crypto/rand/drbg_ctr.c',
|
||||
'openssl/crypto/rand/drbg_lib.c',
|
||||
'openssl/crypto/rand/rand_egd.c',
|
||||
'openssl/crypto/rand/rand_err.c',
|
||||
'openssl/crypto/rand/rand_lib.c',
|
||||
@@ -516,8 +535,8 @@
|
||||
'openssl/crypto/rsa/rsa_gen.c',
|
||||
'openssl/crypto/rsa/rsa_lib.c',
|
||||
'openssl/crypto/rsa/rsa_meth.c',
|
||||
'openssl/crypto/rsa/rsa_mp.c',
|
||||
'openssl/crypto/rsa/rsa_none.c',
|
||||
'openssl/crypto/rsa/rsa_null.c',
|
||||
'openssl/crypto/rsa/rsa_oaep.c',
|
||||
'openssl/crypto/rsa/rsa_ossl.c',
|
||||
'openssl/crypto/rsa/rsa_pk1.c',
|
||||
@@ -538,9 +557,25 @@
|
||||
'openssl/crypto/sha/sha1dgst.c',
|
||||
'openssl/crypto/sha/sha256.c',
|
||||
'openssl/crypto/sha/sha512.c',
|
||||
'openssl/crypto/siphash/siphash.c',
|
||||
'openssl/crypto/siphash/siphash_ameth.c',
|
||||
'openssl/crypto/siphash/siphash_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_crypt.c',
|
||||
'openssl/crypto/sm2/sm2_err.c',
|
||||
'openssl/crypto/sm2/sm2_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_sign.c',
|
||||
'openssl/crypto/sm3/m_sm3.c',
|
||||
'openssl/crypto/sm3/sm3.c',
|
||||
'openssl/crypto/sm4/sm4.c',
|
||||
'openssl/crypto/srp/srp_lib.c',
|
||||
'openssl/crypto/srp/srp_vfy.c',
|
||||
'openssl/crypto/stack/stack.c',
|
||||
'openssl/crypto/store/loader_file.c',
|
||||
'openssl/crypto/store/store_err.c',
|
||||
'openssl/crypto/store/store_init.c',
|
||||
'openssl/crypto/store/store_lib.c',
|
||||
'openssl/crypto/store/store_register.c',
|
||||
'openssl/crypto/store/store_strings.c',
|
||||
'openssl/crypto/threads_none.c',
|
||||
'openssl/crypto/threads_pthread.c',
|
||||
'openssl/crypto/threads_win.c',
|
||||
@@ -558,6 +593,7 @@
|
||||
'openssl/crypto/txt_db/txt_db.c',
|
||||
'openssl/crypto/ui/ui_err.c',
|
||||
'openssl/crypto/ui/ui_lib.c',
|
||||
'openssl/crypto/ui/ui_null.c',
|
||||
'openssl/crypto/ui/ui_openssl.c',
|
||||
'openssl/crypto/ui/ui_util.c',
|
||||
'openssl/crypto/uid.c',
|
||||
@@ -605,6 +641,7 @@
|
||||
'openssl/crypto/x509v3/pcy_node.c',
|
||||
'openssl/crypto/x509v3/pcy_tree.c',
|
||||
'openssl/crypto/x509v3/v3_addr.c',
|
||||
'openssl/crypto/x509v3/v3_admis.c',
|
||||
'openssl/crypto/x509v3/v3_akey.c',
|
||||
'openssl/crypto/x509v3/v3_akeya.c',
|
||||
'openssl/crypto/x509v3/v3_alt.c',
|
||||
@@ -653,12 +690,14 @@
|
||||
'./config/archs/BSD-x86_64/asm/crypto/camellia/cmll-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/chacha/chacha-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/ec/ecp_nistz256-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/ec/x25519-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/md5/md5-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/modes/aesni-gcm-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/modes/ghash-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/poly1305/poly1305-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/rc4/rc4-md5-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/rc4/rc4-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/sha/keccak1600-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/sha/sha1-mb-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/sha/sha1-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm/crypto/sha/sha256-mb-x86_64.s',
|
||||
@@ -669,12 +708,10 @@
|
||||
'./config/archs/BSD-x86_64/asm/engines/e_padlock-x86_64.s',
|
||||
],
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'DSO_DLFCN',
|
||||
'HAVE_DLFCN_H',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
'OPENSSL_BN_ASM_MONT5',
|
||||
@@ -682,6 +719,7 @@
|
||||
'SHA1_ASM',
|
||||
'SHA256_ASM',
|
||||
'SHA512_ASM',
|
||||
'KECCAK1600_ASM',
|
||||
'RC4_ASM',
|
||||
'MD5_ASM',
|
||||
'AES_ASM',
|
||||
@@ -689,14 +727,18 @@
|
||||
'BSAES_ASM',
|
||||
'GHASH_ASM',
|
||||
'ECP_NISTZ256_ASM',
|
||||
'X25519_ASM',
|
||||
'PADLOCK_ASM',
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-DL_ENDIAN -Wall -O3 -pthread -D_THREAD_SAFE -D_REENTRANT',
|
||||
'-Wa,--noexecstack',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'',
|
||||
'-pthread',
|
||||
],
|
||||
},
|
||||
'include_dirs': [
|
||||
|
||||
+16191
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+3031
File diff suppressed because it is too large.
Load diff
+4409
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,827 @@
|
||||
.text
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_encrypt_core,@function
|
||||
.align 16
|
||||
_vpaes_encrypt_core:
|
||||
movq %rdx,%r9
|
||||
movq $16,%r11
|
||||
movl 240(%rdx),%eax
|
||||
movdqa %xmm9,%xmm1
|
||||
movdqa .Lk_ipt(%rip),%xmm2
|
||||
pandn %xmm0,%xmm1
|
||||
movdqu (%r9),%xmm5
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm0
|
||||
.byte 102,15,56,0,208
|
||||
movdqa .Lk_ipt+16(%rip),%xmm0
|
||||
.byte 102,15,56,0,193
|
||||
pxor %xmm5,%xmm2
|
||||
addq $16,%r9
|
||||
pxor %xmm2,%xmm0
|
||||
leaq .Lk_mc_backward(%rip),%r10
|
||||
jmp .Lenc_entry
|
||||
|
||||
.align 16
|
||||
.Lenc_loop:
|
||||
|
||||
movdqa %xmm13,%xmm4
|
||||
movdqa %xmm12,%xmm0
|
||||
.byte 102,15,56,0,226
|
||||
.byte 102,15,56,0,195
|
||||
pxor %xmm5,%xmm4
|
||||
movdqa %xmm15,%xmm5
|
||||
pxor %xmm4,%xmm0
|
||||
movdqa -64(%r11,%r10,1),%xmm1
|
||||
.byte 102,15,56,0,234
|
||||
movdqa (%r11,%r10,1),%xmm4
|
||||
movdqa %xmm14,%xmm2
|
||||
.byte 102,15,56,0,211
|
||||
movdqa %xmm0,%xmm3
|
||||
pxor %xmm5,%xmm2
|
||||
.byte 102,15,56,0,193
|
||||
addq $16,%r9
|
||||
pxor %xmm2,%xmm0
|
||||
.byte 102,15,56,0,220
|
||||
addq $16,%r11
|
||||
pxor %xmm0,%xmm3
|
||||
.byte 102,15,56,0,193
|
||||
andq $0x30,%r11
|
||||
subq $1,%rax
|
||||
pxor %xmm3,%xmm0
|
||||
|
||||
.Lenc_entry:
|
||||
|
||||
movdqa %xmm9,%xmm1
|
||||
movdqa %xmm11,%xmm5
|
||||
pandn %xmm0,%xmm1
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm0
|
||||
.byte 102,15,56,0,232
|
||||
movdqa %xmm10,%xmm3
|
||||
pxor %xmm1,%xmm0
|
||||
.byte 102,15,56,0,217
|
||||
movdqa %xmm10,%xmm4
|
||||
pxor %xmm5,%xmm3
|
||||
.byte 102,15,56,0,224
|
||||
movdqa %xmm10,%xmm2
|
||||
pxor %xmm5,%xmm4
|
||||
.byte 102,15,56,0,211
|
||||
movdqa %xmm10,%xmm3
|
||||
pxor %xmm0,%xmm2
|
||||
.byte 102,15,56,0,220
|
||||
movdqu (%r9),%xmm5
|
||||
pxor %xmm1,%xmm3
|
||||
jnz .Lenc_loop
|
||||
|
||||
|
||||
movdqa -96(%r10),%xmm4
|
||||
movdqa -80(%r10),%xmm0
|
||||
.byte 102,15,56,0,226
|
||||
pxor %xmm5,%xmm4
|
||||
.byte 102,15,56,0,195
|
||||
movdqa 64(%r11,%r10,1),%xmm1
|
||||
pxor %xmm4,%xmm0
|
||||
.byte 102,15,56,0,193
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_encrypt_core,.-_vpaes_encrypt_core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_decrypt_core,@function
|
||||
.align 16
|
||||
_vpaes_decrypt_core:
|
||||
movq %rdx,%r9
|
||||
movl 240(%rdx),%eax
|
||||
movdqa %xmm9,%xmm1
|
||||
movdqa .Lk_dipt(%rip),%xmm2
|
||||
pandn %xmm0,%xmm1
|
||||
movq %rax,%r11
|
||||
psrld $4,%xmm1
|
||||
movdqu (%r9),%xmm5
|
||||
shlq $4,%r11
|
||||
pand %xmm9,%xmm0
|
||||
.byte 102,15,56,0,208
|
||||
movdqa .Lk_dipt+16(%rip),%xmm0
|
||||
xorq $0x30,%r11
|
||||
leaq .Lk_dsbd(%rip),%r10
|
||||
.byte 102,15,56,0,193
|
||||
andq $0x30,%r11
|
||||
pxor %xmm5,%xmm2
|
||||
movdqa .Lk_mc_forward+48(%rip),%xmm5
|
||||
pxor %xmm2,%xmm0
|
||||
addq $16,%r9
|
||||
addq %r10,%r11
|
||||
jmp .Ldec_entry
|
||||
|
||||
.align 16
|
||||
.Ldec_loop:
|
||||
|
||||
|
||||
|
||||
movdqa -32(%r10),%xmm4
|
||||
movdqa -16(%r10),%xmm1
|
||||
.byte 102,15,56,0,226
|
||||
.byte 102,15,56,0,203
|
||||
pxor %xmm4,%xmm0
|
||||
movdqa 0(%r10),%xmm4
|
||||
pxor %xmm1,%xmm0
|
||||
movdqa 16(%r10),%xmm1
|
||||
|
||||
.byte 102,15,56,0,226
|
||||
.byte 102,15,56,0,197
|
||||
.byte 102,15,56,0,203
|
||||
pxor %xmm4,%xmm0
|
||||
movdqa 32(%r10),%xmm4
|
||||
pxor %xmm1,%xmm0
|
||||
movdqa 48(%r10),%xmm1
|
||||
|
||||
.byte 102,15,56,0,226
|
||||
.byte 102,15,56,0,197
|
||||
.byte 102,15,56,0,203
|
||||
pxor %xmm4,%xmm0
|
||||
movdqa 64(%r10),%xmm4
|
||||
pxor %xmm1,%xmm0
|
||||
movdqa 80(%r10),%xmm1
|
||||
|
||||
.byte 102,15,56,0,226
|
||||
.byte 102,15,56,0,197
|
||||
.byte 102,15,56,0,203
|
||||
pxor %xmm4,%xmm0
|
||||
addq $16,%r9
|
||||
.byte 102,15,58,15,237,12
|
||||
pxor %xmm1,%xmm0
|
||||
subq $1,%rax
|
||||
|
||||
.Ldec_entry:
|
||||
|
||||
movdqa %xmm9,%xmm1
|
||||
pandn %xmm0,%xmm1
|
||||
movdqa %xmm11,%xmm2
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm0
|
||||
.byte 102,15,56,0,208
|
||||
movdqa %xmm10,%xmm3
|
||||
pxor %xmm1,%xmm0
|
||||
.byte 102,15,56,0,217
|
||||
movdqa %xmm10,%xmm4
|
||||
pxor %xmm2,%xmm3
|
||||
.byte 102,15,56,0,224
|
||||
pxor %xmm2,%xmm4
|
||||
movdqa %xmm10,%xmm2
|
||||
.byte 102,15,56,0,211
|
||||
movdqa %xmm10,%xmm3
|
||||
pxor %xmm0,%xmm2
|
||||
.byte 102,15,56,0,220
|
||||
movdqu (%r9),%xmm0
|
||||
pxor %xmm1,%xmm3
|
||||
jnz .Ldec_loop
|
||||
|
||||
|
||||
movdqa 96(%r10),%xmm4
|
||||
.byte 102,15,56,0,226
|
||||
pxor %xmm0,%xmm4
|
||||
movdqa 112(%r10),%xmm0
|
||||
movdqa -352(%r11),%xmm2
|
||||
.byte 102,15,56,0,195
|
||||
pxor %xmm4,%xmm0
|
||||
.byte 102,15,56,0,194
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_decrypt_core,.-_vpaes_decrypt_core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_schedule_core,@function
|
||||
.align 16
|
||||
_vpaes_schedule_core:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
call _vpaes_preheat
|
||||
movdqa .Lk_rcon(%rip),%xmm8
|
||||
movdqu (%rdi),%xmm0
|
||||
|
||||
|
||||
movdqa %xmm0,%xmm3
|
||||
leaq .Lk_ipt(%rip),%r11
|
||||
call _vpaes_schedule_transform
|
||||
movdqa %xmm0,%xmm7
|
||||
|
||||
leaq .Lk_sr(%rip),%r10
|
||||
testq %rcx,%rcx
|
||||
jnz .Lschedule_am_decrypting
|
||||
|
||||
|
||||
movdqu %xmm0,(%rdx)
|
||||
jmp .Lschedule_go
|
||||
|
||||
.Lschedule_am_decrypting:
|
||||
|
||||
movdqa (%r8,%r10,1),%xmm1
|
||||
.byte 102,15,56,0,217
|
||||
movdqu %xmm3,(%rdx)
|
||||
xorq $0x30,%r8
|
||||
|
||||
.Lschedule_go:
|
||||
cmpl $192,%esi
|
||||
ja .Lschedule_256
|
||||
je .Lschedule_192
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.Lschedule_128:
|
||||
movl $10,%esi
|
||||
|
||||
.Loop_schedule_128:
|
||||
call _vpaes_schedule_round
|
||||
decq %rsi
|
||||
jz .Lschedule_mangle_last
|
||||
call _vpaes_schedule_mangle
|
||||
jmp .Loop_schedule_128
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.align 16
|
||||
.Lschedule_192:
|
||||
movdqu 8(%rdi),%xmm0
|
||||
call _vpaes_schedule_transform
|
||||
movdqa %xmm0,%xmm6
|
||||
pxor %xmm4,%xmm4
|
||||
movhlps %xmm4,%xmm6
|
||||
movl $4,%esi
|
||||
|
||||
.Loop_schedule_192:
|
||||
call _vpaes_schedule_round
|
||||
.byte 102,15,58,15,198,8
|
||||
call _vpaes_schedule_mangle
|
||||
call _vpaes_schedule_192_smear
|
||||
call _vpaes_schedule_mangle
|
||||
call _vpaes_schedule_round
|
||||
decq %rsi
|
||||
jz .Lschedule_mangle_last
|
||||
call _vpaes_schedule_mangle
|
||||
call _vpaes_schedule_192_smear
|
||||
jmp .Loop_schedule_192
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.align 16
|
||||
.Lschedule_256:
|
||||
movdqu 16(%rdi),%xmm0
|
||||
call _vpaes_schedule_transform
|
||||
movl $7,%esi
|
||||
|
||||
.Loop_schedule_256:
|
||||
call _vpaes_schedule_mangle
|
||||
movdqa %xmm0,%xmm6
|
||||
|
||||
|
||||
call _vpaes_schedule_round
|
||||
decq %rsi
|
||||
jz .Lschedule_mangle_last
|
||||
call _vpaes_schedule_mangle
|
||||
|
||||
|
||||
pshufd $0xFF,%xmm0,%xmm0
|
||||
movdqa %xmm7,%xmm5
|
||||
movdqa %xmm6,%xmm7
|
||||
call _vpaes_schedule_low_round
|
||||
movdqa %xmm5,%xmm7
|
||||
|
||||
jmp .Loop_schedule_256
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.align 16
|
||||
.Lschedule_mangle_last:
|
||||
|
||||
leaq .Lk_deskew(%rip),%r11
|
||||
testq %rcx,%rcx
|
||||
jnz .Lschedule_mangle_last_dec
|
||||
|
||||
|
||||
movdqa (%r8,%r10,1),%xmm1
|
||||
.byte 102,15,56,0,193
|
||||
leaq .Lk_opt(%rip),%r11
|
||||
addq $32,%rdx
|
||||
|
||||
.Lschedule_mangle_last_dec:
|
||||
addq $-16,%rdx
|
||||
pxor .Lk_s63(%rip),%xmm0
|
||||
call _vpaes_schedule_transform
|
||||
movdqu %xmm0,(%rdx)
|
||||
|
||||
|
||||
pxor %xmm0,%xmm0
|
||||
pxor %xmm1,%xmm1
|
||||
pxor %xmm2,%xmm2
|
||||
pxor %xmm3,%xmm3
|
||||
pxor %xmm4,%xmm4
|
||||
pxor %xmm5,%xmm5
|
||||
pxor %xmm6,%xmm6
|
||||
pxor %xmm7,%xmm7
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_schedule_core,.-_vpaes_schedule_core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_schedule_192_smear,@function
|
||||
.align 16
|
||||
_vpaes_schedule_192_smear:
|
||||
pshufd $0x80,%xmm6,%xmm1
|
||||
pshufd $0xFE,%xmm7,%xmm0
|
||||
pxor %xmm1,%xmm6
|
||||
pxor %xmm1,%xmm1
|
||||
pxor %xmm0,%xmm6
|
||||
movdqa %xmm6,%xmm0
|
||||
movhlps %xmm1,%xmm6
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_schedule_192_smear,.-_vpaes_schedule_192_smear
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_schedule_round,@function
|
||||
.align 16
|
||||
_vpaes_schedule_round:
|
||||
|
||||
pxor %xmm1,%xmm1
|
||||
.byte 102,65,15,58,15,200,15
|
||||
.byte 102,69,15,58,15,192,15
|
||||
pxor %xmm1,%xmm7
|
||||
|
||||
|
||||
pshufd $0xFF,%xmm0,%xmm0
|
||||
.byte 102,15,58,15,192,1
|
||||
|
||||
|
||||
|
||||
|
||||
_vpaes_schedule_low_round:
|
||||
|
||||
movdqa %xmm7,%xmm1
|
||||
pslldq $4,%xmm7
|
||||
pxor %xmm1,%xmm7
|
||||
movdqa %xmm7,%xmm1
|
||||
pslldq $8,%xmm7
|
||||
pxor %xmm1,%xmm7
|
||||
pxor .Lk_s63(%rip),%xmm7
|
||||
|
||||
|
||||
movdqa %xmm9,%xmm1
|
||||
pandn %xmm0,%xmm1
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm0
|
||||
movdqa %xmm11,%xmm2
|
||||
.byte 102,15,56,0,208
|
||||
pxor %xmm1,%xmm0
|
||||
movdqa %xmm10,%xmm3
|
||||
.byte 102,15,56,0,217
|
||||
pxor %xmm2,%xmm3
|
||||
movdqa %xmm10,%xmm4
|
||||
.byte 102,15,56,0,224
|
||||
pxor %xmm2,%xmm4
|
||||
movdqa %xmm10,%xmm2
|
||||
.byte 102,15,56,0,211
|
||||
pxor %xmm0,%xmm2
|
||||
movdqa %xmm10,%xmm3
|
||||
.byte 102,15,56,0,220
|
||||
pxor %xmm1,%xmm3
|
||||
movdqa %xmm13,%xmm4
|
||||
.byte 102,15,56,0,226
|
||||
movdqa %xmm12,%xmm0
|
||||
.byte 102,15,56,0,195
|
||||
pxor %xmm4,%xmm0
|
||||
|
||||
|
||||
pxor %xmm7,%xmm0
|
||||
movdqa %xmm0,%xmm7
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_schedule_round,.-_vpaes_schedule_round
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_schedule_transform,@function
|
||||
.align 16
|
||||
_vpaes_schedule_transform:
|
||||
movdqa %xmm9,%xmm1
|
||||
pandn %xmm0,%xmm1
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm0
|
||||
movdqa (%r11),%xmm2
|
||||
.byte 102,15,56,0,208
|
||||
movdqa 16(%r11),%xmm0
|
||||
.byte 102,15,56,0,193
|
||||
pxor %xmm2,%xmm0
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_schedule_transform,.-_vpaes_schedule_transform
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_schedule_mangle,@function
|
||||
.align 16
|
||||
_vpaes_schedule_mangle:
|
||||
movdqa %xmm0,%xmm4
|
||||
movdqa .Lk_mc_forward(%rip),%xmm5
|
||||
testq %rcx,%rcx
|
||||
jnz .Lschedule_mangle_dec
|
||||
|
||||
|
||||
addq $16,%rdx
|
||||
pxor .Lk_s63(%rip),%xmm4
|
||||
.byte 102,15,56,0,229
|
||||
movdqa %xmm4,%xmm3
|
||||
.byte 102,15,56,0,229
|
||||
pxor %xmm4,%xmm3
|
||||
.byte 102,15,56,0,229
|
||||
pxor %xmm4,%xmm3
|
||||
|
||||
jmp .Lschedule_mangle_both
|
||||
.align 16
|
||||
.Lschedule_mangle_dec:
|
||||
|
||||
leaq .Lk_dksd(%rip),%r11
|
||||
movdqa %xmm9,%xmm1
|
||||
pandn %xmm4,%xmm1
|
||||
psrld $4,%xmm1
|
||||
pand %xmm9,%xmm4
|
||||
|
||||
movdqa 0(%r11),%xmm2
|
||||
.byte 102,15,56,0,212
|
||||
movdqa 16(%r11),%xmm3
|
||||
.byte 102,15,56,0,217
|
||||
pxor %xmm2,%xmm3
|
||||
.byte 102,15,56,0,221
|
||||
|
||||
movdqa 32(%r11),%xmm2
|
||||
.byte 102,15,56,0,212
|
||||
pxor %xmm3,%xmm2
|
||||
movdqa 48(%r11),%xmm3
|
||||
.byte 102,15,56,0,217
|
||||
pxor %xmm2,%xmm3
|
||||
.byte 102,15,56,0,221
|
||||
|
||||
movdqa 64(%r11),%xmm2
|
||||
.byte 102,15,56,0,212
|
||||
pxor %xmm3,%xmm2
|
||||
movdqa 80(%r11),%xmm3
|
||||
.byte 102,15,56,0,217
|
||||
pxor %xmm2,%xmm3
|
||||
.byte 102,15,56,0,221
|
||||
|
||||
movdqa 96(%r11),%xmm2
|
||||
.byte 102,15,56,0,212
|
||||
pxor %xmm3,%xmm2
|
||||
movdqa 112(%r11),%xmm3
|
||||
.byte 102,15,56,0,217
|
||||
pxor %xmm2,%xmm3
|
||||
|
||||
addq $-16,%rdx
|
||||
|
||||
.Lschedule_mangle_both:
|
||||
movdqa (%r8,%r10,1),%xmm1
|
||||
.byte 102,15,56,0,217
|
||||
addq $-16,%r8
|
||||
andq $0x30,%r8
|
||||
movdqu %xmm3,(%rdx)
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_schedule_mangle,.-_vpaes_schedule_mangle
|
||||
|
||||
|
||||
|
||||
|
||||
.globl vpaes_set_encrypt_key
|
||||
.type vpaes_set_encrypt_key,@function
|
||||
.align 16
|
||||
vpaes_set_encrypt_key:
|
||||
movl %esi,%eax
|
||||
shrl $5,%eax
|
||||
addl $5,%eax
|
||||
movl %eax,240(%rdx)
|
||||
|
||||
movl $0,%ecx
|
||||
movl $0x30,%r8d
|
||||
call _vpaes_schedule_core
|
||||
xorl %eax,%eax
|
||||
.byte 0xf3,0xc3
|
||||
.size vpaes_set_encrypt_key,.-vpaes_set_encrypt_key
|
||||
|
||||
.globl vpaes_set_decrypt_key
|
||||
.type vpaes_set_decrypt_key,@function
|
||||
.align 16
|
||||
vpaes_set_decrypt_key:
|
||||
movl %esi,%eax
|
||||
shrl $5,%eax
|
||||
addl $5,%eax
|
||||
movl %eax,240(%rdx)
|
||||
shll $4,%eax
|
||||
leaq 16(%rdx,%rax,1),%rdx
|
||||
|
||||
movl $1,%ecx
|
||||
movl %esi,%r8d
|
||||
shrl $1,%r8d
|
||||
andl $32,%r8d
|
||||
xorl $32,%r8d
|
||||
call _vpaes_schedule_core
|
||||
xorl %eax,%eax
|
||||
.byte 0xf3,0xc3
|
||||
.size vpaes_set_decrypt_key,.-vpaes_set_decrypt_key
|
||||
|
||||
.globl vpaes_encrypt
|
||||
.type vpaes_encrypt,@function
|
||||
.align 16
|
||||
vpaes_encrypt:
|
||||
movdqu (%rdi),%xmm0
|
||||
call _vpaes_preheat
|
||||
call _vpaes_encrypt_core
|
||||
movdqu %xmm0,(%rsi)
|
||||
.byte 0xf3,0xc3
|
||||
.size vpaes_encrypt,.-vpaes_encrypt
|
||||
|
||||
.globl vpaes_decrypt
|
||||
.type vpaes_decrypt,@function
|
||||
.align 16
|
||||
vpaes_decrypt:
|
||||
movdqu (%rdi),%xmm0
|
||||
call _vpaes_preheat
|
||||
call _vpaes_decrypt_core
|
||||
movdqu %xmm0,(%rsi)
|
||||
.byte 0xf3,0xc3
|
||||
.size vpaes_decrypt,.-vpaes_decrypt
|
||||
.globl vpaes_cbc_encrypt
|
||||
.type vpaes_cbc_encrypt,@function
|
||||
.align 16
|
||||
vpaes_cbc_encrypt:
|
||||
xchgq %rcx,%rdx
|
||||
subq $16,%rcx
|
||||
jc .Lcbc_abort
|
||||
movdqu (%r8),%xmm6
|
||||
subq %rdi,%rsi
|
||||
call _vpaes_preheat
|
||||
cmpl $0,%r9d
|
||||
je .Lcbc_dec_loop
|
||||
jmp .Lcbc_enc_loop
|
||||
.align 16
|
||||
.Lcbc_enc_loop:
|
||||
movdqu (%rdi),%xmm0
|
||||
pxor %xmm6,%xmm0
|
||||
call _vpaes_encrypt_core
|
||||
movdqa %xmm0,%xmm6
|
||||
movdqu %xmm0,(%rsi,%rdi,1)
|
||||
leaq 16(%rdi),%rdi
|
||||
subq $16,%rcx
|
||||
jnc .Lcbc_enc_loop
|
||||
jmp .Lcbc_done
|
||||
.align 16
|
||||
.Lcbc_dec_loop:
|
||||
movdqu (%rdi),%xmm0
|
||||
movdqa %xmm0,%xmm7
|
||||
call _vpaes_decrypt_core
|
||||
pxor %xmm6,%xmm0
|
||||
movdqa %xmm7,%xmm6
|
||||
movdqu %xmm0,(%rsi,%rdi,1)
|
||||
leaq 16(%rdi),%rdi
|
||||
subq $16,%rcx
|
||||
jnc .Lcbc_dec_loop
|
||||
.Lcbc_done:
|
||||
movdqu %xmm6,(%r8)
|
||||
.Lcbc_abort:
|
||||
.byte 0xf3,0xc3
|
||||
.size vpaes_cbc_encrypt,.-vpaes_cbc_encrypt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_preheat,@function
|
||||
.align 16
|
||||
_vpaes_preheat:
|
||||
leaq .Lk_s0F(%rip),%r10
|
||||
movdqa -32(%r10),%xmm10
|
||||
movdqa -16(%r10),%xmm11
|
||||
movdqa 0(%r10),%xmm9
|
||||
movdqa 48(%r10),%xmm13
|
||||
movdqa 64(%r10),%xmm12
|
||||
movdqa 80(%r10),%xmm15
|
||||
movdqa 96(%r10),%xmm14
|
||||
.byte 0xf3,0xc3
|
||||
.size _vpaes_preheat,.-_vpaes_preheat
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.type _vpaes_consts,@object
|
||||
.align 64
|
||||
_vpaes_consts:
|
||||
.Lk_inv:
|
||||
.quad 0x0E05060F0D080180, 0x040703090A0B0C02
|
||||
.quad 0x01040A060F0B0780, 0x030D0E0C02050809
|
||||
|
||||
.Lk_s0F:
|
||||
.quad 0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F0F0F0F0F
|
||||
|
||||
.Lk_ipt:
|
||||
.quad 0xC2B2E8985A2A7000, 0xCABAE09052227808
|
||||
.quad 0x4C01307D317C4D00, 0xCD80B1FCB0FDCC81
|
||||
|
||||
.Lk_sb1:
|
||||
.quad 0xB19BE18FCB503E00, 0xA5DF7A6E142AF544
|
||||
.quad 0x3618D415FAE22300, 0x3BF7CCC10D2ED9EF
|
||||
.Lk_sb2:
|
||||
.quad 0xE27A93C60B712400, 0x5EB7E955BC982FCD
|
||||
.quad 0x69EB88400AE12900, 0xC2A163C8AB82234A
|
||||
.Lk_sbo:
|
||||
.quad 0xD0D26D176FBDC700, 0x15AABF7AC502A878
|
||||
.quad 0xCFE474A55FBB6A00, 0x8E1E90D1412B35FA
|
||||
|
||||
.Lk_mc_forward:
|
||||
.quad 0x0407060500030201, 0x0C0F0E0D080B0A09
|
||||
.quad 0x080B0A0904070605, 0x000302010C0F0E0D
|
||||
.quad 0x0C0F0E0D080B0A09, 0x0407060500030201
|
||||
.quad 0x000302010C0F0E0D, 0x080B0A0904070605
|
||||
|
||||
.Lk_mc_backward:
|
||||
.quad 0x0605040702010003, 0x0E0D0C0F0A09080B
|
||||
.quad 0x020100030E0D0C0F, 0x0A09080B06050407
|
||||
.quad 0x0E0D0C0F0A09080B, 0x0605040702010003
|
||||
.quad 0x0A09080B06050407, 0x020100030E0D0C0F
|
||||
|
||||
.Lk_sr:
|
||||
.quad 0x0706050403020100, 0x0F0E0D0C0B0A0908
|
||||
.quad 0x030E09040F0A0500, 0x0B06010C07020D08
|
||||
.quad 0x0F060D040B020900, 0x070E050C030A0108
|
||||
.quad 0x0B0E0104070A0D00, 0x0306090C0F020508
|
||||
|
||||
.Lk_rcon:
|
||||
.quad 0x1F8391B9AF9DEEB6, 0x702A98084D7C7D81
|
||||
|
||||
.Lk_s63:
|
||||
.quad 0x5B5B5B5B5B5B5B5B, 0x5B5B5B5B5B5B5B5B
|
||||
|
||||
.Lk_opt:
|
||||
.quad 0xFF9F4929D6B66000, 0xF7974121DEBE6808
|
||||
.quad 0x01EDBD5150BCEC00, 0xE10D5DB1B05C0CE0
|
||||
|
||||
.Lk_deskew:
|
||||
.quad 0x07E4A34047A4E300, 0x1DFEB95A5DBEF91A
|
||||
.quad 0x5F36B5DC83EA6900, 0x2841C2ABF49D1E77
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.Lk_dksd:
|
||||
.quad 0xFEB91A5DA3E44700, 0x0740E3A45A1DBEF9
|
||||
.quad 0x41C277F4B5368300, 0x5FDC69EAAB289D1E
|
||||
.Lk_dksb:
|
||||
.quad 0x9A4FCA1F8550D500, 0x03D653861CC94C99
|
||||
.quad 0x115BEDA7B6FC4A00, 0xD993256F7E3482C8
|
||||
.Lk_dkse:
|
||||
.quad 0xD5031CCA1FC9D600, 0x53859A4C994F5086
|
||||
.quad 0xA23196054FDC7BE8, 0xCD5EF96A20B31487
|
||||
.Lk_dks9:
|
||||
.quad 0xB6116FC87ED9A700, 0x4AED933482255BFC
|
||||
.quad 0x4576516227143300, 0x8BB89FACE9DAFDCE
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.Lk_dipt:
|
||||
.quad 0x0F505B040B545F00, 0x154A411E114E451A
|
||||
.quad 0x86E383E660056500, 0x12771772F491F194
|
||||
|
||||
.Lk_dsb9:
|
||||
.quad 0x851C03539A86D600, 0xCAD51F504F994CC9
|
||||
.quad 0xC03B1789ECD74900, 0x725E2C9EB2FBA565
|
||||
.Lk_dsbd:
|
||||
.quad 0x7D57CCDFE6B1A200, 0xF56E9B13882A4439
|
||||
.quad 0x3CE2FAF724C6CB00, 0x2931180D15DEEFD3
|
||||
.Lk_dsbb:
|
||||
.quad 0xD022649296B44200, 0x602646F6B0F2D404
|
||||
.quad 0xC19498A6CD596700, 0xF3FF0C3E3255AA6B
|
||||
.Lk_dsbe:
|
||||
.quad 0x46F2929626D4D000, 0x2242600464B4F6B0
|
||||
.quad 0x0C55A6CDFFAAC100, 0x9467F36B98593E32
|
||||
.Lk_dsbo:
|
||||
.quad 0x1387EA537EF94000, 0xC7AA6DB9D4943E2D
|
||||
.quad 0x12D7560F93441D00, 0xCA4B8159D8C58E9C
|
||||
.byte 86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105,111,110,32,65,69,83,32,102,111,114,32,120,56,54,95,54,52,47,83,83,83,69,51,44,32,77,105,107,101,32,72,97,109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105,118,101,114,115,105,116,121,41,0
|
||||
.align 64
|
||||
.size _vpaes_consts,.-_vpaes_consts
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,311 @@
|
||||
.text
|
||||
|
||||
.type _mul_1x1,@function
|
||||
.align 16
|
||||
_mul_1x1:
|
||||
.cfi_startproc
|
||||
subq $128+8,%rsp
|
||||
.cfi_adjust_cfa_offset 128+8
|
||||
movq $-1,%r9
|
||||
leaq (%rax,%rax,1),%rsi
|
||||
shrq $3,%r9
|
||||
leaq (,%rax,4),%rdi
|
||||
andq %rax,%r9
|
||||
leaq (,%rax,8),%r12
|
||||
sarq $63,%rax
|
||||
leaq (%r9,%r9,1),%r10
|
||||
sarq $63,%rsi
|
||||
leaq (,%r9,4),%r11
|
||||
andq %rbp,%rax
|
||||
sarq $63,%rdi
|
||||
movq %rax,%rdx
|
||||
shlq $63,%rax
|
||||
andq %rbp,%rsi
|
||||
shrq $1,%rdx
|
||||
movq %rsi,%rcx
|
||||
shlq $62,%rsi
|
||||
andq %rbp,%rdi
|
||||
shrq $2,%rcx
|
||||
xorq %rsi,%rax
|
||||
movq %rdi,%rbx
|
||||
shlq $61,%rdi
|
||||
xorq %rcx,%rdx
|
||||
shrq $3,%rbx
|
||||
xorq %rdi,%rax
|
||||
xorq %rbx,%rdx
|
||||
|
||||
movq %r9,%r13
|
||||
movq $0,0(%rsp)
|
||||
xorq %r10,%r13
|
||||
movq %r9,8(%rsp)
|
||||
movq %r11,%r14
|
||||
movq %r10,16(%rsp)
|
||||
xorq %r12,%r14
|
||||
movq %r13,24(%rsp)
|
||||
|
||||
xorq %r11,%r9
|
||||
movq %r11,32(%rsp)
|
||||
xorq %r11,%r10
|
||||
movq %r9,40(%rsp)
|
||||
xorq %r11,%r13
|
||||
movq %r10,48(%rsp)
|
||||
xorq %r14,%r9
|
||||
movq %r13,56(%rsp)
|
||||
xorq %r14,%r10
|
||||
|
||||
movq %r12,64(%rsp)
|
||||
xorq %r14,%r13
|
||||
movq %r9,72(%rsp)
|
||||
xorq %r11,%r9
|
||||
movq %r10,80(%rsp)
|
||||
xorq %r11,%r10
|
||||
movq %r13,88(%rsp)
|
||||
|
||||
xorq %r11,%r13
|
||||
movq %r14,96(%rsp)
|
||||
movq %r8,%rsi
|
||||
movq %r9,104(%rsp)
|
||||
andq %rbp,%rsi
|
||||
movq %r10,112(%rsp)
|
||||
shrq $4,%rbp
|
||||
movq %r13,120(%rsp)
|
||||
movq %r8,%rdi
|
||||
andq %rbp,%rdi
|
||||
shrq $4,%rbp
|
||||
|
||||
movq (%rsp,%rsi,8),%xmm0
|
||||
movq %r8,%rsi
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $4,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $60,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $1,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $12,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $52,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $2,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $20,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $44,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $3,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $28,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $36,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $4,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $36,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $28,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $5,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $44,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $20,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $6,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %r8,%rdi
|
||||
movq %rcx,%rbx
|
||||
shlq $52,%rcx
|
||||
andq %rbp,%rdi
|
||||
movq (%rsp,%rsi,8),%xmm1
|
||||
shrq $12,%rbx
|
||||
xorq %rcx,%rax
|
||||
pslldq $7,%xmm1
|
||||
movq %r8,%rsi
|
||||
shrq $4,%rbp
|
||||
xorq %rbx,%rdx
|
||||
andq %rbp,%rsi
|
||||
shrq $4,%rbp
|
||||
pxor %xmm1,%xmm0
|
||||
movq (%rsp,%rdi,8),%rcx
|
||||
movq %rcx,%rbx
|
||||
shlq $60,%rcx
|
||||
.byte 102,72,15,126,198
|
||||
shrq $4,%rbx
|
||||
xorq %rcx,%rax
|
||||
psrldq $8,%xmm0
|
||||
xorq %rbx,%rdx
|
||||
.byte 102,72,15,126,199
|
||||
xorq %rsi,%rax
|
||||
xorq %rdi,%rdx
|
||||
|
||||
addq $128+8,%rsp
|
||||
.cfi_adjust_cfa_offset -128-8
|
||||
.byte 0xf3,0xc3
|
||||
.Lend_mul_1x1:
|
||||
.cfi_endproc
|
||||
.size _mul_1x1,.-_mul_1x1
|
||||
|
||||
.globl bn_GF2m_mul_2x2
|
||||
.type bn_GF2m_mul_2x2,@function
|
||||
.align 16
|
||||
bn_GF2m_mul_2x2:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
movq OPENSSL_ia32cap_P(%rip),%r10
|
||||
btq $33,%r10
|
||||
jnc .Lvanilla_mul_2x2
|
||||
|
||||
.byte 102,72,15,110,198
|
||||
.byte 102,72,15,110,201
|
||||
.byte 102,72,15,110,210
|
||||
.byte 102,73,15,110,216
|
||||
movdqa %xmm0,%xmm4
|
||||
movdqa %xmm1,%xmm5
|
||||
.byte 102,15,58,68,193,0
|
||||
pxor %xmm2,%xmm4
|
||||
pxor %xmm3,%xmm5
|
||||
.byte 102,15,58,68,211,0
|
||||
.byte 102,15,58,68,229,0
|
||||
xorps %xmm0,%xmm4
|
||||
xorps %xmm2,%xmm4
|
||||
movdqa %xmm4,%xmm5
|
||||
pslldq $8,%xmm4
|
||||
psrldq $8,%xmm5
|
||||
pxor %xmm4,%xmm2
|
||||
pxor %xmm5,%xmm0
|
||||
movdqu %xmm2,0(%rdi)
|
||||
movdqu %xmm0,16(%rdi)
|
||||
.byte 0xf3,0xc3
|
||||
|
||||
.align 16
|
||||
.Lvanilla_mul_2x2:
|
||||
leaq -136(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 8*17
|
||||
movq %r14,80(%rsp)
|
||||
.cfi_rel_offset %r14,8*10
|
||||
movq %r13,88(%rsp)
|
||||
.cfi_rel_offset %r13,8*11
|
||||
movq %r12,96(%rsp)
|
||||
.cfi_rel_offset %r12,8*12
|
||||
movq %rbp,104(%rsp)
|
||||
.cfi_rel_offset %rbp,8*13
|
||||
movq %rbx,112(%rsp)
|
||||
.cfi_rel_offset %rbx,8*14
|
||||
.Lbody_mul_2x2:
|
||||
movq %rdi,32(%rsp)
|
||||
movq %rsi,40(%rsp)
|
||||
movq %rdx,48(%rsp)
|
||||
movq %rcx,56(%rsp)
|
||||
movq %r8,64(%rsp)
|
||||
|
||||
movq $0xf,%r8
|
||||
movq %rsi,%rax
|
||||
movq %rcx,%rbp
|
||||
call _mul_1x1
|
||||
movq %rax,16(%rsp)
|
||||
movq %rdx,24(%rsp)
|
||||
|
||||
movq 48(%rsp),%rax
|
||||
movq 64(%rsp),%rbp
|
||||
call _mul_1x1
|
||||
movq %rax,0(%rsp)
|
||||
movq %rdx,8(%rsp)
|
||||
|
||||
movq 40(%rsp),%rax
|
||||
movq 56(%rsp),%rbp
|
||||
xorq 48(%rsp),%rax
|
||||
xorq 64(%rsp),%rbp
|
||||
call _mul_1x1
|
||||
movq 0(%rsp),%rbx
|
||||
movq 8(%rsp),%rcx
|
||||
movq 16(%rsp),%rdi
|
||||
movq 24(%rsp),%rsi
|
||||
movq 32(%rsp),%rbp
|
||||
|
||||
xorq %rdx,%rax
|
||||
xorq %rcx,%rdx
|
||||
xorq %rbx,%rax
|
||||
movq %rbx,0(%rbp)
|
||||
xorq %rdi,%rdx
|
||||
movq %rsi,24(%rbp)
|
||||
xorq %rsi,%rax
|
||||
xorq %rsi,%rdx
|
||||
xorq %rdx,%rax
|
||||
movq %rdx,16(%rbp)
|
||||
movq %rax,8(%rbp)
|
||||
|
||||
movq 80(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 88(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 96(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 104(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq 112(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq 136(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset -8*17
|
||||
.Lepilogue_mul_2x2:
|
||||
.byte 0xf3,0xc3
|
||||
.Lend_mul_2x2:
|
||||
.cfi_endproc
|
||||
.size bn_GF2m_mul_2x2,.-bn_GF2m_mul_2x2
|
||||
.byte 71,70,40,50,94,109,41,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
.align 16
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* WARNING: do not edit!
|
||||
* Generated by util/mkbuildinf.pl
|
||||
*
|
||||
* Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#define PLATFORM "platform: BSD-x86_64"
|
||||
#define DATE "built on: Thu Jan 24 21:30:52 2019 UTC"
|
||||
|
||||
/*
|
||||
* Generate compiler_flags as an array of individual characters. This is a
|
||||
* workaround for the situation where CFLAGS gets too long for a C90 string
|
||||
* literal
|
||||
*/
|
||||
static const char compiler_flags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','.','.','/','c','o','n',
|
||||
'f','i','g','/','f','a','k','e','_','g','c','c','.','p','l',' ',
|
||||
'-','f','P','I','C',' ','-','p','t','h','r','e','a','d',' ','-',
|
||||
'W','a',',','-','-','n','o','e','x','e','c','s','t','a','c','k',
|
||||
' ','-','W','a','l','l',' ','-','O','3',' ','-','D','L','_','E',
|
||||
'N','D','I','A','N',' ','-','D','O','P','E','N','S','S','L','_',
|
||||
'P','I','C',' ','-','D','O','P','E','N','S','S','L','_','C','P',
|
||||
'U','I','D','_','O','B','J',' ','-','D','O','P','E','N','S','S',
|
||||
'L','_','I','A','3','2','_','S','S','E','2',' ','-','D','O','P',
|
||||
'E','N','S','S','L','_','B','N','_','A','S','M','_','M','O','N',
|
||||
'T',' ','-','D','O','P','E','N','S','S','L','_','B','N','_','A',
|
||||
'S','M','_','M','O','N','T','5',' ','-','D','O','P','E','N','S',
|
||||
'S','L','_','B','N','_','A','S','M','_','G','F','2','m',' ','-',
|
||||
'D','S','H','A','1','_','A','S','M',' ','-','D','S','H','A','2',
|
||||
'5','6','_','A','S','M',' ','-','D','S','H','A','5','1','2','_',
|
||||
'A','S','M',' ','-','D','K','E','C','C','A','K','1','6','0','0',
|
||||
'_','A','S','M',' ','-','D','R','C','4','_','A','S','M',' ','-',
|
||||
'D','M','D','5','_','A','S','M',' ','-','D','A','E','S','_','A',
|
||||
'S','M',' ','-','D','V','P','A','E','S','_','A','S','M',' ','-',
|
||||
'D','B','S','A','E','S','_','A','S','M',' ','-','D','G','H','A',
|
||||
'S','H','_','A','S','M',' ','-','D','E','C','P','_','N','I','S',
|
||||
'T','Z','2','5','6','_','A','S','M',' ','-','D','X','2','5','5',
|
||||
'1','9','_','A','S','M',' ','-','D','P','A','D','L','O','C','K',
|
||||
'_','A','S','M',' ','-','D','P','O','L','Y','1','3','0','5','_',
|
||||
'A','S','M',' ','-','D','_','T','H','R','E','A','D','_','S','A',
|
||||
'F','E',' ','-','D','_','R','E','E','N','T','R','A','N','T',' ',
|
||||
'-','D','N','D','E','B','U','G','\0'
|
||||
};
|
||||
+1916
File diff suppressed because it is too large.
Load diff
+2193
File diff suppressed because it is too large.
Load diff
+7321
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,792 @@
|
||||
.text
|
||||
|
||||
.globl x25519_fe51_mul
|
||||
.type x25519_fe51_mul,@function
|
||||
.align 32
|
||||
x25519_fe51_mul:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_mul_body:
|
||||
|
||||
movq 0(%rsi),%rax
|
||||
movq 0(%rdx),%r11
|
||||
movq 8(%rdx),%r12
|
||||
movq 16(%rdx),%r13
|
||||
movq 24(%rdx),%rbp
|
||||
movq 32(%rdx),%r14
|
||||
|
||||
movq %rdi,32(%rsp)
|
||||
movq %rax,%rdi
|
||||
mulq %r11
|
||||
movq %r11,0(%rsp)
|
||||
movq %rax,%rbx
|
||||
movq %rdi,%rax
|
||||
movq %rdx,%rcx
|
||||
mulq %r12
|
||||
movq %r12,8(%rsp)
|
||||
movq %rax,%r8
|
||||
movq %rdi,%rax
|
||||
leaq (%r14,%r14,8),%r15
|
||||
movq %rdx,%r9
|
||||
mulq %r13
|
||||
movq %r13,16(%rsp)
|
||||
movq %rax,%r10
|
||||
movq %rdi,%rax
|
||||
leaq (%r14,%r15,2),%rdi
|
||||
movq %rdx,%r11
|
||||
mulq %rbp
|
||||
movq %rax,%r12
|
||||
movq 0(%rsi),%rax
|
||||
movq %rdx,%r13
|
||||
mulq %r14
|
||||
movq %rax,%r14
|
||||
movq 8(%rsi),%rax
|
||||
movq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rdi
|
||||
addq %rax,%r10
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rdi
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r12
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 16(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rdi
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r10
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 8(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rbp
|
||||
imulq $19,%rbp,%rdi
|
||||
addq %rax,%r10
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
movq 0(%rsp),%rbp
|
||||
addq %rax,%r14
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rbp
|
||||
addq %rax,%r8
|
||||
movq 16(%rsi),%rax
|
||||
adcq %rdx,%r9
|
||||
mulq %rbp
|
||||
addq %rax,%r10
|
||||
movq 24(%rsi),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq 32(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rbp
|
||||
addq %rax,%r14
|
||||
adcq %rdx,%r15
|
||||
|
||||
movq 32(%rsp),%rdi
|
||||
jmp .Lreduce51
|
||||
.Lfe51_mul_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_mul,.-x25519_fe51_mul
|
||||
|
||||
.globl x25519_fe51_sqr
|
||||
.type x25519_fe51_sqr,@function
|
||||
.align 32
|
||||
x25519_fe51_sqr:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_sqr_body:
|
||||
|
||||
movq 0(%rsi),%rax
|
||||
movq 16(%rsi),%r15
|
||||
movq 32(%rsi),%rbp
|
||||
|
||||
movq %rdi,32(%rsp)
|
||||
leaq (%rax,%rax,1),%r14
|
||||
mulq %rax
|
||||
movq %rax,%rbx
|
||||
movq 8(%rsi),%rax
|
||||
movq %rdx,%rcx
|
||||
mulq %r14
|
||||
movq %rax,%r8
|
||||
movq %r15,%rax
|
||||
movq %r15,0(%rsp)
|
||||
movq %rdx,%r9
|
||||
mulq %r14
|
||||
movq %rax,%r10
|
||||
movq 24(%rsi),%rax
|
||||
movq %rdx,%r11
|
||||
imulq $19,%rbp,%rdi
|
||||
mulq %r14
|
||||
movq %rax,%r12
|
||||
movq %rbp,%rax
|
||||
movq %rdx,%r13
|
||||
mulq %r14
|
||||
movq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
movq %rdx,%r15
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%r12
|
||||
movq 8(%rsi),%rax
|
||||
adcq %rdx,%r13
|
||||
|
||||
movq 24(%rsi),%rsi
|
||||
leaq (%rax,%rax,1),%rbp
|
||||
mulq %rax
|
||||
addq %rax,%r10
|
||||
movq 0(%rsp),%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r12
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r13
|
||||
mulq %rsi
|
||||
addq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r15
|
||||
imulq $19,%rsi,%rbp
|
||||
mulq %rdi
|
||||
addq %rax,%rbx
|
||||
leaq (%rsi,%rsi,1),%rax
|
||||
adcq %rdx,%rcx
|
||||
|
||||
mulq %rdi
|
||||
addq %rax,%r10
|
||||
movq %rsi,%rax
|
||||
adcq %rdx,%r11
|
||||
mulq %rbp
|
||||
addq %rax,%r8
|
||||
movq 0(%rsp),%rax
|
||||
adcq %rdx,%r9
|
||||
|
||||
leaq (%rax,%rax,1),%rsi
|
||||
mulq %rax
|
||||
addq %rax,%r14
|
||||
movq %rbp,%rax
|
||||
adcq %rdx,%r15
|
||||
mulq %rsi
|
||||
addq %rax,%rbx
|
||||
movq %rsi,%rax
|
||||
adcq %rdx,%rcx
|
||||
mulq %rdi
|
||||
addq %rax,%r8
|
||||
adcq %rdx,%r9
|
||||
|
||||
movq 32(%rsp),%rdi
|
||||
jmp .Lreduce51
|
||||
|
||||
.align 32
|
||||
.Lreduce51:
|
||||
movq $0x7ffffffffffff,%rbp
|
||||
|
||||
movq %r10,%rdx
|
||||
shrq $51,%r10
|
||||
shlq $13,%r11
|
||||
andq %rbp,%rdx
|
||||
orq %r10,%r11
|
||||
addq %r11,%r12
|
||||
adcq $0,%r13
|
||||
|
||||
movq %rbx,%rax
|
||||
shrq $51,%rbx
|
||||
shlq $13,%rcx
|
||||
andq %rbp,%rax
|
||||
orq %rbx,%rcx
|
||||
addq %rcx,%r8
|
||||
adcq $0,%r9
|
||||
|
||||
movq %r12,%rbx
|
||||
shrq $51,%r12
|
||||
shlq $13,%r13
|
||||
andq %rbp,%rbx
|
||||
orq %r12,%r13
|
||||
addq %r13,%r14
|
||||
adcq $0,%r15
|
||||
|
||||
movq %r8,%rcx
|
||||
shrq $51,%r8
|
||||
shlq $13,%r9
|
||||
andq %rbp,%rcx
|
||||
orq %r8,%r9
|
||||
addq %r9,%rdx
|
||||
|
||||
movq %r14,%r10
|
||||
shrq $51,%r14
|
||||
shlq $13,%r15
|
||||
andq %rbp,%r10
|
||||
orq %r14,%r15
|
||||
|
||||
leaq (%r15,%r15,8),%r14
|
||||
leaq (%r15,%r14,2),%r15
|
||||
addq %r15,%rax
|
||||
|
||||
movq %rdx,%r8
|
||||
andq %rbp,%rdx
|
||||
shrq $51,%r8
|
||||
addq %r8,%rbx
|
||||
|
||||
movq %rax,%r9
|
||||
andq %rbp,%rax
|
||||
shrq $51,%r9
|
||||
addq %r9,%rcx
|
||||
|
||||
movq %rax,0(%rdi)
|
||||
movq %rcx,8(%rdi)
|
||||
movq %rdx,16(%rdi)
|
||||
movq %rbx,24(%rdi)
|
||||
movq %r10,32(%rdi)
|
||||
|
||||
movq 40(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 48(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 56(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 64(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 72(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 80(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq 88(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 88
|
||||
.Lfe51_sqr_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_sqr,.-x25519_fe51_sqr
|
||||
|
||||
.globl x25519_fe51_mul121666
|
||||
.type x25519_fe51_mul121666,@function
|
||||
.align 32
|
||||
x25519_fe51_mul121666:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
leaq -40(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 40
|
||||
.Lfe51_mul121666_body:
|
||||
movl $121666,%eax
|
||||
|
||||
mulq 0(%rsi)
|
||||
movq %rax,%rbx
|
||||
movl $121666,%eax
|
||||
movq %rdx,%rcx
|
||||
mulq 8(%rsi)
|
||||
movq %rax,%r8
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r9
|
||||
mulq 16(%rsi)
|
||||
movq %rax,%r10
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r11
|
||||
mulq 24(%rsi)
|
||||
movq %rax,%r12
|
||||
movl $121666,%eax
|
||||
movq %rdx,%r13
|
||||
mulq 32(%rsi)
|
||||
movq %rax,%r14
|
||||
movq %rdx,%r15
|
||||
|
||||
jmp .Lreduce51
|
||||
.Lfe51_mul121666_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe51_mul121666,.-x25519_fe51_mul121666
|
||||
|
||||
.globl x25519_fe64_eligible
|
||||
.type x25519_fe64_eligible,@function
|
||||
.align 32
|
||||
x25519_fe64_eligible:
|
||||
movl OPENSSL_ia32cap_P+8(%rip),%ecx
|
||||
xorl %eax,%eax
|
||||
andl $0x80100,%ecx
|
||||
cmpl $0x80100,%ecx
|
||||
cmovel %ecx,%eax
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_eligible,.-x25519_fe64_eligible
|
||||
|
||||
.globl x25519_fe64_mul
|
||||
.type x25519_fe64_mul,@function
|
||||
.align 32
|
||||
x25519_fe64_mul:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
pushq %rdi
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rdi,-64
|
||||
leaq -16(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 16
|
||||
.Lfe64_mul_body:
|
||||
|
||||
movq %rdx,%rax
|
||||
movq 0(%rdx),%rbp
|
||||
movq 0(%rsi),%rdx
|
||||
movq 8(%rax),%rcx
|
||||
movq 16(%rax),%r14
|
||||
movq 24(%rax),%r15
|
||||
|
||||
mulxq %rbp,%r8,%rax
|
||||
xorl %edi,%edi
|
||||
mulxq %rcx,%r9,%rbx
|
||||
adcxq %rax,%r9
|
||||
mulxq %r14,%r10,%rax
|
||||
adcxq %rbx,%r10
|
||||
mulxq %r15,%r11,%r12
|
||||
movq 8(%rsi),%rdx
|
||||
adcxq %rax,%r11
|
||||
movq %r14,(%rsp)
|
||||
adcxq %rdi,%r12
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r9
|
||||
adcxq %rbx,%r10
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adoxq %rax,%r10
|
||||
adcxq %rbx,%r11
|
||||
mulxq %r14,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %r15,%rax,%r13
|
||||
movq 16(%rsi),%rdx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rdi,%r13
|
||||
adoxq %rdi,%r13
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adcxq %rax,%r10
|
||||
adoxq %rbx,%r11
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adcxq %rax,%r11
|
||||
adoxq %rbx,%r12
|
||||
mulxq %r14,%rax,%rbx
|
||||
adcxq %rax,%r12
|
||||
adoxq %rbx,%r13
|
||||
mulxq %r15,%rax,%r14
|
||||
movq 24(%rsi),%rdx
|
||||
adcxq %rax,%r13
|
||||
adoxq %rdi,%r14
|
||||
adcxq %rdi,%r14
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %rcx,%rax,%rbx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rbx,%r13
|
||||
mulxq (%rsp),%rax,%rbx
|
||||
adoxq %rax,%r13
|
||||
adcxq %rbx,%r14
|
||||
mulxq %r15,%rax,%r15
|
||||
movl $38,%edx
|
||||
adoxq %rax,%r14
|
||||
adcxq %rdi,%r15
|
||||
adoxq %rdi,%r15
|
||||
|
||||
jmp .Lreduce64
|
||||
.Lfe64_mul_epilogue:
|
||||
.cfi_endproc
|
||||
.size x25519_fe64_mul,.-x25519_fe64_mul
|
||||
|
||||
.globl x25519_fe64_sqr
|
||||
.type x25519_fe64_sqr,@function
|
||||
.align 32
|
||||
x25519_fe64_sqr:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
pushq %rdi
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rdi,-64
|
||||
leaq -16(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 16
|
||||
.Lfe64_sqr_body:
|
||||
|
||||
movq 0(%rsi),%rdx
|
||||
movq 8(%rsi),%rcx
|
||||
movq 16(%rsi),%rbp
|
||||
movq 24(%rsi),%rsi
|
||||
|
||||
|
||||
mulxq %rdx,%r8,%r15
|
||||
mulxq %rcx,%r9,%rax
|
||||
xorl %edi,%edi
|
||||
mulxq %rbp,%r10,%rbx
|
||||
adcxq %rax,%r10
|
||||
mulxq %rsi,%r11,%r12
|
||||
movq %rcx,%rdx
|
||||
adcxq %rbx,%r11
|
||||
adcxq %rdi,%r12
|
||||
|
||||
|
||||
mulxq %rbp,%rax,%rbx
|
||||
adoxq %rax,%r11
|
||||
adcxq %rbx,%r12
|
||||
mulxq %rsi,%rax,%r13
|
||||
movq %rbp,%rdx
|
||||
adoxq %rax,%r12
|
||||
adcxq %rdi,%r13
|
||||
|
||||
|
||||
mulxq %rsi,%rax,%r14
|
||||
movq %rcx,%rdx
|
||||
adoxq %rax,%r13
|
||||
adcxq %rdi,%r14
|
||||
adoxq %rdi,%r14
|
||||
|
||||
adcxq %r9,%r9
|
||||
adoxq %r15,%r9
|
||||
adcxq %r10,%r10
|
||||
mulxq %rdx,%rax,%rbx
|
||||
movq %rbp,%rdx
|
||||
adcxq %r11,%r11
|
||||
adoxq %rax,%r10
|
||||
adcxq %r12,%r12
|
||||
adoxq %rbx,%r11
|
||||
mulxq %rdx,%rax,%rbx
|
||||
movq %rsi,%rdx
|
||||
adcxq %r13,%r13
|
||||
adoxq %rax,%r12
|
||||
adcxq %r14,%r14
|
||||
adoxq %rbx,%r13
|
||||
mulxq %rdx,%rax,%r15
|
||||
movl $38,%edx
|
||||
adoxq %rax,%r14
|
||||
adcxq %rdi,%r15
|
||||
adoxq %rdi,%r15
|
||||
jmp .Lreduce64
|
||||
|
||||
.align 32
|
||||
.Lreduce64:
|
||||
mulxq %r12,%rax,%rbx
|
||||
adcxq %rax,%r8
|
||||
adoxq %rbx,%r9
|
||||
mulxq %r13,%rax,%rbx
|
||||
adcxq %rax,%r9
|
||||
adoxq %rbx,%r10
|
||||
mulxq %r14,%rax,%rbx
|
||||
adcxq %rax,%r10
|
||||
adoxq %rbx,%r11
|
||||
mulxq %r15,%rax,%r12
|
||||
adcxq %rax,%r11
|
||||
adoxq %rdi,%r12
|
||||
adcxq %rdi,%r12
|
||||
|
||||
movq 16(%rsp),%rdi
|
||||
imulq %rdx,%r12
|
||||
|
||||
addq %r12,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
movq 24(%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 32(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 40(%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 48(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 56(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 64(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
leaq 72(%rsp),%rsp
|
||||
.cfi_adjust_cfa_offset 88
|
||||
.Lfe64_sqr_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size x25519_fe64_sqr,.-x25519_fe64_sqr
|
||||
|
||||
.globl x25519_fe64_mul121666
|
||||
.type x25519_fe64_mul121666,@function
|
||||
.align 32
|
||||
x25519_fe64_mul121666:
|
||||
.Lfe64_mul121666_body:
|
||||
movl $121666,%edx
|
||||
mulxq 0(%rsi),%r8,%rcx
|
||||
mulxq 8(%rsi),%r9,%rax
|
||||
addq %rcx,%r9
|
||||
mulxq 16(%rsi),%r10,%rcx
|
||||
adcq %rax,%r10
|
||||
mulxq 24(%rsi),%r11,%rax
|
||||
adcq %rcx,%r11
|
||||
adcq $0,%rax
|
||||
|
||||
imulq $38,%rax,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_mul121666_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_mul121666,.-x25519_fe64_mul121666
|
||||
|
||||
.globl x25519_fe64_add
|
||||
.type x25519_fe64_add,@function
|
||||
.align 32
|
||||
x25519_fe64_add:
|
||||
.Lfe64_add_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
addq 0(%rdx),%r8
|
||||
adcq 8(%rdx),%r9
|
||||
adcq 16(%rdx),%r10
|
||||
adcq 24(%rdx),%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
movq %r9,8(%rdi)
|
||||
adcq $0,%r11
|
||||
movq %r10,16(%rdi)
|
||||
sbbq %rax,%rax
|
||||
movq %r11,24(%rdi)
|
||||
andq $38,%rax
|
||||
|
||||
addq %rax,%r8
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_add_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_add,.-x25519_fe64_add
|
||||
|
||||
.globl x25519_fe64_sub
|
||||
.type x25519_fe64_sub,@function
|
||||
.align 32
|
||||
x25519_fe64_sub:
|
||||
.Lfe64_sub_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
subq 0(%rdx),%r8
|
||||
sbbq 8(%rdx),%r9
|
||||
sbbq 16(%rdx),%r10
|
||||
sbbq 24(%rdx),%r11
|
||||
|
||||
sbbq %rax,%rax
|
||||
andq $38,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
sbbq $0,%r9
|
||||
sbbq $0,%r10
|
||||
movq %r9,8(%rdi)
|
||||
sbbq $0,%r11
|
||||
movq %r10,16(%rdi)
|
||||
sbbq %rax,%rax
|
||||
movq %r11,24(%rdi)
|
||||
andq $38,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
movq %r8,0(%rdi)
|
||||
|
||||
.Lfe64_sub_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_sub,.-x25519_fe64_sub
|
||||
|
||||
.globl x25519_fe64_tobytes
|
||||
.type x25519_fe64_tobytes,@function
|
||||
.align 32
|
||||
x25519_fe64_tobytes:
|
||||
.Lfe64_to_body:
|
||||
movq 0(%rsi),%r8
|
||||
movq 8(%rsi),%r9
|
||||
movq 16(%rsi),%r10
|
||||
movq 24(%rsi),%r11
|
||||
|
||||
|
||||
leaq (%r11,%r11,1),%rax
|
||||
sarq $63,%r11
|
||||
shrq $1,%rax
|
||||
andq $19,%r11
|
||||
addq $19,%r11
|
||||
|
||||
addq %r11,%r8
|
||||
adcq $0,%r9
|
||||
adcq $0,%r10
|
||||
adcq $0,%rax
|
||||
|
||||
leaq (%rax,%rax,1),%r11
|
||||
sarq $63,%rax
|
||||
shrq $1,%r11
|
||||
notq %rax
|
||||
andq $19,%rax
|
||||
|
||||
subq %rax,%r8
|
||||
sbbq $0,%r9
|
||||
sbbq $0,%r10
|
||||
sbbq $0,%r11
|
||||
|
||||
movq %r8,0(%rdi)
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
|
||||
.Lfe64_to_epilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.size x25519_fe64_tobytes,.-x25519_fe64_tobytes
|
||||
.byte 88,50,53,53,49,57,32,112,114,105,109,105,116,105,118,101,115,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* WARNING: do not edit! */
|
||||
/* Generated by Makefile from crypto/include/internal/bn_conf.h.in */
|
||||
/*
|
||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef HEADER_BN_CONF_H
|
||||
# define HEADER_BN_CONF_H
|
||||
|
||||
/*
|
||||
* The contents of this file are not used in the UEFI build, as
|
||||
* both 32-bit and 64-bit builds are supported from a single run
|
||||
* of the Configure script.
|
||||
*/
|
||||
|
||||
/* Should we define BN_DIV2W here? */
|
||||
|
||||
/* Only one for the following should be defined */
|
||||
#define SIXTY_FOUR_BIT_LONG
|
||||
#undef SIXTY_FOUR_BIT
|
||||
#undef THIRTY_TWO_BIT
|
||||
|
||||
#endif
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/* WARNING: do not edit! */
|
||||
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
|
||||
/*
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#ifndef HEADER_DSO_CONF_H
|
||||
# define HEADER_DSO_CONF_H
|
||||
|
||||
# define DSO_DLFCN
|
||||
# define HAVE_DLFCN_H
|
||||
# define DSO_EXTENSION ".so"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,683 @@
|
||||
.text
|
||||
.align 16
|
||||
|
||||
.globl md5_block_asm_data_order
|
||||
.type md5_block_asm_data_order,@function
|
||||
md5_block_asm_data_order:
|
||||
.cfi_startproc
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-16
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-40
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-48
|
||||
.Lprologue:
|
||||
|
||||
|
||||
|
||||
|
||||
movq %rdi,%rbp
|
||||
shlq $6,%rdx
|
||||
leaq (%rsi,%rdx,1),%rdi
|
||||
movl 0(%rbp),%eax
|
||||
movl 4(%rbp),%ebx
|
||||
movl 8(%rbp),%ecx
|
||||
movl 12(%rbp),%edx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cmpq %rdi,%rsi
|
||||
je .Lend
|
||||
|
||||
|
||||
.Lloop:
|
||||
movl %eax,%r8d
|
||||
movl %ebx,%r9d
|
||||
movl %ecx,%r14d
|
||||
movl %edx,%r15d
|
||||
movl 0(%rsi),%r10d
|
||||
movl %edx,%r11d
|
||||
xorl %ecx,%r11d
|
||||
leal -680876936(%rax,%r10,1),%eax
|
||||
andl %ebx,%r11d
|
||||
movl 4(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%eax
|
||||
roll $7,%eax
|
||||
movl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
xorl %ebx,%r11d
|
||||
leal -389564586(%rdx,%r10,1),%edx
|
||||
andl %eax,%r11d
|
||||
movl 8(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $12,%edx
|
||||
movl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
xorl %eax,%r11d
|
||||
leal 606105819(%rcx,%r10,1),%ecx
|
||||
andl %edx,%r11d
|
||||
movl 12(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%ecx
|
||||
roll $17,%ecx
|
||||
movl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
xorl %edx,%r11d
|
||||
leal -1044525330(%rbx,%r10,1),%ebx
|
||||
andl %ecx,%r11d
|
||||
movl 16(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $22,%ebx
|
||||
movl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
xorl %ecx,%r11d
|
||||
leal -176418897(%rax,%r10,1),%eax
|
||||
andl %ebx,%r11d
|
||||
movl 20(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%eax
|
||||
roll $7,%eax
|
||||
movl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
xorl %ebx,%r11d
|
||||
leal 1200080426(%rdx,%r10,1),%edx
|
||||
andl %eax,%r11d
|
||||
movl 24(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $12,%edx
|
||||
movl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
xorl %eax,%r11d
|
||||
leal -1473231341(%rcx,%r10,1),%ecx
|
||||
andl %edx,%r11d
|
||||
movl 28(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%ecx
|
||||
roll $17,%ecx
|
||||
movl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
xorl %edx,%r11d
|
||||
leal -45705983(%rbx,%r10,1),%ebx
|
||||
andl %ecx,%r11d
|
||||
movl 32(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $22,%ebx
|
||||
movl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
xorl %ecx,%r11d
|
||||
leal 1770035416(%rax,%r10,1),%eax
|
||||
andl %ebx,%r11d
|
||||
movl 36(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%eax
|
||||
roll $7,%eax
|
||||
movl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
xorl %ebx,%r11d
|
||||
leal -1958414417(%rdx,%r10,1),%edx
|
||||
andl %eax,%r11d
|
||||
movl 40(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $12,%edx
|
||||
movl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
xorl %eax,%r11d
|
||||
leal -42063(%rcx,%r10,1),%ecx
|
||||
andl %edx,%r11d
|
||||
movl 44(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%ecx
|
||||
roll $17,%ecx
|
||||
movl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
xorl %edx,%r11d
|
||||
leal -1990404162(%rbx,%r10,1),%ebx
|
||||
andl %ecx,%r11d
|
||||
movl 48(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $22,%ebx
|
||||
movl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
xorl %ecx,%r11d
|
||||
leal 1804603682(%rax,%r10,1),%eax
|
||||
andl %ebx,%r11d
|
||||
movl 52(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%eax
|
||||
roll $7,%eax
|
||||
movl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
xorl %ebx,%r11d
|
||||
leal -40341101(%rdx,%r10,1),%edx
|
||||
andl %eax,%r11d
|
||||
movl 56(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $12,%edx
|
||||
movl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
xorl %eax,%r11d
|
||||
leal -1502002290(%rcx,%r10,1),%ecx
|
||||
andl %edx,%r11d
|
||||
movl 60(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%ecx
|
||||
roll $17,%ecx
|
||||
movl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
xorl %edx,%r11d
|
||||
leal 1236535329(%rbx,%r10,1),%ebx
|
||||
andl %ecx,%r11d
|
||||
movl 4(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $22,%ebx
|
||||
movl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
movl %edx,%r11d
|
||||
movl %edx,%r12d
|
||||
notl %r11d
|
||||
andl %ebx,%r12d
|
||||
leal -165796510(%rax,%r10,1),%eax
|
||||
andl %ecx,%r11d
|
||||
movl 24(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ecx,%r11d
|
||||
addl %r12d,%eax
|
||||
movl %ecx,%r12d
|
||||
roll $5,%eax
|
||||
addl %ebx,%eax
|
||||
notl %r11d
|
||||
andl %eax,%r12d
|
||||
leal -1069501632(%rdx,%r10,1),%edx
|
||||
andl %ebx,%r11d
|
||||
movl 44(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ebx,%r11d
|
||||
addl %r12d,%edx
|
||||
movl %ebx,%r12d
|
||||
roll $9,%edx
|
||||
addl %eax,%edx
|
||||
notl %r11d
|
||||
andl %edx,%r12d
|
||||
leal 643717713(%rcx,%r10,1),%ecx
|
||||
andl %eax,%r11d
|
||||
movl 0(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %eax,%r11d
|
||||
addl %r12d,%ecx
|
||||
movl %eax,%r12d
|
||||
roll $14,%ecx
|
||||
addl %edx,%ecx
|
||||
notl %r11d
|
||||
andl %ecx,%r12d
|
||||
leal -373897302(%rbx,%r10,1),%ebx
|
||||
andl %edx,%r11d
|
||||
movl 20(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %edx,%r11d
|
||||
addl %r12d,%ebx
|
||||
movl %edx,%r12d
|
||||
roll $20,%ebx
|
||||
addl %ecx,%ebx
|
||||
notl %r11d
|
||||
andl %ebx,%r12d
|
||||
leal -701558691(%rax,%r10,1),%eax
|
||||
andl %ecx,%r11d
|
||||
movl 40(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ecx,%r11d
|
||||
addl %r12d,%eax
|
||||
movl %ecx,%r12d
|
||||
roll $5,%eax
|
||||
addl %ebx,%eax
|
||||
notl %r11d
|
||||
andl %eax,%r12d
|
||||
leal 38016083(%rdx,%r10,1),%edx
|
||||
andl %ebx,%r11d
|
||||
movl 60(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ebx,%r11d
|
||||
addl %r12d,%edx
|
||||
movl %ebx,%r12d
|
||||
roll $9,%edx
|
||||
addl %eax,%edx
|
||||
notl %r11d
|
||||
andl %edx,%r12d
|
||||
leal -660478335(%rcx,%r10,1),%ecx
|
||||
andl %eax,%r11d
|
||||
movl 16(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %eax,%r11d
|
||||
addl %r12d,%ecx
|
||||
movl %eax,%r12d
|
||||
roll $14,%ecx
|
||||
addl %edx,%ecx
|
||||
notl %r11d
|
||||
andl %ecx,%r12d
|
||||
leal -405537848(%rbx,%r10,1),%ebx
|
||||
andl %edx,%r11d
|
||||
movl 36(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %edx,%r11d
|
||||
addl %r12d,%ebx
|
||||
movl %edx,%r12d
|
||||
roll $20,%ebx
|
||||
addl %ecx,%ebx
|
||||
notl %r11d
|
||||
andl %ebx,%r12d
|
||||
leal 568446438(%rax,%r10,1),%eax
|
||||
andl %ecx,%r11d
|
||||
movl 56(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ecx,%r11d
|
||||
addl %r12d,%eax
|
||||
movl %ecx,%r12d
|
||||
roll $5,%eax
|
||||
addl %ebx,%eax
|
||||
notl %r11d
|
||||
andl %eax,%r12d
|
||||
leal -1019803690(%rdx,%r10,1),%edx
|
||||
andl %ebx,%r11d
|
||||
movl 12(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ebx,%r11d
|
||||
addl %r12d,%edx
|
||||
movl %ebx,%r12d
|
||||
roll $9,%edx
|
||||
addl %eax,%edx
|
||||
notl %r11d
|
||||
andl %edx,%r12d
|
||||
leal -187363961(%rcx,%r10,1),%ecx
|
||||
andl %eax,%r11d
|
||||
movl 32(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %eax,%r11d
|
||||
addl %r12d,%ecx
|
||||
movl %eax,%r12d
|
||||
roll $14,%ecx
|
||||
addl %edx,%ecx
|
||||
notl %r11d
|
||||
andl %ecx,%r12d
|
||||
leal 1163531501(%rbx,%r10,1),%ebx
|
||||
andl %edx,%r11d
|
||||
movl 52(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %edx,%r11d
|
||||
addl %r12d,%ebx
|
||||
movl %edx,%r12d
|
||||
roll $20,%ebx
|
||||
addl %ecx,%ebx
|
||||
notl %r11d
|
||||
andl %ebx,%r12d
|
||||
leal -1444681467(%rax,%r10,1),%eax
|
||||
andl %ecx,%r11d
|
||||
movl 8(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ecx,%r11d
|
||||
addl %r12d,%eax
|
||||
movl %ecx,%r12d
|
||||
roll $5,%eax
|
||||
addl %ebx,%eax
|
||||
notl %r11d
|
||||
andl %eax,%r12d
|
||||
leal -51403784(%rdx,%r10,1),%edx
|
||||
andl %ebx,%r11d
|
||||
movl 28(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %ebx,%r11d
|
||||
addl %r12d,%edx
|
||||
movl %ebx,%r12d
|
||||
roll $9,%edx
|
||||
addl %eax,%edx
|
||||
notl %r11d
|
||||
andl %edx,%r12d
|
||||
leal 1735328473(%rcx,%r10,1),%ecx
|
||||
andl %eax,%r11d
|
||||
movl 48(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %eax,%r11d
|
||||
addl %r12d,%ecx
|
||||
movl %eax,%r12d
|
||||
roll $14,%ecx
|
||||
addl %edx,%ecx
|
||||
notl %r11d
|
||||
andl %ecx,%r12d
|
||||
leal -1926607734(%rbx,%r10,1),%ebx
|
||||
andl %edx,%r11d
|
||||
movl 20(%rsi),%r10d
|
||||
orl %r11d,%r12d
|
||||
movl %edx,%r11d
|
||||
addl %r12d,%ebx
|
||||
movl %edx,%r12d
|
||||
roll $20,%ebx
|
||||
addl %ecx,%ebx
|
||||
movl %ecx,%r11d
|
||||
leal -378558(%rax,%r10,1),%eax
|
||||
xorl %edx,%r11d
|
||||
movl 32(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl %ebx,%r11d
|
||||
roll $4,%eax
|
||||
addl %ebx,%eax
|
||||
leal -2022574463(%rdx,%r10,1),%edx
|
||||
xorl %ecx,%r11d
|
||||
movl 44(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $11,%edx
|
||||
movl %eax,%r11d
|
||||
addl %eax,%edx
|
||||
leal 1839030562(%rcx,%r10,1),%ecx
|
||||
xorl %ebx,%r11d
|
||||
movl 56(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl %edx,%r11d
|
||||
roll $16,%ecx
|
||||
addl %edx,%ecx
|
||||
leal -35309556(%rbx,%r10,1),%ebx
|
||||
xorl %eax,%r11d
|
||||
movl 4(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $23,%ebx
|
||||
movl %ecx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal -1530992060(%rax,%r10,1),%eax
|
||||
xorl %edx,%r11d
|
||||
movl 16(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl %ebx,%r11d
|
||||
roll $4,%eax
|
||||
addl %ebx,%eax
|
||||
leal 1272893353(%rdx,%r10,1),%edx
|
||||
xorl %ecx,%r11d
|
||||
movl 28(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $11,%edx
|
||||
movl %eax,%r11d
|
||||
addl %eax,%edx
|
||||
leal -155497632(%rcx,%r10,1),%ecx
|
||||
xorl %ebx,%r11d
|
||||
movl 40(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl %edx,%r11d
|
||||
roll $16,%ecx
|
||||
addl %edx,%ecx
|
||||
leal -1094730640(%rbx,%r10,1),%ebx
|
||||
xorl %eax,%r11d
|
||||
movl 52(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $23,%ebx
|
||||
movl %ecx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal 681279174(%rax,%r10,1),%eax
|
||||
xorl %edx,%r11d
|
||||
movl 0(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl %ebx,%r11d
|
||||
roll $4,%eax
|
||||
addl %ebx,%eax
|
||||
leal -358537222(%rdx,%r10,1),%edx
|
||||
xorl %ecx,%r11d
|
||||
movl 12(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $11,%edx
|
||||
movl %eax,%r11d
|
||||
addl %eax,%edx
|
||||
leal -722521979(%rcx,%r10,1),%ecx
|
||||
xorl %ebx,%r11d
|
||||
movl 24(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl %edx,%r11d
|
||||
roll $16,%ecx
|
||||
addl %edx,%ecx
|
||||
leal 76029189(%rbx,%r10,1),%ebx
|
||||
xorl %eax,%r11d
|
||||
movl 36(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $23,%ebx
|
||||
movl %ecx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal -640364487(%rax,%r10,1),%eax
|
||||
xorl %edx,%r11d
|
||||
movl 48(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl %ebx,%r11d
|
||||
roll $4,%eax
|
||||
addl %ebx,%eax
|
||||
leal -421815835(%rdx,%r10,1),%edx
|
||||
xorl %ecx,%r11d
|
||||
movl 60(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%edx
|
||||
roll $11,%edx
|
||||
movl %eax,%r11d
|
||||
addl %eax,%edx
|
||||
leal 530742520(%rcx,%r10,1),%ecx
|
||||
xorl %ebx,%r11d
|
||||
movl 8(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl %edx,%r11d
|
||||
roll $16,%ecx
|
||||
addl %edx,%ecx
|
||||
leal -995338651(%rbx,%r10,1),%ebx
|
||||
xorl %eax,%r11d
|
||||
movl 0(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%ebx
|
||||
roll $23,%ebx
|
||||
movl %ecx,%r11d
|
||||
addl %ecx,%ebx
|
||||
movl $0xffffffff,%r11d
|
||||
xorl %edx,%r11d
|
||||
leal -198630844(%rax,%r10,1),%eax
|
||||
orl %ebx,%r11d
|
||||
movl 28(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl $0xffffffff,%r11d
|
||||
roll $6,%eax
|
||||
xorl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
leal 1126891415(%rdx,%r10,1),%edx
|
||||
orl %eax,%r11d
|
||||
movl 56(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%edx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $10,%edx
|
||||
xorl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
leal -1416354905(%rcx,%r10,1),%ecx
|
||||
orl %edx,%r11d
|
||||
movl 20(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $15,%ecx
|
||||
xorl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
leal -57434055(%rbx,%r10,1),%ebx
|
||||
orl %ecx,%r11d
|
||||
movl 48(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ebx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $21,%ebx
|
||||
xorl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal 1700485571(%rax,%r10,1),%eax
|
||||
orl %ebx,%r11d
|
||||
movl 12(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl $0xffffffff,%r11d
|
||||
roll $6,%eax
|
||||
xorl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
leal -1894986606(%rdx,%r10,1),%edx
|
||||
orl %eax,%r11d
|
||||
movl 40(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%edx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $10,%edx
|
||||
xorl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
leal -1051523(%rcx,%r10,1),%ecx
|
||||
orl %edx,%r11d
|
||||
movl 4(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $15,%ecx
|
||||
xorl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
leal -2054922799(%rbx,%r10,1),%ebx
|
||||
orl %ecx,%r11d
|
||||
movl 32(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ebx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $21,%ebx
|
||||
xorl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal 1873313359(%rax,%r10,1),%eax
|
||||
orl %ebx,%r11d
|
||||
movl 60(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl $0xffffffff,%r11d
|
||||
roll $6,%eax
|
||||
xorl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
leal -30611744(%rdx,%r10,1),%edx
|
||||
orl %eax,%r11d
|
||||
movl 24(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%edx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $10,%edx
|
||||
xorl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
leal -1560198380(%rcx,%r10,1),%ecx
|
||||
orl %edx,%r11d
|
||||
movl 52(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $15,%ecx
|
||||
xorl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
leal 1309151649(%rbx,%r10,1),%ebx
|
||||
orl %ecx,%r11d
|
||||
movl 16(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ebx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $21,%ebx
|
||||
xorl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
leal -145523070(%rax,%r10,1),%eax
|
||||
orl %ebx,%r11d
|
||||
movl 44(%rsi),%r10d
|
||||
xorl %ecx,%r11d
|
||||
addl %r11d,%eax
|
||||
movl $0xffffffff,%r11d
|
||||
roll $6,%eax
|
||||
xorl %ecx,%r11d
|
||||
addl %ebx,%eax
|
||||
leal -1120210379(%rdx,%r10,1),%edx
|
||||
orl %eax,%r11d
|
||||
movl 8(%rsi),%r10d
|
||||
xorl %ebx,%r11d
|
||||
addl %r11d,%edx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $10,%edx
|
||||
xorl %ebx,%r11d
|
||||
addl %eax,%edx
|
||||
leal 718787259(%rcx,%r10,1),%ecx
|
||||
orl %edx,%r11d
|
||||
movl 36(%rsi),%r10d
|
||||
xorl %eax,%r11d
|
||||
addl %r11d,%ecx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $15,%ecx
|
||||
xorl %eax,%r11d
|
||||
addl %edx,%ecx
|
||||
leal -343485551(%rbx,%r10,1),%ebx
|
||||
orl %ecx,%r11d
|
||||
movl 0(%rsi),%r10d
|
||||
xorl %edx,%r11d
|
||||
addl %r11d,%ebx
|
||||
movl $0xffffffff,%r11d
|
||||
roll $21,%ebx
|
||||
xorl %edx,%r11d
|
||||
addl %ecx,%ebx
|
||||
|
||||
addl %r8d,%eax
|
||||
addl %r9d,%ebx
|
||||
addl %r14d,%ecx
|
||||
addl %r15d,%edx
|
||||
|
||||
|
||||
addq $64,%rsi
|
||||
cmpq %rdi,%rsi
|
||||
jb .Lloop
|
||||
|
||||
|
||||
.Lend:
|
||||
movl %eax,0(%rbp)
|
||||
movl %ebx,4(%rbp)
|
||||
movl %ecx,8(%rbp)
|
||||
movl %edx,12(%rbp)
|
||||
|
||||
movq (%rsp),%r15
|
||||
.cfi_restore %r15
|
||||
movq 8(%rsp),%r14
|
||||
.cfi_restore %r14
|
||||
movq 16(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 24(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
movq 32(%rsp),%rbp
|
||||
.cfi_restore %rbp
|
||||
addq $40,%rsp
|
||||
.cfi_adjust_cfa_offset -40
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size md5_block_asm_data_order,.-md5_block_asm_data_order
|
||||
+785
@@ -0,0 +1,785 @@
|
||||
.text
|
||||
|
||||
.type _aesni_ctr32_ghash_6x,@function
|
||||
.align 32
|
||||
_aesni_ctr32_ghash_6x:
|
||||
vmovdqu 32(%r11),%xmm2
|
||||
subq $6,%rdx
|
||||
vpxor %xmm4,%xmm4,%xmm4
|
||||
vmovdqu 0-128(%rcx),%xmm15
|
||||
vpaddb %xmm2,%xmm1,%xmm10
|
||||
vpaddb %xmm2,%xmm10,%xmm11
|
||||
vpaddb %xmm2,%xmm11,%xmm12
|
||||
vpaddb %xmm2,%xmm12,%xmm13
|
||||
vpaddb %xmm2,%xmm13,%xmm14
|
||||
vpxor %xmm15,%xmm1,%xmm9
|
||||
vmovdqu %xmm4,16+8(%rsp)
|
||||
jmp .Loop6x
|
||||
|
||||
.align 32
|
||||
.Loop6x:
|
||||
addl $100663296,%ebx
|
||||
jc .Lhandle_ctr32
|
||||
vmovdqu 0-32(%r9),%xmm3
|
||||
vpaddb %xmm2,%xmm14,%xmm1
|
||||
vpxor %xmm15,%xmm10,%xmm10
|
||||
vpxor %xmm15,%xmm11,%xmm11
|
||||
|
||||
.Lresume_ctr32:
|
||||
vmovdqu %xmm1,(%r8)
|
||||
vpclmulqdq $0x10,%xmm3,%xmm7,%xmm5
|
||||
vpxor %xmm15,%xmm12,%xmm12
|
||||
vmovups 16-128(%rcx),%xmm2
|
||||
vpclmulqdq $0x01,%xmm3,%xmm7,%xmm6
|
||||
xorq %r12,%r12
|
||||
cmpq %r14,%r15
|
||||
|
||||
vaesenc %xmm2,%xmm9,%xmm9
|
||||
vmovdqu 48+8(%rsp),%xmm0
|
||||
vpxor %xmm15,%xmm13,%xmm13
|
||||
vpclmulqdq $0x00,%xmm3,%xmm7,%xmm1
|
||||
vaesenc %xmm2,%xmm10,%xmm10
|
||||
vpxor %xmm15,%xmm14,%xmm14
|
||||
setnc %r12b
|
||||
vpclmulqdq $0x11,%xmm3,%xmm7,%xmm7
|
||||
vaesenc %xmm2,%xmm11,%xmm11
|
||||
vmovdqu 16-32(%r9),%xmm3
|
||||
negq %r12
|
||||
vaesenc %xmm2,%xmm12,%xmm12
|
||||
vpxor %xmm5,%xmm6,%xmm6
|
||||
vpclmulqdq $0x00,%xmm3,%xmm0,%xmm5
|
||||
vpxor %xmm4,%xmm8,%xmm8
|
||||
vaesenc %xmm2,%xmm13,%xmm13
|
||||
vpxor %xmm5,%xmm1,%xmm4
|
||||
andq $0x60,%r12
|
||||
vmovups 32-128(%rcx),%xmm15
|
||||
vpclmulqdq $0x10,%xmm3,%xmm0,%xmm1
|
||||
vaesenc %xmm2,%xmm14,%xmm14
|
||||
|
||||
vpclmulqdq $0x01,%xmm3,%xmm0,%xmm2
|
||||
leaq (%r14,%r12,1),%r14
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor 16+8(%rsp),%xmm8,%xmm8
|
||||
vpclmulqdq $0x11,%xmm3,%xmm0,%xmm3
|
||||
vmovdqu 64+8(%rsp),%xmm0
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
movbeq 88(%r14),%r13
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
movbeq 80(%r14),%r12
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
movq %r13,32+8(%rsp)
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
movq %r12,40+8(%rsp)
|
||||
vmovdqu 48-32(%r9),%xmm5
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vmovups 48-128(%rcx),%xmm15
|
||||
vpxor %xmm1,%xmm6,%xmm6
|
||||
vpclmulqdq $0x00,%xmm5,%xmm0,%xmm1
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm2,%xmm6,%xmm6
|
||||
vpclmulqdq $0x10,%xmm5,%xmm0,%xmm2
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vpxor %xmm3,%xmm7,%xmm7
|
||||
vpclmulqdq $0x01,%xmm5,%xmm0,%xmm3
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vpclmulqdq $0x11,%xmm5,%xmm0,%xmm5
|
||||
vmovdqu 80+8(%rsp),%xmm0
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vpxor %xmm1,%xmm4,%xmm4
|
||||
vmovdqu 64-32(%r9),%xmm1
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vmovups 64-128(%rcx),%xmm15
|
||||
vpxor %xmm2,%xmm6,%xmm6
|
||||
vpclmulqdq $0x00,%xmm1,%xmm0,%xmm2
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm3,%xmm6,%xmm6
|
||||
vpclmulqdq $0x10,%xmm1,%xmm0,%xmm3
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
movbeq 72(%r14),%r13
|
||||
vpxor %xmm5,%xmm7,%xmm7
|
||||
vpclmulqdq $0x01,%xmm1,%xmm0,%xmm5
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
movbeq 64(%r14),%r12
|
||||
vpclmulqdq $0x11,%xmm1,%xmm0,%xmm1
|
||||
vmovdqu 96+8(%rsp),%xmm0
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
movq %r13,48+8(%rsp)
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
movq %r12,56+8(%rsp)
|
||||
vpxor %xmm2,%xmm4,%xmm4
|
||||
vmovdqu 96-32(%r9),%xmm2
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vmovups 80-128(%rcx),%xmm15
|
||||
vpxor %xmm3,%xmm6,%xmm6
|
||||
vpclmulqdq $0x00,%xmm2,%xmm0,%xmm3
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm5,%xmm6,%xmm6
|
||||
vpclmulqdq $0x10,%xmm2,%xmm0,%xmm5
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
movbeq 56(%r14),%r13
|
||||
vpxor %xmm1,%xmm7,%xmm7
|
||||
vpclmulqdq $0x01,%xmm2,%xmm0,%xmm1
|
||||
vpxor 112+8(%rsp),%xmm8,%xmm8
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
movbeq 48(%r14),%r12
|
||||
vpclmulqdq $0x11,%xmm2,%xmm0,%xmm2
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
movq %r13,64+8(%rsp)
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
movq %r12,72+8(%rsp)
|
||||
vpxor %xmm3,%xmm4,%xmm4
|
||||
vmovdqu 112-32(%r9),%xmm3
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vmovups 96-128(%rcx),%xmm15
|
||||
vpxor %xmm5,%xmm6,%xmm6
|
||||
vpclmulqdq $0x10,%xmm3,%xmm8,%xmm5
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm1,%xmm6,%xmm6
|
||||
vpclmulqdq $0x01,%xmm3,%xmm8,%xmm1
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
movbeq 40(%r14),%r13
|
||||
vpxor %xmm2,%xmm7,%xmm7
|
||||
vpclmulqdq $0x00,%xmm3,%xmm8,%xmm2
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
movbeq 32(%r14),%r12
|
||||
vpclmulqdq $0x11,%xmm3,%xmm8,%xmm8
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
movq %r13,80+8(%rsp)
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
movq %r12,88+8(%rsp)
|
||||
vpxor %xmm5,%xmm6,%xmm6
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
vpxor %xmm1,%xmm6,%xmm6
|
||||
|
||||
vmovups 112-128(%rcx),%xmm15
|
||||
vpslldq $8,%xmm6,%xmm5
|
||||
vpxor %xmm2,%xmm4,%xmm4
|
||||
vmovdqu 16(%r11),%xmm3
|
||||
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm8,%xmm7,%xmm7
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vpxor %xmm5,%xmm4,%xmm4
|
||||
movbeq 24(%r14),%r13
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
movbeq 16(%r14),%r12
|
||||
vpalignr $8,%xmm4,%xmm4,%xmm0
|
||||
vpclmulqdq $0x10,%xmm3,%xmm4,%xmm4
|
||||
movq %r13,96+8(%rsp)
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
movq %r12,104+8(%rsp)
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vmovups 128-128(%rcx),%xmm1
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vaesenc %xmm1,%xmm9,%xmm9
|
||||
vmovups 144-128(%rcx),%xmm15
|
||||
vaesenc %xmm1,%xmm10,%xmm10
|
||||
vpsrldq $8,%xmm6,%xmm6
|
||||
vaesenc %xmm1,%xmm11,%xmm11
|
||||
vpxor %xmm6,%xmm7,%xmm7
|
||||
vaesenc %xmm1,%xmm12,%xmm12
|
||||
vpxor %xmm0,%xmm4,%xmm4
|
||||
movbeq 8(%r14),%r13
|
||||
vaesenc %xmm1,%xmm13,%xmm13
|
||||
movbeq 0(%r14),%r12
|
||||
vaesenc %xmm1,%xmm14,%xmm14
|
||||
vmovups 160-128(%rcx),%xmm1
|
||||
cmpl $11,%ebp
|
||||
jb .Lenc_tail
|
||||
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vaesenc %xmm1,%xmm9,%xmm9
|
||||
vaesenc %xmm1,%xmm10,%xmm10
|
||||
vaesenc %xmm1,%xmm11,%xmm11
|
||||
vaesenc %xmm1,%xmm12,%xmm12
|
||||
vaesenc %xmm1,%xmm13,%xmm13
|
||||
vmovups 176-128(%rcx),%xmm15
|
||||
vaesenc %xmm1,%xmm14,%xmm14
|
||||
vmovups 192-128(%rcx),%xmm1
|
||||
je .Lenc_tail
|
||||
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
|
||||
vaesenc %xmm1,%xmm9,%xmm9
|
||||
vaesenc %xmm1,%xmm10,%xmm10
|
||||
vaesenc %xmm1,%xmm11,%xmm11
|
||||
vaesenc %xmm1,%xmm12,%xmm12
|
||||
vaesenc %xmm1,%xmm13,%xmm13
|
||||
vmovups 208-128(%rcx),%xmm15
|
||||
vaesenc %xmm1,%xmm14,%xmm14
|
||||
vmovups 224-128(%rcx),%xmm1
|
||||
jmp .Lenc_tail
|
||||
|
||||
.align 32
|
||||
.Lhandle_ctr32:
|
||||
vmovdqu (%r11),%xmm0
|
||||
vpshufb %xmm0,%xmm1,%xmm6
|
||||
vmovdqu 48(%r11),%xmm5
|
||||
vpaddd 64(%r11),%xmm6,%xmm10
|
||||
vpaddd %xmm5,%xmm6,%xmm11
|
||||
vmovdqu 0-32(%r9),%xmm3
|
||||
vpaddd %xmm5,%xmm10,%xmm12
|
||||
vpshufb %xmm0,%xmm10,%xmm10
|
||||
vpaddd %xmm5,%xmm11,%xmm13
|
||||
vpshufb %xmm0,%xmm11,%xmm11
|
||||
vpxor %xmm15,%xmm10,%xmm10
|
||||
vpaddd %xmm5,%xmm12,%xmm14
|
||||
vpshufb %xmm0,%xmm12,%xmm12
|
||||
vpxor %xmm15,%xmm11,%xmm11
|
||||
vpaddd %xmm5,%xmm13,%xmm1
|
||||
vpshufb %xmm0,%xmm13,%xmm13
|
||||
vpshufb %xmm0,%xmm14,%xmm14
|
||||
vpshufb %xmm0,%xmm1,%xmm1
|
||||
jmp .Lresume_ctr32
|
||||
|
||||
.align 32
|
||||
.Lenc_tail:
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vmovdqu %xmm7,16+8(%rsp)
|
||||
vpalignr $8,%xmm4,%xmm4,%xmm8
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vpclmulqdq $0x10,%xmm3,%xmm4,%xmm4
|
||||
vpxor 0(%rdi),%xmm1,%xmm2
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vpxor 16(%rdi),%xmm1,%xmm0
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vpxor 32(%rdi),%xmm1,%xmm5
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vpxor 48(%rdi),%xmm1,%xmm6
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
vpxor 64(%rdi),%xmm1,%xmm7
|
||||
vpxor 80(%rdi),%xmm1,%xmm3
|
||||
vmovdqu (%r8),%xmm1
|
||||
|
||||
vaesenclast %xmm2,%xmm9,%xmm9
|
||||
vmovdqu 32(%r11),%xmm2
|
||||
vaesenclast %xmm0,%xmm10,%xmm10
|
||||
vpaddb %xmm2,%xmm1,%xmm0
|
||||
movq %r13,112+8(%rsp)
|
||||
leaq 96(%rdi),%rdi
|
||||
vaesenclast %xmm5,%xmm11,%xmm11
|
||||
vpaddb %xmm2,%xmm0,%xmm5
|
||||
movq %r12,120+8(%rsp)
|
||||
leaq 96(%rsi),%rsi
|
||||
vmovdqu 0-128(%rcx),%xmm15
|
||||
vaesenclast %xmm6,%xmm12,%xmm12
|
||||
vpaddb %xmm2,%xmm5,%xmm6
|
||||
vaesenclast %xmm7,%xmm13,%xmm13
|
||||
vpaddb %xmm2,%xmm6,%xmm7
|
||||
vaesenclast %xmm3,%xmm14,%xmm14
|
||||
vpaddb %xmm2,%xmm7,%xmm3
|
||||
|
||||
addq $0x60,%r10
|
||||
subq $0x6,%rdx
|
||||
jc .L6x_done
|
||||
|
||||
vmovups %xmm9,-96(%rsi)
|
||||
vpxor %xmm15,%xmm1,%xmm9
|
||||
vmovups %xmm10,-80(%rsi)
|
||||
vmovdqa %xmm0,%xmm10
|
||||
vmovups %xmm11,-64(%rsi)
|
||||
vmovdqa %xmm5,%xmm11
|
||||
vmovups %xmm12,-48(%rsi)
|
||||
vmovdqa %xmm6,%xmm12
|
||||
vmovups %xmm13,-32(%rsi)
|
||||
vmovdqa %xmm7,%xmm13
|
||||
vmovups %xmm14,-16(%rsi)
|
||||
vmovdqa %xmm3,%xmm14
|
||||
vmovdqu 32+8(%rsp),%xmm7
|
||||
jmp .Loop6x
|
||||
|
||||
.L6x_done:
|
||||
vpxor 16+8(%rsp),%xmm8,%xmm8
|
||||
vpxor %xmm4,%xmm8,%xmm8
|
||||
|
||||
.byte 0xf3,0xc3
|
||||
.size _aesni_ctr32_ghash_6x,.-_aesni_ctr32_ghash_6x
|
||||
.globl aesni_gcm_decrypt
|
||||
.type aesni_gcm_decrypt,@function
|
||||
.align 32
|
||||
aesni_gcm_decrypt:
|
||||
.cfi_startproc
|
||||
xorq %r10,%r10
|
||||
cmpq $0x60,%rdx
|
||||
jb .Lgcm_dec_abort
|
||||
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
vzeroupper
|
||||
|
||||
vmovdqu (%r8),%xmm1
|
||||
addq $-128,%rsp
|
||||
movl 12(%r8),%ebx
|
||||
leaq .Lbswap_mask(%rip),%r11
|
||||
leaq -128(%rcx),%r14
|
||||
movq $0xf80,%r15
|
||||
vmovdqu (%r9),%xmm8
|
||||
andq $-128,%rsp
|
||||
vmovdqu (%r11),%xmm0
|
||||
leaq 128(%rcx),%rcx
|
||||
leaq 32+32(%r9),%r9
|
||||
movl 240-128(%rcx),%ebp
|
||||
vpshufb %xmm0,%xmm8,%xmm8
|
||||
|
||||
andq %r15,%r14
|
||||
andq %rsp,%r15
|
||||
subq %r14,%r15
|
||||
jc .Ldec_no_key_aliasing
|
||||
cmpq $768,%r15
|
||||
jnc .Ldec_no_key_aliasing
|
||||
subq %r15,%rsp
|
||||
.Ldec_no_key_aliasing:
|
||||
|
||||
vmovdqu 80(%rdi),%xmm7
|
||||
leaq (%rdi),%r14
|
||||
vmovdqu 64(%rdi),%xmm4
|
||||
leaq -192(%rdi,%rdx,1),%r15
|
||||
vmovdqu 48(%rdi),%xmm5
|
||||
shrq $4,%rdx
|
||||
xorq %r10,%r10
|
||||
vmovdqu 32(%rdi),%xmm6
|
||||
vpshufb %xmm0,%xmm7,%xmm7
|
||||
vmovdqu 16(%rdi),%xmm2
|
||||
vpshufb %xmm0,%xmm4,%xmm4
|
||||
vmovdqu (%rdi),%xmm3
|
||||
vpshufb %xmm0,%xmm5,%xmm5
|
||||
vmovdqu %xmm4,48(%rsp)
|
||||
vpshufb %xmm0,%xmm6,%xmm6
|
||||
vmovdqu %xmm5,64(%rsp)
|
||||
vpshufb %xmm0,%xmm2,%xmm2
|
||||
vmovdqu %xmm6,80(%rsp)
|
||||
vpshufb %xmm0,%xmm3,%xmm3
|
||||
vmovdqu %xmm2,96(%rsp)
|
||||
vmovdqu %xmm3,112(%rsp)
|
||||
|
||||
call _aesni_ctr32_ghash_6x
|
||||
|
||||
vmovups %xmm9,-96(%rsi)
|
||||
vmovups %xmm10,-80(%rsi)
|
||||
vmovups %xmm11,-64(%rsi)
|
||||
vmovups %xmm12,-48(%rsi)
|
||||
vmovups %xmm13,-32(%rsi)
|
||||
vmovups %xmm14,-16(%rsi)
|
||||
|
||||
vpshufb (%r11),%xmm8,%xmm8
|
||||
vmovdqu %xmm8,-64(%r9)
|
||||
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lgcm_dec_abort:
|
||||
movq %r10,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_gcm_decrypt,.-aesni_gcm_decrypt
|
||||
.type _aesni_ctr32_6x,@function
|
||||
.align 32
|
||||
_aesni_ctr32_6x:
|
||||
vmovdqu 0-128(%rcx),%xmm4
|
||||
vmovdqu 32(%r11),%xmm2
|
||||
leaq -1(%rbp),%r13
|
||||
vmovups 16-128(%rcx),%xmm15
|
||||
leaq 32-128(%rcx),%r12
|
||||
vpxor %xmm4,%xmm1,%xmm9
|
||||
addl $100663296,%ebx
|
||||
jc .Lhandle_ctr32_2
|
||||
vpaddb %xmm2,%xmm1,%xmm10
|
||||
vpaddb %xmm2,%xmm10,%xmm11
|
||||
vpxor %xmm4,%xmm10,%xmm10
|
||||
vpaddb %xmm2,%xmm11,%xmm12
|
||||
vpxor %xmm4,%xmm11,%xmm11
|
||||
vpaddb %xmm2,%xmm12,%xmm13
|
||||
vpxor %xmm4,%xmm12,%xmm12
|
||||
vpaddb %xmm2,%xmm13,%xmm14
|
||||
vpxor %xmm4,%xmm13,%xmm13
|
||||
vpaddb %xmm2,%xmm14,%xmm1
|
||||
vpxor %xmm4,%xmm14,%xmm14
|
||||
jmp .Loop_ctr32
|
||||
|
||||
.align 16
|
||||
.Loop_ctr32:
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
vmovups (%r12),%xmm15
|
||||
leaq 16(%r12),%r12
|
||||
decl %r13d
|
||||
jnz .Loop_ctr32
|
||||
|
||||
vmovdqu (%r12),%xmm3
|
||||
vaesenc %xmm15,%xmm9,%xmm9
|
||||
vpxor 0(%rdi),%xmm3,%xmm4
|
||||
vaesenc %xmm15,%xmm10,%xmm10
|
||||
vpxor 16(%rdi),%xmm3,%xmm5
|
||||
vaesenc %xmm15,%xmm11,%xmm11
|
||||
vpxor 32(%rdi),%xmm3,%xmm6
|
||||
vaesenc %xmm15,%xmm12,%xmm12
|
||||
vpxor 48(%rdi),%xmm3,%xmm8
|
||||
vaesenc %xmm15,%xmm13,%xmm13
|
||||
vpxor 64(%rdi),%xmm3,%xmm2
|
||||
vaesenc %xmm15,%xmm14,%xmm14
|
||||
vpxor 80(%rdi),%xmm3,%xmm3
|
||||
leaq 96(%rdi),%rdi
|
||||
|
||||
vaesenclast %xmm4,%xmm9,%xmm9
|
||||
vaesenclast %xmm5,%xmm10,%xmm10
|
||||
vaesenclast %xmm6,%xmm11,%xmm11
|
||||
vaesenclast %xmm8,%xmm12,%xmm12
|
||||
vaesenclast %xmm2,%xmm13,%xmm13
|
||||
vaesenclast %xmm3,%xmm14,%xmm14
|
||||
vmovups %xmm9,0(%rsi)
|
||||
vmovups %xmm10,16(%rsi)
|
||||
vmovups %xmm11,32(%rsi)
|
||||
vmovups %xmm12,48(%rsi)
|
||||
vmovups %xmm13,64(%rsi)
|
||||
vmovups %xmm14,80(%rsi)
|
||||
leaq 96(%rsi),%rsi
|
||||
|
||||
.byte 0xf3,0xc3
|
||||
.align 32
|
||||
.Lhandle_ctr32_2:
|
||||
vpshufb %xmm0,%xmm1,%xmm6
|
||||
vmovdqu 48(%r11),%xmm5
|
||||
vpaddd 64(%r11),%xmm6,%xmm10
|
||||
vpaddd %xmm5,%xmm6,%xmm11
|
||||
vpaddd %xmm5,%xmm10,%xmm12
|
||||
vpshufb %xmm0,%xmm10,%xmm10
|
||||
vpaddd %xmm5,%xmm11,%xmm13
|
||||
vpshufb %xmm0,%xmm11,%xmm11
|
||||
vpxor %xmm4,%xmm10,%xmm10
|
||||
vpaddd %xmm5,%xmm12,%xmm14
|
||||
vpshufb %xmm0,%xmm12,%xmm12
|
||||
vpxor %xmm4,%xmm11,%xmm11
|
||||
vpaddd %xmm5,%xmm13,%xmm1
|
||||
vpshufb %xmm0,%xmm13,%xmm13
|
||||
vpxor %xmm4,%xmm12,%xmm12
|
||||
vpshufb %xmm0,%xmm14,%xmm14
|
||||
vpxor %xmm4,%xmm13,%xmm13
|
||||
vpshufb %xmm0,%xmm1,%xmm1
|
||||
vpxor %xmm4,%xmm14,%xmm14
|
||||
jmp .Loop_ctr32
|
||||
.size _aesni_ctr32_6x,.-_aesni_ctr32_6x
|
||||
|
||||
.globl aesni_gcm_encrypt
|
||||
.type aesni_gcm_encrypt,@function
|
||||
.align 32
|
||||
aesni_gcm_encrypt:
|
||||
.cfi_startproc
|
||||
xorq %r10,%r10
|
||||
cmpq $288,%rdx
|
||||
jb .Lgcm_enc_abort
|
||||
|
||||
leaq (%rsp),%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
vzeroupper
|
||||
|
||||
vmovdqu (%r8),%xmm1
|
||||
addq $-128,%rsp
|
||||
movl 12(%r8),%ebx
|
||||
leaq .Lbswap_mask(%rip),%r11
|
||||
leaq -128(%rcx),%r14
|
||||
movq $0xf80,%r15
|
||||
leaq 128(%rcx),%rcx
|
||||
vmovdqu (%r11),%xmm0
|
||||
andq $-128,%rsp
|
||||
movl 240-128(%rcx),%ebp
|
||||
|
||||
andq %r15,%r14
|
||||
andq %rsp,%r15
|
||||
subq %r14,%r15
|
||||
jc .Lenc_no_key_aliasing
|
||||
cmpq $768,%r15
|
||||
jnc .Lenc_no_key_aliasing
|
||||
subq %r15,%rsp
|
||||
.Lenc_no_key_aliasing:
|
||||
|
||||
leaq (%rsi),%r14
|
||||
leaq -192(%rsi,%rdx,1),%r15
|
||||
shrq $4,%rdx
|
||||
|
||||
call _aesni_ctr32_6x
|
||||
vpshufb %xmm0,%xmm9,%xmm8
|
||||
vpshufb %xmm0,%xmm10,%xmm2
|
||||
vmovdqu %xmm8,112(%rsp)
|
||||
vpshufb %xmm0,%xmm11,%xmm4
|
||||
vmovdqu %xmm2,96(%rsp)
|
||||
vpshufb %xmm0,%xmm12,%xmm5
|
||||
vmovdqu %xmm4,80(%rsp)
|
||||
vpshufb %xmm0,%xmm13,%xmm6
|
||||
vmovdqu %xmm5,64(%rsp)
|
||||
vpshufb %xmm0,%xmm14,%xmm7
|
||||
vmovdqu %xmm6,48(%rsp)
|
||||
|
||||
call _aesni_ctr32_6x
|
||||
|
||||
vmovdqu (%r9),%xmm8
|
||||
leaq 32+32(%r9),%r9
|
||||
subq $12,%rdx
|
||||
movq $192,%r10
|
||||
vpshufb %xmm0,%xmm8,%xmm8
|
||||
|
||||
call _aesni_ctr32_ghash_6x
|
||||
vmovdqu 32(%rsp),%xmm7
|
||||
vmovdqu (%r11),%xmm0
|
||||
vmovdqu 0-32(%r9),%xmm3
|
||||
vpunpckhqdq %xmm7,%xmm7,%xmm1
|
||||
vmovdqu 32-32(%r9),%xmm15
|
||||
vmovups %xmm9,-96(%rsi)
|
||||
vpshufb %xmm0,%xmm9,%xmm9
|
||||
vpxor %xmm7,%xmm1,%xmm1
|
||||
vmovups %xmm10,-80(%rsi)
|
||||
vpshufb %xmm0,%xmm10,%xmm10
|
||||
vmovups %xmm11,-64(%rsi)
|
||||
vpshufb %xmm0,%xmm11,%xmm11
|
||||
vmovups %xmm12,-48(%rsi)
|
||||
vpshufb %xmm0,%xmm12,%xmm12
|
||||
vmovups %xmm13,-32(%rsi)
|
||||
vpshufb %xmm0,%xmm13,%xmm13
|
||||
vmovups %xmm14,-16(%rsi)
|
||||
vpshufb %xmm0,%xmm14,%xmm14
|
||||
vmovdqu %xmm9,16(%rsp)
|
||||
vmovdqu 48(%rsp),%xmm6
|
||||
vmovdqu 16-32(%r9),%xmm0
|
||||
vpunpckhqdq %xmm6,%xmm6,%xmm2
|
||||
vpclmulqdq $0x00,%xmm3,%xmm7,%xmm5
|
||||
vpxor %xmm6,%xmm2,%xmm2
|
||||
vpclmulqdq $0x11,%xmm3,%xmm7,%xmm7
|
||||
vpclmulqdq $0x00,%xmm15,%xmm1,%xmm1
|
||||
|
||||
vmovdqu 64(%rsp),%xmm9
|
||||
vpclmulqdq $0x00,%xmm0,%xmm6,%xmm4
|
||||
vmovdqu 48-32(%r9),%xmm3
|
||||
vpxor %xmm5,%xmm4,%xmm4
|
||||
vpunpckhqdq %xmm9,%xmm9,%xmm5
|
||||
vpclmulqdq $0x11,%xmm0,%xmm6,%xmm6
|
||||
vpxor %xmm9,%xmm5,%xmm5
|
||||
vpxor %xmm7,%xmm6,%xmm6
|
||||
vpclmulqdq $0x10,%xmm15,%xmm2,%xmm2
|
||||
vmovdqu 80-32(%r9),%xmm15
|
||||
vpxor %xmm1,%xmm2,%xmm2
|
||||
|
||||
vmovdqu 80(%rsp),%xmm1
|
||||
vpclmulqdq $0x00,%xmm3,%xmm9,%xmm7
|
||||
vmovdqu 64-32(%r9),%xmm0
|
||||
vpxor %xmm4,%xmm7,%xmm7
|
||||
vpunpckhqdq %xmm1,%xmm1,%xmm4
|
||||
vpclmulqdq $0x11,%xmm3,%xmm9,%xmm9
|
||||
vpxor %xmm1,%xmm4,%xmm4
|
||||
vpxor %xmm6,%xmm9,%xmm9
|
||||
vpclmulqdq $0x00,%xmm15,%xmm5,%xmm5
|
||||
vpxor %xmm2,%xmm5,%xmm5
|
||||
|
||||
vmovdqu 96(%rsp),%xmm2
|
||||
vpclmulqdq $0x00,%xmm0,%xmm1,%xmm6
|
||||
vmovdqu 96-32(%r9),%xmm3
|
||||
vpxor %xmm7,%xmm6,%xmm6
|
||||
vpunpckhqdq %xmm2,%xmm2,%xmm7
|
||||
vpclmulqdq $0x11,%xmm0,%xmm1,%xmm1
|
||||
vpxor %xmm2,%xmm7,%xmm7
|
||||
vpxor %xmm9,%xmm1,%xmm1
|
||||
vpclmulqdq $0x10,%xmm15,%xmm4,%xmm4
|
||||
vmovdqu 128-32(%r9),%xmm15
|
||||
vpxor %xmm5,%xmm4,%xmm4
|
||||
|
||||
vpxor 112(%rsp),%xmm8,%xmm8
|
||||
vpclmulqdq $0x00,%xmm3,%xmm2,%xmm5
|
||||
vmovdqu 112-32(%r9),%xmm0
|
||||
vpunpckhqdq %xmm8,%xmm8,%xmm9
|
||||
vpxor %xmm6,%xmm5,%xmm5
|
||||
vpclmulqdq $0x11,%xmm3,%xmm2,%xmm2
|
||||
vpxor %xmm8,%xmm9,%xmm9
|
||||
vpxor %xmm1,%xmm2,%xmm2
|
||||
vpclmulqdq $0x00,%xmm15,%xmm7,%xmm7
|
||||
vpxor %xmm4,%xmm7,%xmm4
|
||||
|
||||
vpclmulqdq $0x00,%xmm0,%xmm8,%xmm6
|
||||
vmovdqu 0-32(%r9),%xmm3
|
||||
vpunpckhqdq %xmm14,%xmm14,%xmm1
|
||||
vpclmulqdq $0x11,%xmm0,%xmm8,%xmm8
|
||||
vpxor %xmm14,%xmm1,%xmm1
|
||||
vpxor %xmm5,%xmm6,%xmm5
|
||||
vpclmulqdq $0x10,%xmm15,%xmm9,%xmm9
|
||||
vmovdqu 32-32(%r9),%xmm15
|
||||
vpxor %xmm2,%xmm8,%xmm7
|
||||
vpxor %xmm4,%xmm9,%xmm6
|
||||
|
||||
vmovdqu 16-32(%r9),%xmm0
|
||||
vpxor %xmm5,%xmm7,%xmm9
|
||||
vpclmulqdq $0x00,%xmm3,%xmm14,%xmm4
|
||||
vpxor %xmm9,%xmm6,%xmm6
|
||||
vpunpckhqdq %xmm13,%xmm13,%xmm2
|
||||
vpclmulqdq $0x11,%xmm3,%xmm14,%xmm14
|
||||
vpxor %xmm13,%xmm2,%xmm2
|
||||
vpslldq $8,%xmm6,%xmm9
|
||||
vpclmulqdq $0x00,%xmm15,%xmm1,%xmm1
|
||||
vpxor %xmm9,%xmm5,%xmm8
|
||||
vpsrldq $8,%xmm6,%xmm6
|
||||
vpxor %xmm6,%xmm7,%xmm7
|
||||
|
||||
vpclmulqdq $0x00,%xmm0,%xmm13,%xmm5
|
||||
vmovdqu 48-32(%r9),%xmm3
|
||||
vpxor %xmm4,%xmm5,%xmm5
|
||||
vpunpckhqdq %xmm12,%xmm12,%xmm9
|
||||
vpclmulqdq $0x11,%xmm0,%xmm13,%xmm13
|
||||
vpxor %xmm12,%xmm9,%xmm9
|
||||
vpxor %xmm14,%xmm13,%xmm13
|
||||
vpalignr $8,%xmm8,%xmm8,%xmm14
|
||||
vpclmulqdq $0x10,%xmm15,%xmm2,%xmm2
|
||||
vmovdqu 80-32(%r9),%xmm15
|
||||
vpxor %xmm1,%xmm2,%xmm2
|
||||
|
||||
vpclmulqdq $0x00,%xmm3,%xmm12,%xmm4
|
||||
vmovdqu 64-32(%r9),%xmm0
|
||||
vpxor %xmm5,%xmm4,%xmm4
|
||||
vpunpckhqdq %xmm11,%xmm11,%xmm1
|
||||
vpclmulqdq $0x11,%xmm3,%xmm12,%xmm12
|
||||
vpxor %xmm11,%xmm1,%xmm1
|
||||
vpxor %xmm13,%xmm12,%xmm12
|
||||
vxorps 16(%rsp),%xmm7,%xmm7
|
||||
vpclmulqdq $0x00,%xmm15,%xmm9,%xmm9
|
||||
vpxor %xmm2,%xmm9,%xmm9
|
||||
|
||||
vpclmulqdq $0x10,16(%r11),%xmm8,%xmm8
|
||||
vxorps %xmm14,%xmm8,%xmm8
|
||||
|
||||
vpclmulqdq $0x00,%xmm0,%xmm11,%xmm5
|
||||
vmovdqu 96-32(%r9),%xmm3
|
||||
vpxor %xmm4,%xmm5,%xmm5
|
||||
vpunpckhqdq %xmm10,%xmm10,%xmm2
|
||||
vpclmulqdq $0x11,%xmm0,%xmm11,%xmm11
|
||||
vpxor %xmm10,%xmm2,%xmm2
|
||||
vpalignr $8,%xmm8,%xmm8,%xmm14
|
||||
vpxor %xmm12,%xmm11,%xmm11
|
||||
vpclmulqdq $0x10,%xmm15,%xmm1,%xmm1
|
||||
vmovdqu 128-32(%r9),%xmm15
|
||||
vpxor %xmm9,%xmm1,%xmm1
|
||||
|
||||
vxorps %xmm7,%xmm14,%xmm14
|
||||
vpclmulqdq $0x10,16(%r11),%xmm8,%xmm8
|
||||
vxorps %xmm14,%xmm8,%xmm8
|
||||
|
||||
vpclmulqdq $0x00,%xmm3,%xmm10,%xmm4
|
||||
vmovdqu 112-32(%r9),%xmm0
|
||||
vpxor %xmm5,%xmm4,%xmm4
|
||||
vpunpckhqdq %xmm8,%xmm8,%xmm9
|
||||
vpclmulqdq $0x11,%xmm3,%xmm10,%xmm10
|
||||
vpxor %xmm8,%xmm9,%xmm9
|
||||
vpxor %xmm11,%xmm10,%xmm10
|
||||
vpclmulqdq $0x00,%xmm15,%xmm2,%xmm2
|
||||
vpxor %xmm1,%xmm2,%xmm2
|
||||
|
||||
vpclmulqdq $0x00,%xmm0,%xmm8,%xmm5
|
||||
vpclmulqdq $0x11,%xmm0,%xmm8,%xmm7
|
||||
vpxor %xmm4,%xmm5,%xmm5
|
||||
vpclmulqdq $0x10,%xmm15,%xmm9,%xmm6
|
||||
vpxor %xmm10,%xmm7,%xmm7
|
||||
vpxor %xmm2,%xmm6,%xmm6
|
||||
|
||||
vpxor %xmm5,%xmm7,%xmm4
|
||||
vpxor %xmm4,%xmm6,%xmm6
|
||||
vpslldq $8,%xmm6,%xmm1
|
||||
vmovdqu 16(%r11),%xmm3
|
||||
vpsrldq $8,%xmm6,%xmm6
|
||||
vpxor %xmm1,%xmm5,%xmm8
|
||||
vpxor %xmm6,%xmm7,%xmm7
|
||||
|
||||
vpalignr $8,%xmm8,%xmm8,%xmm2
|
||||
vpclmulqdq $0x10,%xmm3,%xmm8,%xmm8
|
||||
vpxor %xmm2,%xmm8,%xmm8
|
||||
|
||||
vpalignr $8,%xmm8,%xmm8,%xmm2
|
||||
vpclmulqdq $0x10,%xmm3,%xmm8,%xmm8
|
||||
vpxor %xmm7,%xmm2,%xmm2
|
||||
vpxor %xmm2,%xmm8,%xmm8
|
||||
vpshufb (%r11),%xmm8,%xmm8
|
||||
vmovdqu %xmm8,-64(%r9)
|
||||
|
||||
vzeroupper
|
||||
movq -48(%rax),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rax),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rax),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rax),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rax),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rax),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rax),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lgcm_enc_abort:
|
||||
movq %r10,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size aesni_gcm_encrypt,.-aesni_gcm_encrypt
|
||||
.align 64
|
||||
.Lbswap_mask:
|
||||
.byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
.Lpoly:
|
||||
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0xc2
|
||||
.Lone_msb:
|
||||
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
|
||||
.Ltwo_lsb:
|
||||
.byte 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
.Lone_lsb:
|
||||
.byte 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
.byte 65,69,83,45,78,73,32,71,67,77,32,109,111,100,117,108,101,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
.align 64
|
||||
File diff suppressed because it is too large.
Load diff
+2054
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,627 @@
|
||||
.text
|
||||
|
||||
|
||||
.globl RC4
|
||||
.type RC4,@function
|
||||
.align 16
|
||||
RC4: orq %rsi,%rsi
|
||||
jne .Lentry
|
||||
.byte 0xf3,0xc3
|
||||
.Lentry:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-24
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-32
|
||||
.Lprologue:
|
||||
movq %rsi,%r11
|
||||
movq %rdx,%r12
|
||||
movq %rcx,%r13
|
||||
xorq %r10,%r10
|
||||
xorq %rcx,%rcx
|
||||
|
||||
leaq 8(%rdi),%rdi
|
||||
movb -8(%rdi),%r10b
|
||||
movb -4(%rdi),%cl
|
||||
cmpl $-1,256(%rdi)
|
||||
je .LRC4_CHAR
|
||||
movl OPENSSL_ia32cap_P(%rip),%r8d
|
||||
xorq %rbx,%rbx
|
||||
incb %r10b
|
||||
subq %r10,%rbx
|
||||
subq %r12,%r13
|
||||
movl (%rdi,%r10,4),%eax
|
||||
testq $-16,%r11
|
||||
jz .Lloop1
|
||||
btl $30,%r8d
|
||||
jc .Lintel
|
||||
andq $7,%rbx
|
||||
leaq 1(%r10),%rsi
|
||||
jz .Loop8
|
||||
subq %rbx,%r11
|
||||
.Loop8_warmup:
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl %edx,(%rdi,%r10,4)
|
||||
addb %dl,%al
|
||||
incb %r10b
|
||||
movl (%rdi,%rax,4),%edx
|
||||
movl (%rdi,%r10,4),%eax
|
||||
xorb (%r12),%dl
|
||||
movb %dl,(%r12,%r13,1)
|
||||
leaq 1(%r12),%r12
|
||||
decq %rbx
|
||||
jnz .Loop8_warmup
|
||||
|
||||
leaq 1(%r10),%rsi
|
||||
jmp .Loop8
|
||||
.align 16
|
||||
.Loop8:
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl 0(%rdi,%rsi,4),%ebx
|
||||
rorq $8,%r8
|
||||
movl %edx,0(%rdi,%r10,4)
|
||||
addb %al,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %bl,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
movl 4(%rdi,%rsi,4),%eax
|
||||
rorq $8,%r8
|
||||
movl %edx,4(%rdi,%r10,4)
|
||||
addb %bl,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl 8(%rdi,%rsi,4),%ebx
|
||||
rorq $8,%r8
|
||||
movl %edx,8(%rdi,%r10,4)
|
||||
addb %al,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %bl,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
movl 12(%rdi,%rsi,4),%eax
|
||||
rorq $8,%r8
|
||||
movl %edx,12(%rdi,%r10,4)
|
||||
addb %bl,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl 16(%rdi,%rsi,4),%ebx
|
||||
rorq $8,%r8
|
||||
movl %edx,16(%rdi,%r10,4)
|
||||
addb %al,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %bl,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
movl 20(%rdi,%rsi,4),%eax
|
||||
rorq $8,%r8
|
||||
movl %edx,20(%rdi,%r10,4)
|
||||
addb %bl,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl 24(%rdi,%rsi,4),%ebx
|
||||
rorq $8,%r8
|
||||
movl %edx,24(%rdi,%r10,4)
|
||||
addb %al,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb $8,%sil
|
||||
addb %bl,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
movl -4(%rdi,%rsi,4),%eax
|
||||
rorq $8,%r8
|
||||
movl %edx,28(%rdi,%r10,4)
|
||||
addb %bl,%dl
|
||||
movb (%rdi,%rdx,4),%r8b
|
||||
addb $8,%r10b
|
||||
rorq $8,%r8
|
||||
subq $8,%r11
|
||||
|
||||
xorq (%r12),%r8
|
||||
movq %r8,(%r12,%r13,1)
|
||||
leaq 8(%r12),%r12
|
||||
|
||||
testq $-8,%r11
|
||||
jnz .Loop8
|
||||
cmpq $0,%r11
|
||||
jne .Lloop1
|
||||
jmp .Lexit
|
||||
|
||||
.align 16
|
||||
.Lintel:
|
||||
testq $-32,%r11
|
||||
jz .Lloop1
|
||||
andq $15,%rbx
|
||||
jz .Loop16_is_hot
|
||||
subq %rbx,%r11
|
||||
.Loop16_warmup:
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl %edx,(%rdi,%r10,4)
|
||||
addb %dl,%al
|
||||
incb %r10b
|
||||
movl (%rdi,%rax,4),%edx
|
||||
movl (%rdi,%r10,4),%eax
|
||||
xorb (%r12),%dl
|
||||
movb %dl,(%r12,%r13,1)
|
||||
leaq 1(%r12),%r12
|
||||
decq %rbx
|
||||
jnz .Loop16_warmup
|
||||
|
||||
movq %rcx,%rbx
|
||||
xorq %rcx,%rcx
|
||||
movb %bl,%cl
|
||||
|
||||
.Loop16_is_hot:
|
||||
leaq (%rdi,%r10,4),%rsi
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
pxor %xmm0,%xmm0
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 4(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,0(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $0,(%rdi,%rax,4),%xmm0
|
||||
jmp .Loop16_enter
|
||||
.align 16
|
||||
.Loop16:
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
pxor %xmm0,%xmm2
|
||||
psllq $8,%xmm1
|
||||
pxor %xmm0,%xmm0
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 4(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,0(%rsi)
|
||||
pxor %xmm1,%xmm2
|
||||
addb %bl,%cl
|
||||
pinsrw $0,(%rdi,%rax,4),%xmm0
|
||||
movdqu %xmm2,(%r12,%r13,1)
|
||||
leaq 16(%r12),%r12
|
||||
.Loop16_enter:
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
pxor %xmm1,%xmm1
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 8(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,4(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $0,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 12(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,8(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $1,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 16(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,12(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $1,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 20(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,16(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $2,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 24(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,20(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $2,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 28(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,24(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $3,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 32(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,28(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $3,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 36(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,32(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $4,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 40(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,36(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $4,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 44(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,40(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $5,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 48(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,44(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $5,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 52(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,48(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $6,(%rdi,%rax,4),%xmm0
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movl 56(%rsi),%eax
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,52(%rsi)
|
||||
addb %al,%cl
|
||||
pinsrw $6,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
addb %dl,%al
|
||||
movl 60(%rsi),%ebx
|
||||
movzbl %al,%eax
|
||||
movl %edx,56(%rsi)
|
||||
addb %bl,%cl
|
||||
pinsrw $7,(%rdi,%rax,4),%xmm0
|
||||
addb $16,%r10b
|
||||
movdqu (%r12),%xmm2
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %ebx,(%rdi,%rcx,4)
|
||||
addb %dl,%bl
|
||||
movzbl %bl,%ebx
|
||||
movl %edx,60(%rsi)
|
||||
leaq (%rdi,%r10,4),%rsi
|
||||
pinsrw $7,(%rdi,%rbx,4),%xmm1
|
||||
movl (%rsi),%eax
|
||||
movq %rcx,%rbx
|
||||
xorq %rcx,%rcx
|
||||
subq $16,%r11
|
||||
movb %bl,%cl
|
||||
testq $-16,%r11
|
||||
jnz .Loop16
|
||||
|
||||
psllq $8,%xmm1
|
||||
pxor %xmm0,%xmm2
|
||||
pxor %xmm1,%xmm2
|
||||
movdqu %xmm2,(%r12,%r13,1)
|
||||
leaq 16(%r12),%r12
|
||||
|
||||
cmpq $0,%r11
|
||||
jne .Lloop1
|
||||
jmp .Lexit
|
||||
|
||||
.align 16
|
||||
.Lloop1:
|
||||
addb %al,%cl
|
||||
movl (%rdi,%rcx,4),%edx
|
||||
movl %eax,(%rdi,%rcx,4)
|
||||
movl %edx,(%rdi,%r10,4)
|
||||
addb %dl,%al
|
||||
incb %r10b
|
||||
movl (%rdi,%rax,4),%edx
|
||||
movl (%rdi,%r10,4),%eax
|
||||
xorb (%r12),%dl
|
||||
movb %dl,(%r12,%r13,1)
|
||||
leaq 1(%r12),%r12
|
||||
decq %r11
|
||||
jnz .Lloop1
|
||||
jmp .Lexit
|
||||
|
||||
.align 16
|
||||
.LRC4_CHAR:
|
||||
addb $1,%r10b
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
testq $-8,%r11
|
||||
jz .Lcloop1
|
||||
jmp .Lcloop8
|
||||
.align 16
|
||||
.Lcloop8:
|
||||
movl (%r12),%r8d
|
||||
movl 4(%r12),%r9d
|
||||
addb %al,%cl
|
||||
leaq 1(%r10),%rsi
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %sil,%esi
|
||||
movzbl (%rdi,%rsi,1),%ebx
|
||||
movb %al,(%rdi,%rcx,1)
|
||||
cmpq %rsi,%rcx
|
||||
movb %dl,(%rdi,%r10,1)
|
||||
jne .Lcmov0
|
||||
movq %rax,%rbx
|
||||
.Lcmov0:
|
||||
addb %al,%dl
|
||||
xorb (%rdi,%rdx,1),%r8b
|
||||
rorl $8,%r8d
|
||||
addb %bl,%cl
|
||||
leaq 1(%rsi),%r10
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %r10b,%r10d
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
movb %bl,(%rdi,%rcx,1)
|
||||
cmpq %r10,%rcx
|
||||
movb %dl,(%rdi,%rsi,1)
|
||||
jne .Lcmov1
|
||||
movq %rbx,%rax
|
||||
.Lcmov1:
|
||||
addb %bl,%dl
|
||||
xorb (%rdi,%rdx,1),%r8b
|
||||
rorl $8,%r8d
|
||||
addb %al,%cl
|
||||
leaq 1(%r10),%rsi
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %sil,%esi
|
||||
movzbl (%rdi,%rsi,1),%ebx
|
||||
movb %al,(%rdi,%rcx,1)
|
||||
cmpq %rsi,%rcx
|
||||
movb %dl,(%rdi,%r10,1)
|
||||
jne .Lcmov2
|
||||
movq %rax,%rbx
|
||||
.Lcmov2:
|
||||
addb %al,%dl
|
||||
xorb (%rdi,%rdx,1),%r8b
|
||||
rorl $8,%r8d
|
||||
addb %bl,%cl
|
||||
leaq 1(%rsi),%r10
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %r10b,%r10d
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
movb %bl,(%rdi,%rcx,1)
|
||||
cmpq %r10,%rcx
|
||||
movb %dl,(%rdi,%rsi,1)
|
||||
jne .Lcmov3
|
||||
movq %rbx,%rax
|
||||
.Lcmov3:
|
||||
addb %bl,%dl
|
||||
xorb (%rdi,%rdx,1),%r8b
|
||||
rorl $8,%r8d
|
||||
addb %al,%cl
|
||||
leaq 1(%r10),%rsi
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %sil,%esi
|
||||
movzbl (%rdi,%rsi,1),%ebx
|
||||
movb %al,(%rdi,%rcx,1)
|
||||
cmpq %rsi,%rcx
|
||||
movb %dl,(%rdi,%r10,1)
|
||||
jne .Lcmov4
|
||||
movq %rax,%rbx
|
||||
.Lcmov4:
|
||||
addb %al,%dl
|
||||
xorb (%rdi,%rdx,1),%r9b
|
||||
rorl $8,%r9d
|
||||
addb %bl,%cl
|
||||
leaq 1(%rsi),%r10
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %r10b,%r10d
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
movb %bl,(%rdi,%rcx,1)
|
||||
cmpq %r10,%rcx
|
||||
movb %dl,(%rdi,%rsi,1)
|
||||
jne .Lcmov5
|
||||
movq %rbx,%rax
|
||||
.Lcmov5:
|
||||
addb %bl,%dl
|
||||
xorb (%rdi,%rdx,1),%r9b
|
||||
rorl $8,%r9d
|
||||
addb %al,%cl
|
||||
leaq 1(%r10),%rsi
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %sil,%esi
|
||||
movzbl (%rdi,%rsi,1),%ebx
|
||||
movb %al,(%rdi,%rcx,1)
|
||||
cmpq %rsi,%rcx
|
||||
movb %dl,(%rdi,%r10,1)
|
||||
jne .Lcmov6
|
||||
movq %rax,%rbx
|
||||
.Lcmov6:
|
||||
addb %al,%dl
|
||||
xorb (%rdi,%rdx,1),%r9b
|
||||
rorl $8,%r9d
|
||||
addb %bl,%cl
|
||||
leaq 1(%rsi),%r10
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movzbl %r10b,%r10d
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
movb %bl,(%rdi,%rcx,1)
|
||||
cmpq %r10,%rcx
|
||||
movb %dl,(%rdi,%rsi,1)
|
||||
jne .Lcmov7
|
||||
movq %rbx,%rax
|
||||
.Lcmov7:
|
||||
addb %bl,%dl
|
||||
xorb (%rdi,%rdx,1),%r9b
|
||||
rorl $8,%r9d
|
||||
leaq -8(%r11),%r11
|
||||
movl %r8d,(%r13)
|
||||
leaq 8(%r12),%r12
|
||||
movl %r9d,4(%r13)
|
||||
leaq 8(%r13),%r13
|
||||
|
||||
testq $-8,%r11
|
||||
jnz .Lcloop8
|
||||
cmpq $0,%r11
|
||||
jne .Lcloop1
|
||||
jmp .Lexit
|
||||
.align 16
|
||||
.Lcloop1:
|
||||
addb %al,%cl
|
||||
movzbl %cl,%ecx
|
||||
movzbl (%rdi,%rcx,1),%edx
|
||||
movb %al,(%rdi,%rcx,1)
|
||||
movb %dl,(%rdi,%r10,1)
|
||||
addb %al,%dl
|
||||
addb $1,%r10b
|
||||
movzbl %dl,%edx
|
||||
movzbl %r10b,%r10d
|
||||
movzbl (%rdi,%rdx,1),%edx
|
||||
movzbl (%rdi,%r10,1),%eax
|
||||
xorb (%r12),%dl
|
||||
leaq 1(%r12),%r12
|
||||
movb %dl,(%r13)
|
||||
leaq 1(%r13),%r13
|
||||
subq $1,%r11
|
||||
jnz .Lcloop1
|
||||
jmp .Lexit
|
||||
|
||||
.align 16
|
||||
.Lexit:
|
||||
subb $1,%r10b
|
||||
movl %r10d,-8(%rdi)
|
||||
movl %ecx,-4(%rdi)
|
||||
|
||||
movq (%rsp),%r13
|
||||
.cfi_restore %r13
|
||||
movq 8(%rsp),%r12
|
||||
.cfi_restore %r12
|
||||
movq 16(%rsp),%rbx
|
||||
.cfi_restore %rbx
|
||||
addq $24,%rsp
|
||||
.cfi_adjust_cfa_offset -24
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size RC4,.-RC4
|
||||
.globl RC4_set_key
|
||||
.type RC4_set_key,@function
|
||||
.align 16
|
||||
RC4_set_key:
|
||||
leaq 8(%rdi),%rdi
|
||||
leaq (%rdx,%rsi,1),%rdx
|
||||
negq %rsi
|
||||
movq %rsi,%rcx
|
||||
xorl %eax,%eax
|
||||
xorq %r9,%r9
|
||||
xorq %r10,%r10
|
||||
xorq %r11,%r11
|
||||
|
||||
movl OPENSSL_ia32cap_P(%rip),%r8d
|
||||
btl $20,%r8d
|
||||
jc .Lc1stloop
|
||||
jmp .Lw1stloop
|
||||
|
||||
.align 16
|
||||
.Lw1stloop:
|
||||
movl %eax,(%rdi,%rax,4)
|
||||
addb $1,%al
|
||||
jnc .Lw1stloop
|
||||
|
||||
xorq %r9,%r9
|
||||
xorq %r8,%r8
|
||||
.align 16
|
||||
.Lw2ndloop:
|
||||
movl (%rdi,%r9,4),%r10d
|
||||
addb (%rdx,%rsi,1),%r8b
|
||||
addb %r10b,%r8b
|
||||
addq $1,%rsi
|
||||
movl (%rdi,%r8,4),%r11d
|
||||
cmovzq %rcx,%rsi
|
||||
movl %r10d,(%rdi,%r8,4)
|
||||
movl %r11d,(%rdi,%r9,4)
|
||||
addb $1,%r9b
|
||||
jnc .Lw2ndloop
|
||||
jmp .Lexit_key
|
||||
|
||||
.align 16
|
||||
.Lc1stloop:
|
||||
movb %al,(%rdi,%rax,1)
|
||||
addb $1,%al
|
||||
jnc .Lc1stloop
|
||||
|
||||
xorq %r9,%r9
|
||||
xorq %r8,%r8
|
||||
.align 16
|
||||
.Lc2ndloop:
|
||||
movb (%rdi,%r9,1),%r10b
|
||||
addb (%rdx,%rsi,1),%r8b
|
||||
addb %r10b,%r8b
|
||||
addq $1,%rsi
|
||||
movb (%rdi,%r8,1),%r11b
|
||||
jnz .Lcnowrap
|
||||
movq %rcx,%rsi
|
||||
.Lcnowrap:
|
||||
movb %r10b,(%rdi,%r8,1)
|
||||
movb %r11b,(%rdi,%r9,1)
|
||||
addb $1,%r9b
|
||||
jnc .Lc2ndloop
|
||||
movl $-1,256(%rdi)
|
||||
|
||||
.align 16
|
||||
.Lexit_key:
|
||||
xorl %eax,%eax
|
||||
movl %eax,-8(%rdi)
|
||||
movl %eax,-4(%rdi)
|
||||
.byte 0xf3,0xc3
|
||||
.size RC4_set_key,.-RC4_set_key
|
||||
|
||||
.globl RC4_options
|
||||
.type RC4_options,@function
|
||||
.align 16
|
||||
RC4_options:
|
||||
leaq .Lopts(%rip),%rax
|
||||
movl OPENSSL_ia32cap_P(%rip),%edx
|
||||
btl $20,%edx
|
||||
jc .L8xchar
|
||||
btl $30,%edx
|
||||
jnc .Ldone
|
||||
addq $25,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.L8xchar:
|
||||
addq $12,%rax
|
||||
.Ldone:
|
||||
.byte 0xf3,0xc3
|
||||
.align 64
|
||||
.Lopts:
|
||||
.byte 114,99,52,40,56,120,44,105,110,116,41,0
|
||||
.byte 114,99,52,40,56,120,44,99,104,97,114,41,0
|
||||
.byte 114,99,52,40,49,54,120,44,105,110,116,41,0
|
||||
.byte 82,67,52,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
.align 64
|
||||
.size RC4_options,.-RC4_options
|
||||
+522
@@ -0,0 +1,522 @@
|
||||
.text
|
||||
|
||||
.type __KeccakF1600,@function
|
||||
.align 32
|
||||
__KeccakF1600:
|
||||
movq 60(%rdi),%rax
|
||||
movq 68(%rdi),%rbx
|
||||
movq 76(%rdi),%rcx
|
||||
movq 84(%rdi),%rdx
|
||||
movq 92(%rdi),%rbp
|
||||
jmp .Loop
|
||||
|
||||
.align 32
|
||||
.Loop:
|
||||
movq -100(%rdi),%r8
|
||||
movq -52(%rdi),%r9
|
||||
movq -4(%rdi),%r10
|
||||
movq 44(%rdi),%r11
|
||||
|
||||
xorq -84(%rdi),%rcx
|
||||
xorq -76(%rdi),%rdx
|
||||
xorq %r8,%rax
|
||||
xorq -92(%rdi),%rbx
|
||||
xorq -44(%rdi),%rcx
|
||||
xorq -60(%rdi),%rax
|
||||
movq %rbp,%r12
|
||||
xorq -68(%rdi),%rbp
|
||||
|
||||
xorq %r10,%rcx
|
||||
xorq -20(%rdi),%rax
|
||||
xorq -36(%rdi),%rdx
|
||||
xorq %r9,%rbx
|
||||
xorq -28(%rdi),%rbp
|
||||
|
||||
xorq 36(%rdi),%rcx
|
||||
xorq 20(%rdi),%rax
|
||||
xorq 4(%rdi),%rdx
|
||||
xorq -12(%rdi),%rbx
|
||||
xorq 12(%rdi),%rbp
|
||||
|
||||
movq %rcx,%r13
|
||||
rolq $1,%rcx
|
||||
xorq %rax,%rcx
|
||||
xorq %r11,%rdx
|
||||
|
||||
rolq $1,%rax
|
||||
xorq %rdx,%rax
|
||||
xorq 28(%rdi),%rbx
|
||||
|
||||
rolq $1,%rdx
|
||||
xorq %rbx,%rdx
|
||||
xorq 52(%rdi),%rbp
|
||||
|
||||
rolq $1,%rbx
|
||||
xorq %rbp,%rbx
|
||||
|
||||
rolq $1,%rbp
|
||||
xorq %r13,%rbp
|
||||
xorq %rcx,%r9
|
||||
xorq %rdx,%r10
|
||||
rolq $44,%r9
|
||||
xorq %rbp,%r11
|
||||
xorq %rax,%r12
|
||||
rolq $43,%r10
|
||||
xorq %rbx,%r8
|
||||
movq %r9,%r13
|
||||
rolq $21,%r11
|
||||
orq %r10,%r9
|
||||
xorq %r8,%r9
|
||||
rolq $14,%r12
|
||||
|
||||
xorq (%r15),%r9
|
||||
leaq 8(%r15),%r15
|
||||
|
||||
movq %r12,%r14
|
||||
andq %r11,%r12
|
||||
movq %r9,-100(%rsi)
|
||||
xorq %r10,%r12
|
||||
notq %r10
|
||||
movq %r12,-84(%rsi)
|
||||
|
||||
orq %r11,%r10
|
||||
movq 76(%rdi),%r12
|
||||
xorq %r13,%r10
|
||||
movq %r10,-92(%rsi)
|
||||
|
||||
andq %r8,%r13
|
||||
movq -28(%rdi),%r9
|
||||
xorq %r14,%r13
|
||||
movq -20(%rdi),%r10
|
||||
movq %r13,-68(%rsi)
|
||||
|
||||
orq %r8,%r14
|
||||
movq -76(%rdi),%r8
|
||||
xorq %r11,%r14
|
||||
movq 28(%rdi),%r11
|
||||
movq %r14,-76(%rsi)
|
||||
|
||||
|
||||
xorq %rbp,%r8
|
||||
xorq %rdx,%r12
|
||||
rolq $28,%r8
|
||||
xorq %rcx,%r11
|
||||
xorq %rax,%r9
|
||||
rolq $61,%r12
|
||||
rolq $45,%r11
|
||||
xorq %rbx,%r10
|
||||
rolq $20,%r9
|
||||
movq %r8,%r13
|
||||
orq %r12,%r8
|
||||
rolq $3,%r10
|
||||
|
||||
xorq %r11,%r8
|
||||
movq %r8,-36(%rsi)
|
||||
|
||||
movq %r9,%r14
|
||||
andq %r13,%r9
|
||||
movq -92(%rdi),%r8
|
||||
xorq %r12,%r9
|
||||
notq %r12
|
||||
movq %r9,-28(%rsi)
|
||||
|
||||
orq %r11,%r12
|
||||
movq -44(%rdi),%r9
|
||||
xorq %r10,%r12
|
||||
movq %r12,-44(%rsi)
|
||||
|
||||
andq %r10,%r11
|
||||
movq 60(%rdi),%r12
|
||||
xorq %r14,%r11
|
||||
movq %r11,-52(%rsi)
|
||||
|
||||
orq %r10,%r14
|
||||
movq 4(%rdi),%r10
|
||||
xorq %r13,%r14
|
||||
movq 52(%rdi),%r11
|
||||
movq %r14,-60(%rsi)
|
||||
|
||||
|
||||
xorq %rbp,%r10
|
||||
xorq %rax,%r11
|
||||
rolq $25,%r10
|
||||
xorq %rdx,%r9
|
||||
rolq $8,%r11
|
||||
xorq %rbx,%r12
|
||||
rolq $6,%r9
|
||||
xorq %rcx,%r8
|
||||
rolq $18,%r12
|
||||
movq %r10,%r13
|
||||
andq %r11,%r10
|
||||
rolq $1,%r8
|
||||
|
||||
notq %r11
|
||||
xorq %r9,%r10
|
||||
movq %r10,-12(%rsi)
|
||||
|
||||
movq %r12,%r14
|
||||
andq %r11,%r12
|
||||
movq -12(%rdi),%r10
|
||||
xorq %r13,%r12
|
||||
movq %r12,-4(%rsi)
|
||||
|
||||
orq %r9,%r13
|
||||
movq 84(%rdi),%r12
|
||||
xorq %r8,%r13
|
||||
movq %r13,-20(%rsi)
|
||||
|
||||
andq %r8,%r9
|
||||
xorq %r14,%r9
|
||||
movq %r9,12(%rsi)
|
||||
|
||||
orq %r8,%r14
|
||||
movq -60(%rdi),%r9
|
||||
xorq %r11,%r14
|
||||
movq 36(%rdi),%r11
|
||||
movq %r14,4(%rsi)
|
||||
|
||||
|
||||
movq -68(%rdi),%r8
|
||||
|
||||
xorq %rcx,%r10
|
||||
xorq %rdx,%r11
|
||||
rolq $10,%r10
|
||||
xorq %rbx,%r9
|
||||
rolq $15,%r11
|
||||
xorq %rbp,%r12
|
||||
rolq $36,%r9
|
||||
xorq %rax,%r8
|
||||
rolq $56,%r12
|
||||
movq %r10,%r13
|
||||
orq %r11,%r10
|
||||
rolq $27,%r8
|
||||
|
||||
notq %r11
|
||||
xorq %r9,%r10
|
||||
movq %r10,28(%rsi)
|
||||
|
||||
movq %r12,%r14
|
||||
orq %r11,%r12
|
||||
xorq %r13,%r12
|
||||
movq %r12,36(%rsi)
|
||||
|
||||
andq %r9,%r13
|
||||
xorq %r8,%r13
|
||||
movq %r13,20(%rsi)
|
||||
|
||||
orq %r8,%r9
|
||||
xorq %r14,%r9
|
||||
movq %r9,52(%rsi)
|
||||
|
||||
andq %r14,%r8
|
||||
xorq %r11,%r8
|
||||
movq %r8,44(%rsi)
|
||||
|
||||
|
||||
xorq -84(%rdi),%rdx
|
||||
xorq -36(%rdi),%rbp
|
||||
rolq $62,%rdx
|
||||
xorq 68(%rdi),%rcx
|
||||
rolq $55,%rbp
|
||||
xorq 12(%rdi),%rax
|
||||
rolq $2,%rcx
|
||||
xorq 20(%rdi),%rbx
|
||||
xchgq %rsi,%rdi
|
||||
rolq $39,%rax
|
||||
rolq $41,%rbx
|
||||
movq %rdx,%r13
|
||||
andq %rbp,%rdx
|
||||
notq %rbp
|
||||
xorq %rcx,%rdx
|
||||
movq %rdx,92(%rdi)
|
||||
|
||||
movq %rax,%r14
|
||||
andq %rbp,%rax
|
||||
xorq %r13,%rax
|
||||
movq %rax,60(%rdi)
|
||||
|
||||
orq %rcx,%r13
|
||||
xorq %rbx,%r13
|
||||
movq %r13,84(%rdi)
|
||||
|
||||
andq %rbx,%rcx
|
||||
xorq %r14,%rcx
|
||||
movq %rcx,76(%rdi)
|
||||
|
||||
orq %r14,%rbx
|
||||
xorq %rbp,%rbx
|
||||
movq %rbx,68(%rdi)
|
||||
|
||||
movq %rdx,%rbp
|
||||
movq %r13,%rdx
|
||||
|
||||
testq $255,%r15
|
||||
jnz .Loop
|
||||
|
||||
leaq -192(%r15),%r15
|
||||
.byte 0xf3,0xc3
|
||||
.size __KeccakF1600,.-__KeccakF1600
|
||||
|
||||
.type KeccakF1600,@function
|
||||
.align 32
|
||||
KeccakF1600:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
leaq 100(%rdi),%rdi
|
||||
subq $200,%rsp
|
||||
.cfi_adjust_cfa_offset 200
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
|
||||
leaq iotas(%rip),%r15
|
||||
leaq 100(%rsp),%rsi
|
||||
|
||||
call __KeccakF1600
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
leaq -100(%rdi),%rdi
|
||||
|
||||
addq $200,%rsp
|
||||
.cfi_adjust_cfa_offset -200
|
||||
|
||||
popq %r15
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r15
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r12
|
||||
popq %rbp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbp
|
||||
popq %rbx
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbx
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size KeccakF1600,.-KeccakF1600
|
||||
.globl SHA3_absorb
|
||||
.type SHA3_absorb,@function
|
||||
.align 32
|
||||
SHA3_absorb:
|
||||
.cfi_startproc
|
||||
pushq %rbx
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
leaq 100(%rdi),%rdi
|
||||
subq $232,%rsp
|
||||
.cfi_adjust_cfa_offset 232
|
||||
|
||||
movq %rsi,%r9
|
||||
leaq 100(%rsp),%rsi
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
leaq iotas(%rip),%r15
|
||||
|
||||
movq %rcx,216-100(%rsi)
|
||||
|
||||
.Loop_absorb:
|
||||
cmpq %rcx,%rdx
|
||||
jc .Ldone_absorb
|
||||
|
||||
shrq $3,%rcx
|
||||
leaq -100(%rdi),%r8
|
||||
|
||||
.Lblock_absorb:
|
||||
movq (%r9),%rax
|
||||
leaq 8(%r9),%r9
|
||||
xorq (%r8),%rax
|
||||
leaq 8(%r8),%r8
|
||||
subq $8,%rdx
|
||||
movq %rax,-8(%r8)
|
||||
subq $1,%rcx
|
||||
jnz .Lblock_absorb
|
||||
|
||||
movq %r9,200-100(%rsi)
|
||||
movq %rdx,208-100(%rsi)
|
||||
call __KeccakF1600
|
||||
movq 200-100(%rsi),%r9
|
||||
movq 208-100(%rsi),%rdx
|
||||
movq 216-100(%rsi),%rcx
|
||||
jmp .Loop_absorb
|
||||
|
||||
.align 32
|
||||
.Ldone_absorb:
|
||||
movq %rdx,%rax
|
||||
|
||||
notq -92(%rdi)
|
||||
notq -84(%rdi)
|
||||
notq -36(%rdi)
|
||||
notq -4(%rdi)
|
||||
notq 36(%rdi)
|
||||
notq 60(%rdi)
|
||||
|
||||
addq $232,%rsp
|
||||
.cfi_adjust_cfa_offset -232
|
||||
|
||||
popq %r15
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r15
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r12
|
||||
popq %rbp
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbp
|
||||
popq %rbx
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %rbx
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size SHA3_absorb,.-SHA3_absorb
|
||||
.globl SHA3_squeeze
|
||||
.type SHA3_squeeze,@function
|
||||
.align 32
|
||||
SHA3_squeeze:
|
||||
.cfi_startproc
|
||||
pushq %r12
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r12,-16
|
||||
pushq %r13
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r13,-24
|
||||
pushq %r14
|
||||
.cfi_adjust_cfa_offset 8
|
||||
.cfi_offset %r14,-32
|
||||
|
||||
shrq $3,%rcx
|
||||
movq %rdi,%r8
|
||||
movq %rsi,%r12
|
||||
movq %rdx,%r13
|
||||
movq %rcx,%r14
|
||||
jmp .Loop_squeeze
|
||||
|
||||
.align 32
|
||||
.Loop_squeeze:
|
||||
cmpq $8,%r13
|
||||
jb .Ltail_squeeze
|
||||
|
||||
movq (%r8),%rax
|
||||
leaq 8(%r8),%r8
|
||||
movq %rax,(%r12)
|
||||
leaq 8(%r12),%r12
|
||||
subq $8,%r13
|
||||
jz .Ldone_squeeze
|
||||
|
||||
subq $1,%rcx
|
||||
jnz .Loop_squeeze
|
||||
|
||||
call KeccakF1600
|
||||
movq %rdi,%r8
|
||||
movq %r14,%rcx
|
||||
jmp .Loop_squeeze
|
||||
|
||||
.Ltail_squeeze:
|
||||
movq %r8,%rsi
|
||||
movq %r12,%rdi
|
||||
movq %r13,%rcx
|
||||
.byte 0xf3,0xa4
|
||||
|
||||
.Ldone_squeeze:
|
||||
popq %r14
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r14
|
||||
popq %r13
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
popq %r12
|
||||
.cfi_adjust_cfa_offset -8
|
||||
.cfi_restore %r13
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size SHA3_squeeze,.-SHA3_squeeze
|
||||
.align 256
|
||||
.quad 0,0,0,0,0,0,0,0
|
||||
.type iotas,@object
|
||||
iotas:
|
||||
.quad 0x0000000000000001
|
||||
.quad 0x0000000000008082
|
||||
.quad 0x800000000000808a
|
||||
.quad 0x8000000080008000
|
||||
.quad 0x000000000000808b
|
||||
.quad 0x0000000080000001
|
||||
.quad 0x8000000080008081
|
||||
.quad 0x8000000000008009
|
||||
.quad 0x000000000000008a
|
||||
.quad 0x0000000000000088
|
||||
.quad 0x0000000080008009
|
||||
.quad 0x000000008000000a
|
||||
.quad 0x000000008000808b
|
||||
.quad 0x800000000000008b
|
||||
.quad 0x8000000000008089
|
||||
.quad 0x8000000000008003
|
||||
.quad 0x8000000000008002
|
||||
.quad 0x8000000000000080
|
||||
.quad 0x000000000000800a
|
||||
.quad 0x800000008000000a
|
||||
.quad 0x8000000080008081
|
||||
.quad 0x8000000000008080
|
||||
.quad 0x0000000080000001
|
||||
.quad 0x8000000080008008
|
||||
.size iotas,.-iotas
|
||||
.byte 75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+7948
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,879 @@
|
||||
.text
|
||||
|
||||
.globl whirlpool_block
|
||||
.type whirlpool_block,@function
|
||||
.align 16
|
||||
whirlpool_block:
|
||||
.cfi_startproc
|
||||
movq %rsp,%rax
|
||||
.cfi_def_cfa_register %rax
|
||||
pushq %rbx
|
||||
.cfi_offset %rbx,-16
|
||||
pushq %rbp
|
||||
.cfi_offset %rbp,-24
|
||||
pushq %r12
|
||||
.cfi_offset %r12,-32
|
||||
pushq %r13
|
||||
.cfi_offset %r13,-40
|
||||
pushq %r14
|
||||
.cfi_offset %r14,-48
|
||||
pushq %r15
|
||||
.cfi_offset %r15,-56
|
||||
|
||||
subq $128+40,%rsp
|
||||
andq $-64,%rsp
|
||||
|
||||
leaq 128(%rsp),%r10
|
||||
movq %rdi,0(%r10)
|
||||
movq %rsi,8(%r10)
|
||||
movq %rdx,16(%r10)
|
||||
movq %rax,32(%r10)
|
||||
.cfi_escape 0x0f,0x06,0x77,0xa0,0x01,0x06,0x23,0x08
|
||||
.Lprologue:
|
||||
|
||||
movq %r10,%rbx
|
||||
leaq .Ltable(%rip),%rbp
|
||||
|
||||
xorq %rcx,%rcx
|
||||
xorq %rdx,%rdx
|
||||
movq 0(%rdi),%r8
|
||||
movq 8(%rdi),%r9
|
||||
movq 16(%rdi),%r10
|
||||
movq 24(%rdi),%r11
|
||||
movq 32(%rdi),%r12
|
||||
movq 40(%rdi),%r13
|
||||
movq 48(%rdi),%r14
|
||||
movq 56(%rdi),%r15
|
||||
.Louterloop:
|
||||
movq %r8,0(%rsp)
|
||||
movq %r9,8(%rsp)
|
||||
movq %r10,16(%rsp)
|
||||
movq %r11,24(%rsp)
|
||||
movq %r12,32(%rsp)
|
||||
movq %r13,40(%rsp)
|
||||
movq %r14,48(%rsp)
|
||||
movq %r15,56(%rsp)
|
||||
xorq 0(%rsi),%r8
|
||||
xorq 8(%rsi),%r9
|
||||
xorq 16(%rsi),%r10
|
||||
xorq 24(%rsi),%r11
|
||||
xorq 32(%rsi),%r12
|
||||
xorq 40(%rsi),%r13
|
||||
xorq 48(%rsi),%r14
|
||||
xorq 56(%rsi),%r15
|
||||
movq %r8,64+0(%rsp)
|
||||
movq %r9,64+8(%rsp)
|
||||
movq %r10,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %r12,64+32(%rsp)
|
||||
movq %r13,64+40(%rsp)
|
||||
movq %r14,64+48(%rsp)
|
||||
movq %r15,64+56(%rsp)
|
||||
xorq %rsi,%rsi
|
||||
movq %rsi,24(%rbx)
|
||||
jmp .Lround
|
||||
.align 16
|
||||
.Lround:
|
||||
movq 4096(%rbp,%rsi,8),%r8
|
||||
movl 0(%rsp),%eax
|
||||
movl 4(%rsp),%ebx
|
||||
movzbl %al,%ecx
|
||||
movzbl %ah,%edx
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r8
|
||||
movq 7(%rbp,%rdi,8),%r9
|
||||
movl 0+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
movq 6(%rbp,%rsi,8),%r10
|
||||
movq 5(%rbp,%rdi,8),%r11
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
movq 4(%rbp,%rsi,8),%r12
|
||||
movq 3(%rbp,%rdi,8),%r13
|
||||
movl 0+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
movq 2(%rbp,%rsi,8),%r14
|
||||
movq 1(%rbp,%rdi,8),%r15
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r9
|
||||
xorq 7(%rbp,%rdi,8),%r10
|
||||
movl 8+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r11
|
||||
xorq 5(%rbp,%rdi,8),%r12
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r13
|
||||
xorq 3(%rbp,%rdi,8),%r14
|
||||
movl 8+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r15
|
||||
xorq 1(%rbp,%rdi,8),%r8
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r10
|
||||
xorq 7(%rbp,%rdi,8),%r11
|
||||
movl 16+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r12
|
||||
xorq 5(%rbp,%rdi,8),%r13
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r14
|
||||
xorq 3(%rbp,%rdi,8),%r15
|
||||
movl 16+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r8
|
||||
xorq 1(%rbp,%rdi,8),%r9
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r11
|
||||
xorq 7(%rbp,%rdi,8),%r12
|
||||
movl 24+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r13
|
||||
xorq 5(%rbp,%rdi,8),%r14
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r15
|
||||
xorq 3(%rbp,%rdi,8),%r8
|
||||
movl 24+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r9
|
||||
xorq 1(%rbp,%rdi,8),%r10
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r12
|
||||
xorq 7(%rbp,%rdi,8),%r13
|
||||
movl 32+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r14
|
||||
xorq 5(%rbp,%rdi,8),%r15
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r8
|
||||
xorq 3(%rbp,%rdi,8),%r9
|
||||
movl 32+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r10
|
||||
xorq 1(%rbp,%rdi,8),%r11
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r13
|
||||
xorq 7(%rbp,%rdi,8),%r14
|
||||
movl 40+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r15
|
||||
xorq 5(%rbp,%rdi,8),%r8
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r9
|
||||
xorq 3(%rbp,%rdi,8),%r10
|
||||
movl 40+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r11
|
||||
xorq 1(%rbp,%rdi,8),%r12
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r14
|
||||
xorq 7(%rbp,%rdi,8),%r15
|
||||
movl 48+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r8
|
||||
xorq 5(%rbp,%rdi,8),%r9
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r10
|
||||
xorq 3(%rbp,%rdi,8),%r11
|
||||
movl 48+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r12
|
||||
xorq 1(%rbp,%rdi,8),%r13
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r15
|
||||
xorq 7(%rbp,%rdi,8),%r8
|
||||
movl 56+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r9
|
||||
xorq 5(%rbp,%rdi,8),%r10
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r11
|
||||
xorq 3(%rbp,%rdi,8),%r12
|
||||
movl 56+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r13
|
||||
xorq 1(%rbp,%rdi,8),%r14
|
||||
movq %r8,0(%rsp)
|
||||
movq %r9,8(%rsp)
|
||||
movq %r10,16(%rsp)
|
||||
movq %r11,24(%rsp)
|
||||
movq %r12,32(%rsp)
|
||||
movq %r13,40(%rsp)
|
||||
movq %r14,48(%rsp)
|
||||
movq %r15,56(%rsp)
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r8
|
||||
xorq 7(%rbp,%rdi,8),%r9
|
||||
movl 64+0+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r10
|
||||
xorq 5(%rbp,%rdi,8),%r11
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r12
|
||||
xorq 3(%rbp,%rdi,8),%r13
|
||||
movl 64+0+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r14
|
||||
xorq 1(%rbp,%rdi,8),%r15
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r9
|
||||
xorq 7(%rbp,%rdi,8),%r10
|
||||
movl 64+8+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r11
|
||||
xorq 5(%rbp,%rdi,8),%r12
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r13
|
||||
xorq 3(%rbp,%rdi,8),%r14
|
||||
movl 64+8+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r15
|
||||
xorq 1(%rbp,%rdi,8),%r8
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r10
|
||||
xorq 7(%rbp,%rdi,8),%r11
|
||||
movl 64+16+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r12
|
||||
xorq 5(%rbp,%rdi,8),%r13
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r14
|
||||
xorq 3(%rbp,%rdi,8),%r15
|
||||
movl 64+16+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r8
|
||||
xorq 1(%rbp,%rdi,8),%r9
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r11
|
||||
xorq 7(%rbp,%rdi,8),%r12
|
||||
movl 64+24+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r13
|
||||
xorq 5(%rbp,%rdi,8),%r14
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r15
|
||||
xorq 3(%rbp,%rdi,8),%r8
|
||||
movl 64+24+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r9
|
||||
xorq 1(%rbp,%rdi,8),%r10
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r12
|
||||
xorq 7(%rbp,%rdi,8),%r13
|
||||
movl 64+32+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r14
|
||||
xorq 5(%rbp,%rdi,8),%r15
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r8
|
||||
xorq 3(%rbp,%rdi,8),%r9
|
||||
movl 64+32+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r10
|
||||
xorq 1(%rbp,%rdi,8),%r11
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r13
|
||||
xorq 7(%rbp,%rdi,8),%r14
|
||||
movl 64+40+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r15
|
||||
xorq 5(%rbp,%rdi,8),%r8
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r9
|
||||
xorq 3(%rbp,%rdi,8),%r10
|
||||
movl 64+40+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r11
|
||||
xorq 1(%rbp,%rdi,8),%r12
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r14
|
||||
xorq 7(%rbp,%rdi,8),%r15
|
||||
movl 64+48+8(%rsp),%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r8
|
||||
xorq 5(%rbp,%rdi,8),%r9
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r10
|
||||
xorq 3(%rbp,%rdi,8),%r11
|
||||
movl 64+48+8+4(%rsp),%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r12
|
||||
xorq 1(%rbp,%rdi,8),%r13
|
||||
shrl $16,%eax
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 0(%rbp,%rsi,8),%r15
|
||||
xorq 7(%rbp,%rdi,8),%r8
|
||||
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 6(%rbp,%rsi,8),%r9
|
||||
xorq 5(%rbp,%rdi,8),%r10
|
||||
shrl $16,%ebx
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %bl,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %bh,%edx
|
||||
xorq 4(%rbp,%rsi,8),%r11
|
||||
xorq 3(%rbp,%rdi,8),%r12
|
||||
|
||||
leaq (%rcx,%rcx,1),%rsi
|
||||
movzbl %al,%ecx
|
||||
leaq (%rdx,%rdx,1),%rdi
|
||||
movzbl %ah,%edx
|
||||
xorq 2(%rbp,%rsi,8),%r13
|
||||
xorq 1(%rbp,%rdi,8),%r14
|
||||
leaq 128(%rsp),%rbx
|
||||
movq 24(%rbx),%rsi
|
||||
addq $1,%rsi
|
||||
cmpq $10,%rsi
|
||||
je .Lroundsdone
|
||||
|
||||
movq %rsi,24(%rbx)
|
||||
movq %r8,64+0(%rsp)
|
||||
movq %r9,64+8(%rsp)
|
||||
movq %r10,64+16(%rsp)
|
||||
movq %r11,64+24(%rsp)
|
||||
movq %r12,64+32(%rsp)
|
||||
movq %r13,64+40(%rsp)
|
||||
movq %r14,64+48(%rsp)
|
||||
movq %r15,64+56(%rsp)
|
||||
jmp .Lround
|
||||
.align 16
|
||||
.Lroundsdone:
|
||||
movq 0(%rbx),%rdi
|
||||
movq 8(%rbx),%rsi
|
||||
movq 16(%rbx),%rax
|
||||
xorq 0(%rsi),%r8
|
||||
xorq 8(%rsi),%r9
|
||||
xorq 16(%rsi),%r10
|
||||
xorq 24(%rsi),%r11
|
||||
xorq 32(%rsi),%r12
|
||||
xorq 40(%rsi),%r13
|
||||
xorq 48(%rsi),%r14
|
||||
xorq 56(%rsi),%r15
|
||||
xorq 0(%rdi),%r8
|
||||
xorq 8(%rdi),%r9
|
||||
xorq 16(%rdi),%r10
|
||||
xorq 24(%rdi),%r11
|
||||
xorq 32(%rdi),%r12
|
||||
xorq 40(%rdi),%r13
|
||||
xorq 48(%rdi),%r14
|
||||
xorq 56(%rdi),%r15
|
||||
movq %r8,0(%rdi)
|
||||
movq %r9,8(%rdi)
|
||||
movq %r10,16(%rdi)
|
||||
movq %r11,24(%rdi)
|
||||
movq %r12,32(%rdi)
|
||||
movq %r13,40(%rdi)
|
||||
movq %r14,48(%rdi)
|
||||
movq %r15,56(%rdi)
|
||||
leaq 64(%rsi),%rsi
|
||||
subq $1,%rax
|
||||
jz .Lalldone
|
||||
movq %rsi,8(%rbx)
|
||||
movq %rax,16(%rbx)
|
||||
jmp .Louterloop
|
||||
.Lalldone:
|
||||
movq 32(%rbx),%rsi
|
||||
.cfi_def_cfa %rsi,8
|
||||
movq -48(%rsi),%r15
|
||||
.cfi_restore %r15
|
||||
movq -40(%rsi),%r14
|
||||
.cfi_restore %r14
|
||||
movq -32(%rsi),%r13
|
||||
.cfi_restore %r13
|
||||
movq -24(%rsi),%r12
|
||||
.cfi_restore %r12
|
||||
movq -16(%rsi),%rbp
|
||||
.cfi_restore %rbp
|
||||
movq -8(%rsi),%rbx
|
||||
.cfi_restore %rbx
|
||||
leaq (%rsi),%rsp
|
||||
.cfi_def_cfa_register %rsp
|
||||
.Lepilogue:
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size whirlpool_block,.-whirlpool_block
|
||||
|
||||
.align 64
|
||||
.type .Ltable,@object
|
||||
.Ltable:
|
||||
.byte 24,24,96,24,192,120,48,216,24,24,96,24,192,120,48,216
|
||||
.byte 35,35,140,35,5,175,70,38,35,35,140,35,5,175,70,38
|
||||
.byte 198,198,63,198,126,249,145,184,198,198,63,198,126,249,145,184
|
||||
.byte 232,232,135,232,19,111,205,251,232,232,135,232,19,111,205,251
|
||||
.byte 135,135,38,135,76,161,19,203,135,135,38,135,76,161,19,203
|
||||
.byte 184,184,218,184,169,98,109,17,184,184,218,184,169,98,109,17
|
||||
.byte 1,1,4,1,8,5,2,9,1,1,4,1,8,5,2,9
|
||||
.byte 79,79,33,79,66,110,158,13,79,79,33,79,66,110,158,13
|
||||
.byte 54,54,216,54,173,238,108,155,54,54,216,54,173,238,108,155
|
||||
.byte 166,166,162,166,89,4,81,255,166,166,162,166,89,4,81,255
|
||||
.byte 210,210,111,210,222,189,185,12,210,210,111,210,222,189,185,12
|
||||
.byte 245,245,243,245,251,6,247,14,245,245,243,245,251,6,247,14
|
||||
.byte 121,121,249,121,239,128,242,150,121,121,249,121,239,128,242,150
|
||||
.byte 111,111,161,111,95,206,222,48,111,111,161,111,95,206,222,48
|
||||
.byte 145,145,126,145,252,239,63,109,145,145,126,145,252,239,63,109
|
||||
.byte 82,82,85,82,170,7,164,248,82,82,85,82,170,7,164,248
|
||||
.byte 96,96,157,96,39,253,192,71,96,96,157,96,39,253,192,71
|
||||
.byte 188,188,202,188,137,118,101,53,188,188,202,188,137,118,101,53
|
||||
.byte 155,155,86,155,172,205,43,55,155,155,86,155,172,205,43,55
|
||||
.byte 142,142,2,142,4,140,1,138,142,142,2,142,4,140,1,138
|
||||
.byte 163,163,182,163,113,21,91,210,163,163,182,163,113,21,91,210
|
||||
.byte 12,12,48,12,96,60,24,108,12,12,48,12,96,60,24,108
|
||||
.byte 123,123,241,123,255,138,246,132,123,123,241,123,255,138,246,132
|
||||
.byte 53,53,212,53,181,225,106,128,53,53,212,53,181,225,106,128
|
||||
.byte 29,29,116,29,232,105,58,245,29,29,116,29,232,105,58,245
|
||||
.byte 224,224,167,224,83,71,221,179,224,224,167,224,83,71,221,179
|
||||
.byte 215,215,123,215,246,172,179,33,215,215,123,215,246,172,179,33
|
||||
.byte 194,194,47,194,94,237,153,156,194,194,47,194,94,237,153,156
|
||||
.byte 46,46,184,46,109,150,92,67,46,46,184,46,109,150,92,67
|
||||
.byte 75,75,49,75,98,122,150,41,75,75,49,75,98,122,150,41
|
||||
.byte 254,254,223,254,163,33,225,93,254,254,223,254,163,33,225,93
|
||||
.byte 87,87,65,87,130,22,174,213,87,87,65,87,130,22,174,213
|
||||
.byte 21,21,84,21,168,65,42,189,21,21,84,21,168,65,42,189
|
||||
.byte 119,119,193,119,159,182,238,232,119,119,193,119,159,182,238,232
|
||||
.byte 55,55,220,55,165,235,110,146,55,55,220,55,165,235,110,146
|
||||
.byte 229,229,179,229,123,86,215,158,229,229,179,229,123,86,215,158
|
||||
.byte 159,159,70,159,140,217,35,19,159,159,70,159,140,217,35,19
|
||||
.byte 240,240,231,240,211,23,253,35,240,240,231,240,211,23,253,35
|
||||
.byte 74,74,53,74,106,127,148,32,74,74,53,74,106,127,148,32
|
||||
.byte 218,218,79,218,158,149,169,68,218,218,79,218,158,149,169,68
|
||||
.byte 88,88,125,88,250,37,176,162,88,88,125,88,250,37,176,162
|
||||
.byte 201,201,3,201,6,202,143,207,201,201,3,201,6,202,143,207
|
||||
.byte 41,41,164,41,85,141,82,124,41,41,164,41,85,141,82,124
|
||||
.byte 10,10,40,10,80,34,20,90,10,10,40,10,80,34,20,90
|
||||
.byte 177,177,254,177,225,79,127,80,177,177,254,177,225,79,127,80
|
||||
.byte 160,160,186,160,105,26,93,201,160,160,186,160,105,26,93,201
|
||||
.byte 107,107,177,107,127,218,214,20,107,107,177,107,127,218,214,20
|
||||
.byte 133,133,46,133,92,171,23,217,133,133,46,133,92,171,23,217
|
||||
.byte 189,189,206,189,129,115,103,60,189,189,206,189,129,115,103,60
|
||||
.byte 93,93,105,93,210,52,186,143,93,93,105,93,210,52,186,143
|
||||
.byte 16,16,64,16,128,80,32,144,16,16,64,16,128,80,32,144
|
||||
.byte 244,244,247,244,243,3,245,7,244,244,247,244,243,3,245,7
|
||||
.byte 203,203,11,203,22,192,139,221,203,203,11,203,22,192,139,221
|
||||
.byte 62,62,248,62,237,198,124,211,62,62,248,62,237,198,124,211
|
||||
.byte 5,5,20,5,40,17,10,45,5,5,20,5,40,17,10,45
|
||||
.byte 103,103,129,103,31,230,206,120,103,103,129,103,31,230,206,120
|
||||
.byte 228,228,183,228,115,83,213,151,228,228,183,228,115,83,213,151
|
||||
.byte 39,39,156,39,37,187,78,2,39,39,156,39,37,187,78,2
|
||||
.byte 65,65,25,65,50,88,130,115,65,65,25,65,50,88,130,115
|
||||
.byte 139,139,22,139,44,157,11,167,139,139,22,139,44,157,11,167
|
||||
.byte 167,167,166,167,81,1,83,246,167,167,166,167,81,1,83,246
|
||||
.byte 125,125,233,125,207,148,250,178,125,125,233,125,207,148,250,178
|
||||
.byte 149,149,110,149,220,251,55,73,149,149,110,149,220,251,55,73
|
||||
.byte 216,216,71,216,142,159,173,86,216,216,71,216,142,159,173,86
|
||||
.byte 251,251,203,251,139,48,235,112,251,251,203,251,139,48,235,112
|
||||
.byte 238,238,159,238,35,113,193,205,238,238,159,238,35,113,193,205
|
||||
.byte 124,124,237,124,199,145,248,187,124,124,237,124,199,145,248,187
|
||||
.byte 102,102,133,102,23,227,204,113,102,102,133,102,23,227,204,113
|
||||
.byte 221,221,83,221,166,142,167,123,221,221,83,221,166,142,167,123
|
||||
.byte 23,23,92,23,184,75,46,175,23,23,92,23,184,75,46,175
|
||||
.byte 71,71,1,71,2,70,142,69,71,71,1,71,2,70,142,69
|
||||
.byte 158,158,66,158,132,220,33,26,158,158,66,158,132,220,33,26
|
||||
.byte 202,202,15,202,30,197,137,212,202,202,15,202,30,197,137,212
|
||||
.byte 45,45,180,45,117,153,90,88,45,45,180,45,117,153,90,88
|
||||
.byte 191,191,198,191,145,121,99,46,191,191,198,191,145,121,99,46
|
||||
.byte 7,7,28,7,56,27,14,63,7,7,28,7,56,27,14,63
|
||||
.byte 173,173,142,173,1,35,71,172,173,173,142,173,1,35,71,172
|
||||
.byte 90,90,117,90,234,47,180,176,90,90,117,90,234,47,180,176
|
||||
.byte 131,131,54,131,108,181,27,239,131,131,54,131,108,181,27,239
|
||||
.byte 51,51,204,51,133,255,102,182,51,51,204,51,133,255,102,182
|
||||
.byte 99,99,145,99,63,242,198,92,99,99,145,99,63,242,198,92
|
||||
.byte 2,2,8,2,16,10,4,18,2,2,8,2,16,10,4,18
|
||||
.byte 170,170,146,170,57,56,73,147,170,170,146,170,57,56,73,147
|
||||
.byte 113,113,217,113,175,168,226,222,113,113,217,113,175,168,226,222
|
||||
.byte 200,200,7,200,14,207,141,198,200,200,7,200,14,207,141,198
|
||||
.byte 25,25,100,25,200,125,50,209,25,25,100,25,200,125,50,209
|
||||
.byte 73,73,57,73,114,112,146,59,73,73,57,73,114,112,146,59
|
||||
.byte 217,217,67,217,134,154,175,95,217,217,67,217,134,154,175,95
|
||||
.byte 242,242,239,242,195,29,249,49,242,242,239,242,195,29,249,49
|
||||
.byte 227,227,171,227,75,72,219,168,227,227,171,227,75,72,219,168
|
||||
.byte 91,91,113,91,226,42,182,185,91,91,113,91,226,42,182,185
|
||||
.byte 136,136,26,136,52,146,13,188,136,136,26,136,52,146,13,188
|
||||
.byte 154,154,82,154,164,200,41,62,154,154,82,154,164,200,41,62
|
||||
.byte 38,38,152,38,45,190,76,11,38,38,152,38,45,190,76,11
|
||||
.byte 50,50,200,50,141,250,100,191,50,50,200,50,141,250,100,191
|
||||
.byte 176,176,250,176,233,74,125,89,176,176,250,176,233,74,125,89
|
||||
.byte 233,233,131,233,27,106,207,242,233,233,131,233,27,106,207,242
|
||||
.byte 15,15,60,15,120,51,30,119,15,15,60,15,120,51,30,119
|
||||
.byte 213,213,115,213,230,166,183,51,213,213,115,213,230,166,183,51
|
||||
.byte 128,128,58,128,116,186,29,244,128,128,58,128,116,186,29,244
|
||||
.byte 190,190,194,190,153,124,97,39,190,190,194,190,153,124,97,39
|
||||
.byte 205,205,19,205,38,222,135,235,205,205,19,205,38,222,135,235
|
||||
.byte 52,52,208,52,189,228,104,137,52,52,208,52,189,228,104,137
|
||||
.byte 72,72,61,72,122,117,144,50,72,72,61,72,122,117,144,50
|
||||
.byte 255,255,219,255,171,36,227,84,255,255,219,255,171,36,227,84
|
||||
.byte 122,122,245,122,247,143,244,141,122,122,245,122,247,143,244,141
|
||||
.byte 144,144,122,144,244,234,61,100,144,144,122,144,244,234,61,100
|
||||
.byte 95,95,97,95,194,62,190,157,95,95,97,95,194,62,190,157
|
||||
.byte 32,32,128,32,29,160,64,61,32,32,128,32,29,160,64,61
|
||||
.byte 104,104,189,104,103,213,208,15,104,104,189,104,103,213,208,15
|
||||
.byte 26,26,104,26,208,114,52,202,26,26,104,26,208,114,52,202
|
||||
.byte 174,174,130,174,25,44,65,183,174,174,130,174,25,44,65,183
|
||||
.byte 180,180,234,180,201,94,117,125,180,180,234,180,201,94,117,125
|
||||
.byte 84,84,77,84,154,25,168,206,84,84,77,84,154,25,168,206
|
||||
.byte 147,147,118,147,236,229,59,127,147,147,118,147,236,229,59,127
|
||||
.byte 34,34,136,34,13,170,68,47,34,34,136,34,13,170,68,47
|
||||
.byte 100,100,141,100,7,233,200,99,100,100,141,100,7,233,200,99
|
||||
.byte 241,241,227,241,219,18,255,42,241,241,227,241,219,18,255,42
|
||||
.byte 115,115,209,115,191,162,230,204,115,115,209,115,191,162,230,204
|
||||
.byte 18,18,72,18,144,90,36,130,18,18,72,18,144,90,36,130
|
||||
.byte 64,64,29,64,58,93,128,122,64,64,29,64,58,93,128,122
|
||||
.byte 8,8,32,8,64,40,16,72,8,8,32,8,64,40,16,72
|
||||
.byte 195,195,43,195,86,232,155,149,195,195,43,195,86,232,155,149
|
||||
.byte 236,236,151,236,51,123,197,223,236,236,151,236,51,123,197,223
|
||||
.byte 219,219,75,219,150,144,171,77,219,219,75,219,150,144,171,77
|
||||
.byte 161,161,190,161,97,31,95,192,161,161,190,161,97,31,95,192
|
||||
.byte 141,141,14,141,28,131,7,145,141,141,14,141,28,131,7,145
|
||||
.byte 61,61,244,61,245,201,122,200,61,61,244,61,245,201,122,200
|
||||
.byte 151,151,102,151,204,241,51,91,151,151,102,151,204,241,51,91
|
||||
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
.byte 207,207,27,207,54,212,131,249,207,207,27,207,54,212,131,249
|
||||
.byte 43,43,172,43,69,135,86,110,43,43,172,43,69,135,86,110
|
||||
.byte 118,118,197,118,151,179,236,225,118,118,197,118,151,179,236,225
|
||||
.byte 130,130,50,130,100,176,25,230,130,130,50,130,100,176,25,230
|
||||
.byte 214,214,127,214,254,169,177,40,214,214,127,214,254,169,177,40
|
||||
.byte 27,27,108,27,216,119,54,195,27,27,108,27,216,119,54,195
|
||||
.byte 181,181,238,181,193,91,119,116,181,181,238,181,193,91,119,116
|
||||
.byte 175,175,134,175,17,41,67,190,175,175,134,175,17,41,67,190
|
||||
.byte 106,106,181,106,119,223,212,29,106,106,181,106,119,223,212,29
|
||||
.byte 80,80,93,80,186,13,160,234,80,80,93,80,186,13,160,234
|
||||
.byte 69,69,9,69,18,76,138,87,69,69,9,69,18,76,138,87
|
||||
.byte 243,243,235,243,203,24,251,56,243,243,235,243,203,24,251,56
|
||||
.byte 48,48,192,48,157,240,96,173,48,48,192,48,157,240,96,173
|
||||
.byte 239,239,155,239,43,116,195,196,239,239,155,239,43,116,195,196
|
||||
.byte 63,63,252,63,229,195,126,218,63,63,252,63,229,195,126,218
|
||||
.byte 85,85,73,85,146,28,170,199,85,85,73,85,146,28,170,199
|
||||
.byte 162,162,178,162,121,16,89,219,162,162,178,162,121,16,89,219
|
||||
.byte 234,234,143,234,3,101,201,233,234,234,143,234,3,101,201,233
|
||||
.byte 101,101,137,101,15,236,202,106,101,101,137,101,15,236,202,106
|
||||
.byte 186,186,210,186,185,104,105,3,186,186,210,186,185,104,105,3
|
||||
.byte 47,47,188,47,101,147,94,74,47,47,188,47,101,147,94,74
|
||||
.byte 192,192,39,192,78,231,157,142,192,192,39,192,78,231,157,142
|
||||
.byte 222,222,95,222,190,129,161,96,222,222,95,222,190,129,161,96
|
||||
.byte 28,28,112,28,224,108,56,252,28,28,112,28,224,108,56,252
|
||||
.byte 253,253,211,253,187,46,231,70,253,253,211,253,187,46,231,70
|
||||
.byte 77,77,41,77,82,100,154,31,77,77,41,77,82,100,154,31
|
||||
.byte 146,146,114,146,228,224,57,118,146,146,114,146,228,224,57,118
|
||||
.byte 117,117,201,117,143,188,234,250,117,117,201,117,143,188,234,250
|
||||
.byte 6,6,24,6,48,30,12,54,6,6,24,6,48,30,12,54
|
||||
.byte 138,138,18,138,36,152,9,174,138,138,18,138,36,152,9,174
|
||||
.byte 178,178,242,178,249,64,121,75,178,178,242,178,249,64,121,75
|
||||
.byte 230,230,191,230,99,89,209,133,230,230,191,230,99,89,209,133
|
||||
.byte 14,14,56,14,112,54,28,126,14,14,56,14,112,54,28,126
|
||||
.byte 31,31,124,31,248,99,62,231,31,31,124,31,248,99,62,231
|
||||
.byte 98,98,149,98,55,247,196,85,98,98,149,98,55,247,196,85
|
||||
.byte 212,212,119,212,238,163,181,58,212,212,119,212,238,163,181,58
|
||||
.byte 168,168,154,168,41,50,77,129,168,168,154,168,41,50,77,129
|
||||
.byte 150,150,98,150,196,244,49,82,150,150,98,150,196,244,49,82
|
||||
.byte 249,249,195,249,155,58,239,98,249,249,195,249,155,58,239,98
|
||||
.byte 197,197,51,197,102,246,151,163,197,197,51,197,102,246,151,163
|
||||
.byte 37,37,148,37,53,177,74,16,37,37,148,37,53,177,74,16
|
||||
.byte 89,89,121,89,242,32,178,171,89,89,121,89,242,32,178,171
|
||||
.byte 132,132,42,132,84,174,21,208,132,132,42,132,84,174,21,208
|
||||
.byte 114,114,213,114,183,167,228,197,114,114,213,114,183,167,228,197
|
||||
.byte 57,57,228,57,213,221,114,236,57,57,228,57,213,221,114,236
|
||||
.byte 76,76,45,76,90,97,152,22,76,76,45,76,90,97,152,22
|
||||
.byte 94,94,101,94,202,59,188,148,94,94,101,94,202,59,188,148
|
||||
.byte 120,120,253,120,231,133,240,159,120,120,253,120,231,133,240,159
|
||||
.byte 56,56,224,56,221,216,112,229,56,56,224,56,221,216,112,229
|
||||
.byte 140,140,10,140,20,134,5,152,140,140,10,140,20,134,5,152
|
||||
.byte 209,209,99,209,198,178,191,23,209,209,99,209,198,178,191,23
|
||||
.byte 165,165,174,165,65,11,87,228,165,165,174,165,65,11,87,228
|
||||
.byte 226,226,175,226,67,77,217,161,226,226,175,226,67,77,217,161
|
||||
.byte 97,97,153,97,47,248,194,78,97,97,153,97,47,248,194,78
|
||||
.byte 179,179,246,179,241,69,123,66,179,179,246,179,241,69,123,66
|
||||
.byte 33,33,132,33,21,165,66,52,33,33,132,33,21,165,66,52
|
||||
.byte 156,156,74,156,148,214,37,8,156,156,74,156,148,214,37,8
|
||||
.byte 30,30,120,30,240,102,60,238,30,30,120,30,240,102,60,238
|
||||
.byte 67,67,17,67,34,82,134,97,67,67,17,67,34,82,134,97
|
||||
.byte 199,199,59,199,118,252,147,177,199,199,59,199,118,252,147,177
|
||||
.byte 252,252,215,252,179,43,229,79,252,252,215,252,179,43,229,79
|
||||
.byte 4,4,16,4,32,20,8,36,4,4,16,4,32,20,8,36
|
||||
.byte 81,81,89,81,178,8,162,227,81,81,89,81,178,8,162,227
|
||||
.byte 153,153,94,153,188,199,47,37,153,153,94,153,188,199,47,37
|
||||
.byte 109,109,169,109,79,196,218,34,109,109,169,109,79,196,218,34
|
||||
.byte 13,13,52,13,104,57,26,101,13,13,52,13,104,57,26,101
|
||||
.byte 250,250,207,250,131,53,233,121,250,250,207,250,131,53,233,121
|
||||
.byte 223,223,91,223,182,132,163,105,223,223,91,223,182,132,163,105
|
||||
.byte 126,126,229,126,215,155,252,169,126,126,229,126,215,155,252,169
|
||||
.byte 36,36,144,36,61,180,72,25,36,36,144,36,61,180,72,25
|
||||
.byte 59,59,236,59,197,215,118,254,59,59,236,59,197,215,118,254
|
||||
.byte 171,171,150,171,49,61,75,154,171,171,150,171,49,61,75,154
|
||||
.byte 206,206,31,206,62,209,129,240,206,206,31,206,62,209,129,240
|
||||
.byte 17,17,68,17,136,85,34,153,17,17,68,17,136,85,34,153
|
||||
.byte 143,143,6,143,12,137,3,131,143,143,6,143,12,137,3,131
|
||||
.byte 78,78,37,78,74,107,156,4,78,78,37,78,74,107,156,4
|
||||
.byte 183,183,230,183,209,81,115,102,183,183,230,183,209,81,115,102
|
||||
.byte 235,235,139,235,11,96,203,224,235,235,139,235,11,96,203,224
|
||||
.byte 60,60,240,60,253,204,120,193,60,60,240,60,253,204,120,193
|
||||
.byte 129,129,62,129,124,191,31,253,129,129,62,129,124,191,31,253
|
||||
.byte 148,148,106,148,212,254,53,64,148,148,106,148,212,254,53,64
|
||||
.byte 247,247,251,247,235,12,243,28,247,247,251,247,235,12,243,28
|
||||
.byte 185,185,222,185,161,103,111,24,185,185,222,185,161,103,111,24
|
||||
.byte 19,19,76,19,152,95,38,139,19,19,76,19,152,95,38,139
|
||||
.byte 44,44,176,44,125,156,88,81,44,44,176,44,125,156,88,81
|
||||
.byte 211,211,107,211,214,184,187,5,211,211,107,211,214,184,187,5
|
||||
.byte 231,231,187,231,107,92,211,140,231,231,187,231,107,92,211,140
|
||||
.byte 110,110,165,110,87,203,220,57,110,110,165,110,87,203,220,57
|
||||
.byte 196,196,55,196,110,243,149,170,196,196,55,196,110,243,149,170
|
||||
.byte 3,3,12,3,24,15,6,27,3,3,12,3,24,15,6,27
|
||||
.byte 86,86,69,86,138,19,172,220,86,86,69,86,138,19,172,220
|
||||
.byte 68,68,13,68,26,73,136,94,68,68,13,68,26,73,136,94
|
||||
.byte 127,127,225,127,223,158,254,160,127,127,225,127,223,158,254,160
|
||||
.byte 169,169,158,169,33,55,79,136,169,169,158,169,33,55,79,136
|
||||
.byte 42,42,168,42,77,130,84,103,42,42,168,42,77,130,84,103
|
||||
.byte 187,187,214,187,177,109,107,10,187,187,214,187,177,109,107,10
|
||||
.byte 193,193,35,193,70,226,159,135,193,193,35,193,70,226,159,135
|
||||
.byte 83,83,81,83,162,2,166,241,83,83,81,83,162,2,166,241
|
||||
.byte 220,220,87,220,174,139,165,114,220,220,87,220,174,139,165,114
|
||||
.byte 11,11,44,11,88,39,22,83,11,11,44,11,88,39,22,83
|
||||
.byte 157,157,78,157,156,211,39,1,157,157,78,157,156,211,39,1
|
||||
.byte 108,108,173,108,71,193,216,43,108,108,173,108,71,193,216,43
|
||||
.byte 49,49,196,49,149,245,98,164,49,49,196,49,149,245,98,164
|
||||
.byte 116,116,205,116,135,185,232,243,116,116,205,116,135,185,232,243
|
||||
.byte 246,246,255,246,227,9,241,21,246,246,255,246,227,9,241,21
|
||||
.byte 70,70,5,70,10,67,140,76,70,70,5,70,10,67,140,76
|
||||
.byte 172,172,138,172,9,38,69,165,172,172,138,172,9,38,69,165
|
||||
.byte 137,137,30,137,60,151,15,181,137,137,30,137,60,151,15,181
|
||||
.byte 20,20,80,20,160,68,40,180,20,20,80,20,160,68,40,180
|
||||
.byte 225,225,163,225,91,66,223,186,225,225,163,225,91,66,223,186
|
||||
.byte 22,22,88,22,176,78,44,166,22,22,88,22,176,78,44,166
|
||||
.byte 58,58,232,58,205,210,116,247,58,58,232,58,205,210,116,247
|
||||
.byte 105,105,185,105,111,208,210,6,105,105,185,105,111,208,210,6
|
||||
.byte 9,9,36,9,72,45,18,65,9,9,36,9,72,45,18,65
|
||||
.byte 112,112,221,112,167,173,224,215,112,112,221,112,167,173,224,215
|
||||
.byte 182,182,226,182,217,84,113,111,182,182,226,182,217,84,113,111
|
||||
.byte 208,208,103,208,206,183,189,30,208,208,103,208,206,183,189,30
|
||||
.byte 237,237,147,237,59,126,199,214,237,237,147,237,59,126,199,214
|
||||
.byte 204,204,23,204,46,219,133,226,204,204,23,204,46,219,133,226
|
||||
.byte 66,66,21,66,42,87,132,104,66,66,21,66,42,87,132,104
|
||||
.byte 152,152,90,152,180,194,45,44,152,152,90,152,180,194,45,44
|
||||
.byte 164,164,170,164,73,14,85,237,164,164,170,164,73,14,85,237
|
||||
.byte 40,40,160,40,93,136,80,117,40,40,160,40,93,136,80,117
|
||||
.byte 92,92,109,92,218,49,184,134,92,92,109,92,218,49,184,134
|
||||
.byte 248,248,199,248,147,63,237,107,248,248,199,248,147,63,237,107
|
||||
.byte 134,134,34,134,68,164,17,194,134,134,34,134,68,164,17,194
|
||||
.byte 24,35,198,232,135,184,1,79
|
||||
.byte 54,166,210,245,121,111,145,82
|
||||
.byte 96,188,155,142,163,12,123,53
|
||||
.byte 29,224,215,194,46,75,254,87
|
||||
.byte 21,119,55,229,159,240,74,218
|
||||
.byte 88,201,41,10,177,160,107,133
|
||||
.byte 189,93,16,244,203,62,5,103
|
||||
.byte 228,39,65,139,167,125,149,216
|
||||
.byte 251,238,124,102,221,23,71,158
|
||||
.byte 202,45,191,7,173,90,131,51
|
||||
@@ -0,0 +1,463 @@
|
||||
|
||||
.hidden OPENSSL_cpuid_setup
|
||||
.section .init
|
||||
call OPENSSL_cpuid_setup
|
||||
|
||||
.hidden OPENSSL_ia32cap_P
|
||||
.comm OPENSSL_ia32cap_P,16,4
|
||||
|
||||
.text
|
||||
|
||||
.globl OPENSSL_atomic_add
|
||||
.type OPENSSL_atomic_add,@function
|
||||
.align 16
|
||||
OPENSSL_atomic_add:
|
||||
movl (%rdi),%eax
|
||||
.Lspin: leaq (%rsi,%rax,1),%r8
|
||||
.byte 0xf0
|
||||
cmpxchgl %r8d,(%rdi)
|
||||
jne .Lspin
|
||||
movl %r8d,%eax
|
||||
.byte 0x48,0x98
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_atomic_add,.-OPENSSL_atomic_add
|
||||
|
||||
.globl OPENSSL_rdtsc
|
||||
.type OPENSSL_rdtsc,@function
|
||||
.align 16
|
||||
OPENSSL_rdtsc:
|
||||
rdtsc
|
||||
shlq $32,%rdx
|
||||
orq %rdx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_rdtsc,.-OPENSSL_rdtsc
|
||||
|
||||
.globl OPENSSL_ia32_cpuid
|
||||
.type OPENSSL_ia32_cpuid,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_cpuid:
|
||||
.cfi_startproc
|
||||
movq %rbx,%r8
|
||||
.cfi_register %rbx,%r8
|
||||
|
||||
xorl %eax,%eax
|
||||
movq %rax,8(%rdi)
|
||||
cpuid
|
||||
movl %eax,%r11d
|
||||
|
||||
xorl %eax,%eax
|
||||
cmpl $0x756e6547,%ebx
|
||||
setne %al
|
||||
movl %eax,%r9d
|
||||
cmpl $0x49656e69,%edx
|
||||
setne %al
|
||||
orl %eax,%r9d
|
||||
cmpl $0x6c65746e,%ecx
|
||||
setne %al
|
||||
orl %eax,%r9d
|
||||
jz .Lintel
|
||||
|
||||
cmpl $0x68747541,%ebx
|
||||
setne %al
|
||||
movl %eax,%r10d
|
||||
cmpl $0x69746E65,%edx
|
||||
setne %al
|
||||
orl %eax,%r10d
|
||||
cmpl $0x444D4163,%ecx
|
||||
setne %al
|
||||
orl %eax,%r10d
|
||||
jnz .Lintel
|
||||
|
||||
|
||||
movl $0x80000000,%eax
|
||||
cpuid
|
||||
cmpl $0x80000001,%eax
|
||||
jb .Lintel
|
||||
movl %eax,%r10d
|
||||
movl $0x80000001,%eax
|
||||
cpuid
|
||||
orl %ecx,%r9d
|
||||
andl $0x00000801,%r9d
|
||||
|
||||
cmpl $0x80000008,%r10d
|
||||
jb .Lintel
|
||||
|
||||
movl $0x80000008,%eax
|
||||
cpuid
|
||||
movzbq %cl,%r10
|
||||
incq %r10
|
||||
|
||||
movl $1,%eax
|
||||
cpuid
|
||||
btl $28,%edx
|
||||
jnc .Lgeneric
|
||||
shrl $16,%ebx
|
||||
cmpb %r10b,%bl
|
||||
ja .Lgeneric
|
||||
andl $0xefffffff,%edx
|
||||
jmp .Lgeneric
|
||||
|
||||
.Lintel:
|
||||
cmpl $4,%r11d
|
||||
movl $-1,%r10d
|
||||
jb .Lnocacheinfo
|
||||
|
||||
movl $4,%eax
|
||||
movl $0,%ecx
|
||||
cpuid
|
||||
movl %eax,%r10d
|
||||
shrl $14,%r10d
|
||||
andl $0xfff,%r10d
|
||||
|
||||
.Lnocacheinfo:
|
||||
movl $1,%eax
|
||||
cpuid
|
||||
movd %eax,%xmm0
|
||||
andl $0xbfefffff,%edx
|
||||
cmpl $0,%r9d
|
||||
jne .Lnotintel
|
||||
orl $0x40000000,%edx
|
||||
andb $15,%ah
|
||||
cmpb $15,%ah
|
||||
jne .LnotP4
|
||||
orl $0x00100000,%edx
|
||||
.LnotP4:
|
||||
cmpb $6,%ah
|
||||
jne .Lnotintel
|
||||
andl $0x0fff0ff0,%eax
|
||||
cmpl $0x00050670,%eax
|
||||
je .Lknights
|
||||
cmpl $0x00080650,%eax
|
||||
jne .Lnotintel
|
||||
.Lknights:
|
||||
andl $0xfbffffff,%ecx
|
||||
|
||||
.Lnotintel:
|
||||
btl $28,%edx
|
||||
jnc .Lgeneric
|
||||
andl $0xefffffff,%edx
|
||||
cmpl $0,%r10d
|
||||
je .Lgeneric
|
||||
|
||||
orl $0x10000000,%edx
|
||||
shrl $16,%ebx
|
||||
cmpb $1,%bl
|
||||
ja .Lgeneric
|
||||
andl $0xefffffff,%edx
|
||||
.Lgeneric:
|
||||
andl $0x00000800,%r9d
|
||||
andl $0xfffff7ff,%ecx
|
||||
orl %ecx,%r9d
|
||||
|
||||
movl %edx,%r10d
|
||||
|
||||
cmpl $7,%r11d
|
||||
jb .Lno_extended_info
|
||||
movl $7,%eax
|
||||
xorl %ecx,%ecx
|
||||
cpuid
|
||||
btl $26,%r9d
|
||||
jc .Lnotknights
|
||||
andl $0xfff7ffff,%ebx
|
||||
.Lnotknights:
|
||||
movd %xmm0,%eax
|
||||
andl $0x0fff0ff0,%eax
|
||||
cmpl $0x00050650,%eax
|
||||
jne .Lnotskylakex
|
||||
andl $0xfffeffff,%ebx
|
||||
|
||||
.Lnotskylakex:
|
||||
movl %ebx,8(%rdi)
|
||||
movl %ecx,12(%rdi)
|
||||
.Lno_extended_info:
|
||||
|
||||
btl $27,%r9d
|
||||
jnc .Lclear_avx
|
||||
xorl %ecx,%ecx
|
||||
.byte 0x0f,0x01,0xd0
|
||||
andl $0xe6,%eax
|
||||
cmpl $0xe6,%eax
|
||||
je .Ldone
|
||||
andl $0x3fdeffff,8(%rdi)
|
||||
|
||||
|
||||
|
||||
|
||||
andl $6,%eax
|
||||
cmpl $6,%eax
|
||||
je .Ldone
|
||||
.Lclear_avx:
|
||||
movl $0xefffe7ff,%eax
|
||||
andl %eax,%r9d
|
||||
movl $0x3fdeffdf,%eax
|
||||
andl %eax,8(%rdi)
|
||||
.Ldone:
|
||||
shlq $32,%r9
|
||||
movl %r10d,%eax
|
||||
movq %r8,%rbx
|
||||
.cfi_restore %rbx
|
||||
orq %r9,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.cfi_endproc
|
||||
.size OPENSSL_ia32_cpuid,.-OPENSSL_ia32_cpuid
|
||||
|
||||
.globl OPENSSL_cleanse
|
||||
.type OPENSSL_cleanse,@function
|
||||
.align 16
|
||||
OPENSSL_cleanse:
|
||||
xorq %rax,%rax
|
||||
cmpq $15,%rsi
|
||||
jae .Lot
|
||||
cmpq $0,%rsi
|
||||
je .Lret
|
||||
.Little:
|
||||
movb %al,(%rdi)
|
||||
subq $1,%rsi
|
||||
leaq 1(%rdi),%rdi
|
||||
jnz .Little
|
||||
.Lret:
|
||||
.byte 0xf3,0xc3
|
||||
.align 16
|
||||
.Lot:
|
||||
testq $7,%rdi
|
||||
jz .Laligned
|
||||
movb %al,(%rdi)
|
||||
leaq -1(%rsi),%rsi
|
||||
leaq 1(%rdi),%rdi
|
||||
jmp .Lot
|
||||
.Laligned:
|
||||
movq %rax,(%rdi)
|
||||
leaq -8(%rsi),%rsi
|
||||
testq $-8,%rsi
|
||||
leaq 8(%rdi),%rdi
|
||||
jnz .Laligned
|
||||
cmpq $0,%rsi
|
||||
jne .Little
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_cleanse,.-OPENSSL_cleanse
|
||||
|
||||
.globl CRYPTO_memcmp
|
||||
.type CRYPTO_memcmp,@function
|
||||
.align 16
|
||||
CRYPTO_memcmp:
|
||||
xorq %rax,%rax
|
||||
xorq %r10,%r10
|
||||
cmpq $0,%rdx
|
||||
je .Lno_data
|
||||
cmpq $16,%rdx
|
||||
jne .Loop_cmp
|
||||
movq (%rdi),%r10
|
||||
movq 8(%rdi),%r11
|
||||
movq $1,%rdx
|
||||
xorq (%rsi),%r10
|
||||
xorq 8(%rsi),%r11
|
||||
orq %r11,%r10
|
||||
cmovnzq %rdx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
|
||||
.align 16
|
||||
.Loop_cmp:
|
||||
movb (%rdi),%r10b
|
||||
leaq 1(%rdi),%rdi
|
||||
xorb (%rsi),%r10b
|
||||
leaq 1(%rsi),%rsi
|
||||
orb %r10b,%al
|
||||
decq %rdx
|
||||
jnz .Loop_cmp
|
||||
negq %rax
|
||||
shrq $63,%rax
|
||||
.Lno_data:
|
||||
.byte 0xf3,0xc3
|
||||
.size CRYPTO_memcmp,.-CRYPTO_memcmp
|
||||
.globl OPENSSL_wipe_cpu
|
||||
.type OPENSSL_wipe_cpu,@function
|
||||
.align 16
|
||||
OPENSSL_wipe_cpu:
|
||||
pxor %xmm0,%xmm0
|
||||
pxor %xmm1,%xmm1
|
||||
pxor %xmm2,%xmm2
|
||||
pxor %xmm3,%xmm3
|
||||
pxor %xmm4,%xmm4
|
||||
pxor %xmm5,%xmm5
|
||||
pxor %xmm6,%xmm6
|
||||
pxor %xmm7,%xmm7
|
||||
pxor %xmm8,%xmm8
|
||||
pxor %xmm9,%xmm9
|
||||
pxor %xmm10,%xmm10
|
||||
pxor %xmm11,%xmm11
|
||||
pxor %xmm12,%xmm12
|
||||
pxor %xmm13,%xmm13
|
||||
pxor %xmm14,%xmm14
|
||||
pxor %xmm15,%xmm15
|
||||
xorq %rcx,%rcx
|
||||
xorq %rdx,%rdx
|
||||
xorq %rsi,%rsi
|
||||
xorq %rdi,%rdi
|
||||
xorq %r8,%r8
|
||||
xorq %r9,%r9
|
||||
xorq %r10,%r10
|
||||
xorq %r11,%r11
|
||||
leaq 8(%rsp),%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu
|
||||
.globl OPENSSL_instrument_bus
|
||||
.type OPENSSL_instrument_bus,@function
|
||||
.align 16
|
||||
OPENSSL_instrument_bus:
|
||||
movq %rdi,%r10
|
||||
movq %rsi,%rcx
|
||||
movq %rsi,%r11
|
||||
|
||||
rdtsc
|
||||
movl %eax,%r8d
|
||||
movl $0,%r9d
|
||||
clflush (%r10)
|
||||
.byte 0xf0
|
||||
addl %r9d,(%r10)
|
||||
jmp .Loop
|
||||
.align 16
|
||||
.Loop: rdtsc
|
||||
movl %eax,%edx
|
||||
subl %r8d,%eax
|
||||
movl %edx,%r8d
|
||||
movl %eax,%r9d
|
||||
clflush (%r10)
|
||||
.byte 0xf0
|
||||
addl %eax,(%r10)
|
||||
leaq 4(%r10),%r10
|
||||
subq $1,%rcx
|
||||
jnz .Loop
|
||||
|
||||
movq %r11,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_instrument_bus,.-OPENSSL_instrument_bus
|
||||
|
||||
.globl OPENSSL_instrument_bus2
|
||||
.type OPENSSL_instrument_bus2,@function
|
||||
.align 16
|
||||
OPENSSL_instrument_bus2:
|
||||
movq %rdi,%r10
|
||||
movq %rsi,%rcx
|
||||
movq %rdx,%r11
|
||||
movq %rcx,8(%rsp)
|
||||
|
||||
rdtsc
|
||||
movl %eax,%r8d
|
||||
movl $0,%r9d
|
||||
|
||||
clflush (%r10)
|
||||
.byte 0xf0
|
||||
addl %r9d,(%r10)
|
||||
|
||||
rdtsc
|
||||
movl %eax,%edx
|
||||
subl %r8d,%eax
|
||||
movl %edx,%r8d
|
||||
movl %eax,%r9d
|
||||
.Loop2:
|
||||
clflush (%r10)
|
||||
.byte 0xf0
|
||||
addl %eax,(%r10)
|
||||
|
||||
subq $1,%r11
|
||||
jz .Ldone2
|
||||
|
||||
rdtsc
|
||||
movl %eax,%edx
|
||||
subl %r8d,%eax
|
||||
movl %edx,%r8d
|
||||
cmpl %r9d,%eax
|
||||
movl %eax,%r9d
|
||||
movl $0,%edx
|
||||
setne %dl
|
||||
subq %rdx,%rcx
|
||||
leaq (%r10,%rdx,4),%r10
|
||||
jnz .Loop2
|
||||
|
||||
.Ldone2:
|
||||
movq 8(%rsp),%rax
|
||||
subq %rcx,%rax
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2
|
||||
.globl OPENSSL_ia32_rdrand_bytes
|
||||
.type OPENSSL_ia32_rdrand_bytes,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_rdrand_bytes:
|
||||
xorq %rax,%rax
|
||||
cmpq $0,%rsi
|
||||
je .Ldone_rdrand_bytes
|
||||
|
||||
movq $8,%r11
|
||||
.Loop_rdrand_bytes:
|
||||
.byte 73,15,199,242
|
||||
jc .Lbreak_rdrand_bytes
|
||||
decq %r11
|
||||
jnz .Loop_rdrand_bytes
|
||||
jmp .Ldone_rdrand_bytes
|
||||
|
||||
.align 16
|
||||
.Lbreak_rdrand_bytes:
|
||||
cmpq $8,%rsi
|
||||
jb .Ltail_rdrand_bytes
|
||||
movq %r10,(%rdi)
|
||||
leaq 8(%rdi),%rdi
|
||||
addq $8,%rax
|
||||
subq $8,%rsi
|
||||
jz .Ldone_rdrand_bytes
|
||||
movq $8,%r11
|
||||
jmp .Loop_rdrand_bytes
|
||||
|
||||
.align 16
|
||||
.Ltail_rdrand_bytes:
|
||||
movb %r10b,(%rdi)
|
||||
leaq 1(%rdi),%rdi
|
||||
incq %rax
|
||||
shrq $8,%r10
|
||||
decq %rsi
|
||||
jnz .Ltail_rdrand_bytes
|
||||
|
||||
.Ldone_rdrand_bytes:
|
||||
xorq %r10,%r10
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdrand_bytes,.-OPENSSL_ia32_rdrand_bytes
|
||||
.globl OPENSSL_ia32_rdseed_bytes
|
||||
.type OPENSSL_ia32_rdseed_bytes,@function
|
||||
.align 16
|
||||
OPENSSL_ia32_rdseed_bytes:
|
||||
xorq %rax,%rax
|
||||
cmpq $0,%rsi
|
||||
je .Ldone_rdseed_bytes
|
||||
|
||||
movq $8,%r11
|
||||
.Loop_rdseed_bytes:
|
||||
.byte 73,15,199,250
|
||||
jc .Lbreak_rdseed_bytes
|
||||
decq %r11
|
||||
jnz .Loop_rdseed_bytes
|
||||
jmp .Ldone_rdseed_bytes
|
||||
|
||||
.align 16
|
||||
.Lbreak_rdseed_bytes:
|
||||
cmpq $8,%rsi
|
||||
jb .Ltail_rdseed_bytes
|
||||
movq %r10,(%rdi)
|
||||
leaq 8(%rdi),%rdi
|
||||
addq $8,%rax
|
||||
subq $8,%rsi
|
||||
jz .Ldone_rdseed_bytes
|
||||
movq $8,%r11
|
||||
jmp .Loop_rdseed_bytes
|
||||
|
||||
.align 16
|
||||
.Ltail_rdseed_bytes:
|
||||
movb %r10b,(%rdi)
|
||||
leaq 1(%rdi),%rdi
|
||||
incq %rax
|
||||
shrq $8,%r10
|
||||
decq %rsi
|
||||
jnz .Ltail_rdseed_bytes
|
||||
|
||||
.Ldone_rdseed_bytes:
|
||||
xorq %r10,%r10
|
||||
.byte 0xf3,0xc3
|
||||
.size OPENSSL_ia32_rdseed_bytes,.-OPENSSL_ia32_rdseed_bytes
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,201 @@
|
||||
/*
|
||||
* WARNING: do not edit!
|
||||
* Generated by Makefile from include/openssl/opensslconf.h.in
|
||||
*
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef OPENSSL_ALGORITHM_DEFINES
|
||||
# error OPENSSL_ALGORITHM_DEFINES no longer supported
|
||||
#endif
|
||||
|
||||
/*
|
||||
* OpenSSL was configured with the following options:
|
||||
*/
|
||||
|
||||
#ifndef OPENSSL_NO_COMP
|
||||
# define OPENSSL_NO_COMP
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MD2
|
||||
# define OPENSSL_NO_MD2
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
# define OPENSSL_NO_RC5
|
||||
#endif
|
||||
#ifndef OPENSSL_THREADS
|
||||
# define OPENSSL_THREADS
|
||||
#endif
|
||||
#ifndef OPENSSL_RAND_SEED_OS
|
||||
# define OPENSSL_RAND_SEED_OS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ASAN
|
||||
# define OPENSSL_NO_ASAN
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
|
||||
# define OPENSSL_NO_CRYPTO_MDEBUG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DEVCRYPTOENG
|
||||
# define OPENSSL_NO_DEVCRYPTOENG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
# define OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EGD
|
||||
# define OPENSSL_NO_EGD
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EXTERNAL_TESTS
|
||||
# define OPENSSL_NO_EXTERNAL_TESTS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_FUZZ_AFL
|
||||
# define OPENSSL_NO_FUZZ_AFL
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_FUZZ_LIBFUZZER
|
||||
# define OPENSSL_NO_FUZZ_LIBFUZZER
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_HEARTBEATS
|
||||
# define OPENSSL_NO_HEARTBEATS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MSAN
|
||||
# define OPENSSL_NO_MSAN
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SCTP
|
||||
# define OPENSSL_NO_SCTP
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SSL_TRACE
|
||||
# define OPENSSL_NO_SSL_TRACE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SSL3
|
||||
# define OPENSSL_NO_SSL3
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SSL3_METHOD
|
||||
# define OPENSSL_NO_SSL3_METHOD
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_UBSAN
|
||||
# define OPENSSL_NO_UBSAN
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_UNIT_TEST
|
||||
# define OPENSSL_NO_UNIT_TEST
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
# define OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
|
||||
# define OPENSSL_NO_DYNAMIC_ENGINE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
|
||||
* don't like that. This will hopefully silence them.
|
||||
*/
|
||||
#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
|
||||
|
||||
/*
|
||||
* Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
|
||||
* declarations of functions deprecated in or before <version>. Otherwise, they
|
||||
* still won't see them if the library has been built to disable deprecated
|
||||
* functions.
|
||||
*/
|
||||
#ifndef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef OPENSSL_FILE
|
||||
# ifdef OPENSSL_NO_FILENAMES
|
||||
# define OPENSSL_FILE ""
|
||||
# define OPENSSL_LINE 0
|
||||
# else
|
||||
# define OPENSSL_FILE __FILE__
|
||||
# define OPENSSL_LINE __LINE__
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef OPENSSL_MIN_API
|
||||
# define OPENSSL_MIN_API 0
|
||||
#endif
|
||||
|
||||
#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
|
||||
# undef OPENSSL_API_COMPAT
|
||||
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not deprecate things to be deprecated in version 1.2.0 before the
|
||||
* OpenSSL version number matches.
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) f;
|
||||
#elif OPENSSL_API_COMPAT < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_2_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_1_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10000000L
|
||||
# define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_0_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x00908000L
|
||||
# define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_0_9_8(f)
|
||||
#endif
|
||||
|
||||
/* Generate 80386 code? */
|
||||
#undef I386_ONLY
|
||||
|
||||
#undef OPENSSL_UNISTD
|
||||
#define OPENSSL_UNISTD <unistd.h>
|
||||
|
||||
#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
|
||||
|
||||
/*
|
||||
* The following are cipher-specific, but are part of the public API.
|
||||
*/
|
||||
#if !defined(OPENSSL_SYS_UEFI)
|
||||
# undef BN_LLONG
|
||||
/* Only one for the following should be defined */
|
||||
# define SIXTY_FOUR_BIT_LONG
|
||||
# undef SIXTY_FOUR_BIT
|
||||
# undef THIRTY_TWO_BIT
|
||||
#endif
|
||||
|
||||
#define RC4_INT unsigned int
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,507 @@
|
||||
/*
|
||||
* WARNING: do not edit!
|
||||
* Generated by apps/progs.pl
|
||||
*
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
typedef enum FUNC_TYPE {
|
||||
FT_none, FT_general, FT_md, FT_cipher, FT_pkey,
|
||||
FT_md_alg, FT_cipher_alg
|
||||
} FUNC_TYPE;
|
||||
|
||||
typedef struct function_st {
|
||||
FUNC_TYPE type;
|
||||
const char *name;
|
||||
int (*func)(int argc, char *argv[]);
|
||||
const OPTIONS *help;
|
||||
} FUNCTION;
|
||||
|
||||
DEFINE_LHASH_OF(FUNCTION);
|
||||
|
||||
extern int asn1parse_main(int argc, char *argv[]);
|
||||
extern int ca_main(int argc, char *argv[]);
|
||||
extern int ciphers_main(int argc, char *argv[]);
|
||||
extern int cms_main(int argc, char *argv[]);
|
||||
extern int crl_main(int argc, char *argv[]);
|
||||
extern int crl2pkcs7_main(int argc, char *argv[]);
|
||||
extern int dgst_main(int argc, char *argv[]);
|
||||
extern int dhparam_main(int argc, char *argv[]);
|
||||
extern int dsa_main(int argc, char *argv[]);
|
||||
extern int dsaparam_main(int argc, char *argv[]);
|
||||
extern int ec_main(int argc, char *argv[]);
|
||||
extern int ecparam_main(int argc, char *argv[]);
|
||||
extern int enc_main(int argc, char *argv[]);
|
||||
extern int engine_main(int argc, char *argv[]);
|
||||
extern int errstr_main(int argc, char *argv[]);
|
||||
extern int gendsa_main(int argc, char *argv[]);
|
||||
extern int genpkey_main(int argc, char *argv[]);
|
||||
extern int genrsa_main(int argc, char *argv[]);
|
||||
extern int help_main(int argc, char *argv[]);
|
||||
extern int list_main(int argc, char *argv[]);
|
||||
extern int nseq_main(int argc, char *argv[]);
|
||||
extern int ocsp_main(int argc, char *argv[]);
|
||||
extern int passwd_main(int argc, char *argv[]);
|
||||
extern int pkcs12_main(int argc, char *argv[]);
|
||||
extern int pkcs7_main(int argc, char *argv[]);
|
||||
extern int pkcs8_main(int argc, char *argv[]);
|
||||
extern int pkey_main(int argc, char *argv[]);
|
||||
extern int pkeyparam_main(int argc, char *argv[]);
|
||||
extern int pkeyutl_main(int argc, char *argv[]);
|
||||
extern int prime_main(int argc, char *argv[]);
|
||||
extern int rand_main(int argc, char *argv[]);
|
||||
extern int rehash_main(int argc, char *argv[]);
|
||||
extern int req_main(int argc, char *argv[]);
|
||||
extern int rsa_main(int argc, char *argv[]);
|
||||
extern int rsautl_main(int argc, char *argv[]);
|
||||
extern int s_client_main(int argc, char *argv[]);
|
||||
extern int s_server_main(int argc, char *argv[]);
|
||||
extern int s_time_main(int argc, char *argv[]);
|
||||
extern int sess_id_main(int argc, char *argv[]);
|
||||
extern int smime_main(int argc, char *argv[]);
|
||||
extern int speed_main(int argc, char *argv[]);
|
||||
extern int spkac_main(int argc, char *argv[]);
|
||||
extern int srp_main(int argc, char *argv[]);
|
||||
extern int storeutl_main(int argc, char *argv[]);
|
||||
extern int ts_main(int argc, char *argv[]);
|
||||
extern int verify_main(int argc, char *argv[]);
|
||||
extern int version_main(int argc, char *argv[]);
|
||||
extern int x509_main(int argc, char *argv[]);
|
||||
|
||||
extern const OPTIONS asn1parse_options[];
|
||||
extern const OPTIONS ca_options[];
|
||||
extern const OPTIONS ciphers_options[];
|
||||
extern const OPTIONS cms_options[];
|
||||
extern const OPTIONS crl_options[];
|
||||
extern const OPTIONS crl2pkcs7_options[];
|
||||
extern const OPTIONS dgst_options[];
|
||||
extern const OPTIONS dhparam_options[];
|
||||
extern const OPTIONS dsa_options[];
|
||||
extern const OPTIONS dsaparam_options[];
|
||||
extern const OPTIONS ec_options[];
|
||||
extern const OPTIONS ecparam_options[];
|
||||
extern const OPTIONS enc_options[];
|
||||
extern const OPTIONS engine_options[];
|
||||
extern const OPTIONS errstr_options[];
|
||||
extern const OPTIONS gendsa_options[];
|
||||
extern const OPTIONS genpkey_options[];
|
||||
extern const OPTIONS genrsa_options[];
|
||||
extern const OPTIONS help_options[];
|
||||
extern const OPTIONS list_options[];
|
||||
extern const OPTIONS nseq_options[];
|
||||
extern const OPTIONS ocsp_options[];
|
||||
extern const OPTIONS passwd_options[];
|
||||
extern const OPTIONS pkcs12_options[];
|
||||
extern const OPTIONS pkcs7_options[];
|
||||
extern const OPTIONS pkcs8_options[];
|
||||
extern const OPTIONS pkey_options[];
|
||||
extern const OPTIONS pkeyparam_options[];
|
||||
extern const OPTIONS pkeyutl_options[];
|
||||
extern const OPTIONS prime_options[];
|
||||
extern const OPTIONS rand_options[];
|
||||
extern const OPTIONS rehash_options[];
|
||||
extern const OPTIONS req_options[];
|
||||
extern const OPTIONS rsa_options[];
|
||||
extern const OPTIONS rsautl_options[];
|
||||
extern const OPTIONS s_client_options[];
|
||||
extern const OPTIONS s_server_options[];
|
||||
extern const OPTIONS s_time_options[];
|
||||
extern const OPTIONS sess_id_options[];
|
||||
extern const OPTIONS smime_options[];
|
||||
extern const OPTIONS speed_options[];
|
||||
extern const OPTIONS spkac_options[];
|
||||
extern const OPTIONS srp_options[];
|
||||
extern const OPTIONS storeutl_options[];
|
||||
extern const OPTIONS ts_options[];
|
||||
extern const OPTIONS verify_options[];
|
||||
extern const OPTIONS version_options[];
|
||||
extern const OPTIONS x509_options[];
|
||||
|
||||
#ifdef INCLUDE_FUNCTION_TABLE
|
||||
static FUNCTION functions[] = {
|
||||
{FT_general, "asn1parse", asn1parse_main, asn1parse_options},
|
||||
{FT_general, "ca", ca_main, ca_options},
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{FT_general, "ciphers", ciphers_main, ciphers_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CMS
|
||||
{FT_general, "cms", cms_main, cms_options},
|
||||
#endif
|
||||
{FT_general, "crl", crl_main, crl_options},
|
||||
{FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options},
|
||||
{FT_general, "dgst", dgst_main, dgst_options},
|
||||
#ifndef OPENSSL_NO_DH
|
||||
{FT_general, "dhparam", dhparam_main, dhparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{FT_general, "dsa", dsa_main, dsa_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{FT_general, "dsaparam", dsaparam_main, dsaparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{FT_general, "ec", ec_main, ec_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{FT_general, "ecparam", ecparam_main, ecparam_options},
|
||||
#endif
|
||||
{FT_general, "enc", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ENGINE
|
||||
{FT_general, "engine", engine_main, engine_options},
|
||||
#endif
|
||||
{FT_general, "errstr", errstr_main, errstr_options},
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{FT_general, "gendsa", gendsa_main, gendsa_options},
|
||||
#endif
|
||||
{FT_general, "genpkey", genpkey_main, genpkey_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{FT_general, "genrsa", genrsa_main, genrsa_options},
|
||||
#endif
|
||||
{FT_general, "help", help_main, help_options},
|
||||
{FT_general, "list", list_main, list_options},
|
||||
{FT_general, "nseq", nseq_main, nseq_options},
|
||||
#ifndef OPENSSL_NO_OCSP
|
||||
{FT_general, "ocsp", ocsp_main, ocsp_options},
|
||||
#endif
|
||||
{FT_general, "passwd", passwd_main, passwd_options},
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_general, "pkcs12", pkcs12_main, pkcs12_options},
|
||||
#endif
|
||||
{FT_general, "pkcs7", pkcs7_main, pkcs7_options},
|
||||
{FT_general, "pkcs8", pkcs8_main, pkcs8_options},
|
||||
{FT_general, "pkey", pkey_main, pkey_options},
|
||||
{FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options},
|
||||
{FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options},
|
||||
{FT_general, "prime", prime_main, prime_options},
|
||||
{FT_general, "rand", rand_main, rand_options},
|
||||
{FT_general, "rehash", rehash_main, rehash_options},
|
||||
{FT_general, "req", req_main, req_options},
|
||||
{FT_general, "rsa", rsa_main, rsa_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{FT_general, "rsautl", rsautl_main, rsautl_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{FT_general, "s_client", s_client_main, s_client_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{FT_general, "s_server", s_server_main, s_server_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{FT_general, "s_time", s_time_main, s_time_options},
|
||||
#endif
|
||||
{FT_general, "sess_id", sess_id_main, sess_id_options},
|
||||
{FT_general, "smime", smime_main, smime_options},
|
||||
{FT_general, "speed", speed_main, speed_options},
|
||||
{FT_general, "spkac", spkac_main, spkac_options},
|
||||
#ifndef OPENSSL_NO_SRP
|
||||
{FT_general, "srp", srp_main, srp_options},
|
||||
#endif
|
||||
{FT_general, "storeutl", storeutl_main, storeutl_options},
|
||||
#ifndef OPENSSL_NO_TS
|
||||
{FT_general, "ts", ts_main, ts_options},
|
||||
#endif
|
||||
{FT_general, "verify", verify_main, verify_options},
|
||||
{FT_general, "version", version_main, version_options},
|
||||
{FT_general, "x509", x509_main, x509_options},
|
||||
#ifndef OPENSSL_NO_MD2
|
||||
{FT_md, "md2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MD4
|
||||
{FT_md, "md4", dgst_main},
|
||||
#endif
|
||||
{FT_md, "md5", dgst_main},
|
||||
#ifndef OPENSSL_NO_GOST
|
||||
{FT_md, "gost", dgst_main},
|
||||
#endif
|
||||
{FT_md, "sha1", dgst_main},
|
||||
{FT_md, "sha224", dgst_main},
|
||||
{FT_md, "sha256", dgst_main},
|
||||
{FT_md, "sha384", dgst_main},
|
||||
{FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha512-224", dgst_main},
|
||||
{FT_md, "sha512-256", dgst_main},
|
||||
{FT_md, "sha3-224", dgst_main},
|
||||
{FT_md, "sha3-256", dgst_main},
|
||||
{FT_md, "sha3-384", dgst_main},
|
||||
{FT_md, "sha3-512", dgst_main},
|
||||
{FT_md, "shake128", dgst_main},
|
||||
{FT_md, "shake256", dgst_main},
|
||||
#ifndef OPENSSL_NO_MDC2
|
||||
{FT_md, "mdc2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RMD160
|
||||
{FT_md, "rmd160", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{FT_md, "blake2b512", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{FT_md, "blake2s256", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM3
|
||||
{FT_md, "sm3", dgst_main},
|
||||
#endif
|
||||
{FT_cipher, "aes-128-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-128-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-ecb", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
{FT_cipher, "base64", enc_main, enc_options},
|
||||
#ifdef ZLIB
|
||||
{FT_cipher, "zlib", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "desx", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{FT_cipher, "idea", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{FT_cipher, "seed", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{FT_cipher, "rc4", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{FT_cipher, "rc4-40", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{FT_cipher, "bf", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{FT_cipher, "rc5", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede3-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede3-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{FT_cipher, "des-ede3-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{FT_cipher, "idea-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{FT_cipher, "idea-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{FT_cipher, "idea-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{FT_cipher, "idea-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{FT_cipher, "seed-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{FT_cipher, "seed-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{FT_cipher, "seed-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{FT_cipher, "seed-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-64-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{FT_cipher, "rc2-40-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{FT_cipher, "bf-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{FT_cipher, "bf-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{FT_cipher, "bf-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{FT_cipher, "bf-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{FT_cipher, "cast-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{FT_cipher, "rc5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{FT_cipher, "rc5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{FT_cipher, "rc5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{FT_cipher, "rc5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
#endif
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
'variables': {
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'NDEBUG',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
'OPENSSL_BN_ASM_MONT5',
|
||||
'OPENSSL_BN_ASM_GF2m',
|
||||
'SHA1_ASM',
|
||||
'SHA256_ASM',
|
||||
'SHA512_ASM',
|
||||
'KECCAK1600_ASM',
|
||||
'RC4_ASM',
|
||||
'MD5_ASM',
|
||||
'AES_ASM',
|
||||
'VPAES_ASM',
|
||||
'BSAES_ASM',
|
||||
'GHASH_ASM',
|
||||
'ECP_NISTZ256_ASM',
|
||||
'X25519_ASM',
|
||||
'PADLOCK_ASM',
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-Wa,--noexecstack',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'-pthread',
|
||||
],
|
||||
'openssl_cli_srcs_BSD-x86_64': [
|
||||
'openssl/apps/asn1pars.c',
|
||||
'openssl/apps/ca.c',
|
||||
'openssl/apps/ciphers.c',
|
||||
'openssl/apps/cms.c',
|
||||
'openssl/apps/crl.c',
|
||||
'openssl/apps/crl2p7.c',
|
||||
'openssl/apps/dgst.c',
|
||||
'openssl/apps/dhparam.c',
|
||||
'openssl/apps/dsa.c',
|
||||
'openssl/apps/dsaparam.c',
|
||||
'openssl/apps/ec.c',
|
||||
'openssl/apps/ecparam.c',
|
||||
'openssl/apps/enc.c',
|
||||
'openssl/apps/engine.c',
|
||||
'openssl/apps/errstr.c',
|
||||
'openssl/apps/gendsa.c',
|
||||
'openssl/apps/genpkey.c',
|
||||
'openssl/apps/genrsa.c',
|
||||
'openssl/apps/nseq.c',
|
||||
'openssl/apps/ocsp.c',
|
||||
'openssl/apps/openssl.c',
|
||||
'openssl/apps/passwd.c',
|
||||
'openssl/apps/pkcs12.c',
|
||||
'openssl/apps/pkcs7.c',
|
||||
'openssl/apps/pkcs8.c',
|
||||
'openssl/apps/pkey.c',
|
||||
'openssl/apps/pkeyparam.c',
|
||||
'openssl/apps/pkeyutl.c',
|
||||
'openssl/apps/prime.c',
|
||||
'openssl/apps/rand.c',
|
||||
'openssl/apps/rehash.c',
|
||||
'openssl/apps/req.c',
|
||||
'openssl/apps/rsa.c',
|
||||
'openssl/apps/rsautl.c',
|
||||
'openssl/apps/s_client.c',
|
||||
'openssl/apps/s_server.c',
|
||||
'openssl/apps/s_time.c',
|
||||
'openssl/apps/sess_id.c',
|
||||
'openssl/apps/smime.c',
|
||||
'openssl/apps/speed.c',
|
||||
'openssl/apps/spkac.c',
|
||||
'openssl/apps/srp.c',
|
||||
'openssl/apps/storeutl.c',
|
||||
'openssl/apps/ts.c',
|
||||
'openssl/apps/verify.c',
|
||||
'openssl/apps/version.c',
|
||||
'openssl/apps/x509.c',
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/bf_prefix.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
],
|
||||
},
|
||||
'defines': ['<@(openssl_defines_BSD-x86_64)'],
|
||||
'include_dirs': [
|
||||
'./include',
|
||||
],
|
||||
'cflags' : ['<@(openssl_cflags_BSD-x86_64)'],
|
||||
'libraries': ['<@(openssl_ex_libs_BSD-x86_64)'],
|
||||
'sources': ['<@(openssl_cli_srcs_BSD-x86_64)'],
|
||||
}
|
||||
@@ -0,0 +1,754 @@
|
||||
{
|
||||
'variables': {
|
||||
'openssl_sources': [
|
||||
'openssl/ssl/bio_ssl.c',
|
||||
'openssl/ssl/d1_lib.c',
|
||||
'openssl/ssl/d1_msg.c',
|
||||
'openssl/ssl/d1_srtp.c',
|
||||
'openssl/ssl/methods.c',
|
||||
'openssl/ssl/packet.c',
|
||||
'openssl/ssl/pqueue.c',
|
||||
'openssl/ssl/record/dtls1_bitmap.c',
|
||||
'openssl/ssl/record/rec_layer_d1.c',
|
||||
'openssl/ssl/record/rec_layer_s3.c',
|
||||
'openssl/ssl/record/ssl3_buffer.c',
|
||||
'openssl/ssl/record/ssl3_record.c',
|
||||
'openssl/ssl/record/ssl3_record_tls13.c',
|
||||
'openssl/ssl/s3_cbc.c',
|
||||
'openssl/ssl/s3_enc.c',
|
||||
'openssl/ssl/s3_lib.c',
|
||||
'openssl/ssl/s3_msg.c',
|
||||
'openssl/ssl/ssl_asn1.c',
|
||||
'openssl/ssl/ssl_cert.c',
|
||||
'openssl/ssl/ssl_ciph.c',
|
||||
'openssl/ssl/ssl_conf.c',
|
||||
'openssl/ssl/ssl_err.c',
|
||||
'openssl/ssl/ssl_init.c',
|
||||
'openssl/ssl/ssl_lib.c',
|
||||
'openssl/ssl/ssl_mcnf.c',
|
||||
'openssl/ssl/ssl_rsa.c',
|
||||
'openssl/ssl/ssl_sess.c',
|
||||
'openssl/ssl/ssl_stat.c',
|
||||
'openssl/ssl/ssl_txt.c',
|
||||
'openssl/ssl/ssl_utst.c',
|
||||
'openssl/ssl/statem/extensions.c',
|
||||
'openssl/ssl/statem/extensions_clnt.c',
|
||||
'openssl/ssl/statem/extensions_cust.c',
|
||||
'openssl/ssl/statem/extensions_srvr.c',
|
||||
'openssl/ssl/statem/statem.c',
|
||||
'openssl/ssl/statem/statem_clnt.c',
|
||||
'openssl/ssl/statem/statem_dtls.c',
|
||||
'openssl/ssl/statem/statem_lib.c',
|
||||
'openssl/ssl/statem/statem_srvr.c',
|
||||
'openssl/ssl/t1_enc.c',
|
||||
'openssl/ssl/t1_lib.c',
|
||||
'openssl/ssl/t1_trce.c',
|
||||
'openssl/ssl/tls13_enc.c',
|
||||
'openssl/ssl/tls_srp.c',
|
||||
'openssl/crypto/aes/aes_cfb.c',
|
||||
'openssl/crypto/aes/aes_ecb.c',
|
||||
'openssl/crypto/aes/aes_ige.c',
|
||||
'openssl/crypto/aes/aes_misc.c',
|
||||
'openssl/crypto/aes/aes_ofb.c',
|
||||
'openssl/crypto/aes/aes_wrap.c',
|
||||
'openssl/crypto/aria/aria.c',
|
||||
'openssl/crypto/asn1/a_bitstr.c',
|
||||
'openssl/crypto/asn1/a_d2i_fp.c',
|
||||
'openssl/crypto/asn1/a_digest.c',
|
||||
'openssl/crypto/asn1/a_dup.c',
|
||||
'openssl/crypto/asn1/a_gentm.c',
|
||||
'openssl/crypto/asn1/a_i2d_fp.c',
|
||||
'openssl/crypto/asn1/a_int.c',
|
||||
'openssl/crypto/asn1/a_mbstr.c',
|
||||
'openssl/crypto/asn1/a_object.c',
|
||||
'openssl/crypto/asn1/a_octet.c',
|
||||
'openssl/crypto/asn1/a_print.c',
|
||||
'openssl/crypto/asn1/a_sign.c',
|
||||
'openssl/crypto/asn1/a_strex.c',
|
||||
'openssl/crypto/asn1/a_strnid.c',
|
||||
'openssl/crypto/asn1/a_time.c',
|
||||
'openssl/crypto/asn1/a_type.c',
|
||||
'openssl/crypto/asn1/a_utctm.c',
|
||||
'openssl/crypto/asn1/a_utf8.c',
|
||||
'openssl/crypto/asn1/a_verify.c',
|
||||
'openssl/crypto/asn1/ameth_lib.c',
|
||||
'openssl/crypto/asn1/asn1_err.c',
|
||||
'openssl/crypto/asn1/asn1_gen.c',
|
||||
'openssl/crypto/asn1/asn1_item_list.c',
|
||||
'openssl/crypto/asn1/asn1_lib.c',
|
||||
'openssl/crypto/asn1/asn1_par.c',
|
||||
'openssl/crypto/asn1/asn_mime.c',
|
||||
'openssl/crypto/asn1/asn_moid.c',
|
||||
'openssl/crypto/asn1/asn_mstbl.c',
|
||||
'openssl/crypto/asn1/asn_pack.c',
|
||||
'openssl/crypto/asn1/bio_asn1.c',
|
||||
'openssl/crypto/asn1/bio_ndef.c',
|
||||
'openssl/crypto/asn1/d2i_pr.c',
|
||||
'openssl/crypto/asn1/d2i_pu.c',
|
||||
'openssl/crypto/asn1/evp_asn1.c',
|
||||
'openssl/crypto/asn1/f_int.c',
|
||||
'openssl/crypto/asn1/f_string.c',
|
||||
'openssl/crypto/asn1/i2d_pr.c',
|
||||
'openssl/crypto/asn1/i2d_pu.c',
|
||||
'openssl/crypto/asn1/n_pkey.c',
|
||||
'openssl/crypto/asn1/nsseq.c',
|
||||
'openssl/crypto/asn1/p5_pbe.c',
|
||||
'openssl/crypto/asn1/p5_pbev2.c',
|
||||
'openssl/crypto/asn1/p5_scrypt.c',
|
||||
'openssl/crypto/asn1/p8_pkey.c',
|
||||
'openssl/crypto/asn1/t_bitst.c',
|
||||
'openssl/crypto/asn1/t_pkey.c',
|
||||
'openssl/crypto/asn1/t_spki.c',
|
||||
'openssl/crypto/asn1/tasn_dec.c',
|
||||
'openssl/crypto/asn1/tasn_enc.c',
|
||||
'openssl/crypto/asn1/tasn_fre.c',
|
||||
'openssl/crypto/asn1/tasn_new.c',
|
||||
'openssl/crypto/asn1/tasn_prn.c',
|
||||
'openssl/crypto/asn1/tasn_scn.c',
|
||||
'openssl/crypto/asn1/tasn_typ.c',
|
||||
'openssl/crypto/asn1/tasn_utl.c',
|
||||
'openssl/crypto/asn1/x_algor.c',
|
||||
'openssl/crypto/asn1/x_bignum.c',
|
||||
'openssl/crypto/asn1/x_info.c',
|
||||
'openssl/crypto/asn1/x_int64.c',
|
||||
'openssl/crypto/asn1/x_long.c',
|
||||
'openssl/crypto/asn1/x_pkey.c',
|
||||
'openssl/crypto/asn1/x_sig.c',
|
||||
'openssl/crypto/asn1/x_spki.c',
|
||||
'openssl/crypto/asn1/x_val.c',
|
||||
'openssl/crypto/async/arch/async_null.c',
|
||||
'openssl/crypto/async/arch/async_posix.c',
|
||||
'openssl/crypto/async/arch/async_win.c',
|
||||
'openssl/crypto/async/async.c',
|
||||
'openssl/crypto/async/async_err.c',
|
||||
'openssl/crypto/async/async_wait.c',
|
||||
'openssl/crypto/bf/bf_cfb64.c',
|
||||
'openssl/crypto/bf/bf_ecb.c',
|
||||
'openssl/crypto/bf/bf_enc.c',
|
||||
'openssl/crypto/bf/bf_ofb64.c',
|
||||
'openssl/crypto/bf/bf_skey.c',
|
||||
'openssl/crypto/bio/b_addr.c',
|
||||
'openssl/crypto/bio/b_dump.c',
|
||||
'openssl/crypto/bio/b_print.c',
|
||||
'openssl/crypto/bio/b_sock.c',
|
||||
'openssl/crypto/bio/b_sock2.c',
|
||||
'openssl/crypto/bio/bf_buff.c',
|
||||
'openssl/crypto/bio/bf_lbuf.c',
|
||||
'openssl/crypto/bio/bf_nbio.c',
|
||||
'openssl/crypto/bio/bf_null.c',
|
||||
'openssl/crypto/bio/bio_cb.c',
|
||||
'openssl/crypto/bio/bio_err.c',
|
||||
'openssl/crypto/bio/bio_lib.c',
|
||||
'openssl/crypto/bio/bio_meth.c',
|
||||
'openssl/crypto/bio/bss_acpt.c',
|
||||
'openssl/crypto/bio/bss_bio.c',
|
||||
'openssl/crypto/bio/bss_conn.c',
|
||||
'openssl/crypto/bio/bss_dgram.c',
|
||||
'openssl/crypto/bio/bss_fd.c',
|
||||
'openssl/crypto/bio/bss_file.c',
|
||||
'openssl/crypto/bio/bss_log.c',
|
||||
'openssl/crypto/bio/bss_mem.c',
|
||||
'openssl/crypto/bio/bss_null.c',
|
||||
'openssl/crypto/bio/bss_sock.c',
|
||||
'openssl/crypto/blake2/blake2b.c',
|
||||
'openssl/crypto/blake2/blake2s.c',
|
||||
'openssl/crypto/blake2/m_blake2b.c',
|
||||
'openssl/crypto/blake2/m_blake2s.c',
|
||||
'openssl/crypto/bn/asm/x86_64-gcc.c',
|
||||
'openssl/crypto/bn/bn_add.c',
|
||||
'openssl/crypto/bn/bn_blind.c',
|
||||
'openssl/crypto/bn/bn_const.c',
|
||||
'openssl/crypto/bn/bn_ctx.c',
|
||||
'openssl/crypto/bn/bn_depr.c',
|
||||
'openssl/crypto/bn/bn_dh.c',
|
||||
'openssl/crypto/bn/bn_div.c',
|
||||
'openssl/crypto/bn/bn_err.c',
|
||||
'openssl/crypto/bn/bn_exp.c',
|
||||
'openssl/crypto/bn/bn_exp2.c',
|
||||
'openssl/crypto/bn/bn_gcd.c',
|
||||
'openssl/crypto/bn/bn_gf2m.c',
|
||||
'openssl/crypto/bn/bn_intern.c',
|
||||
'openssl/crypto/bn/bn_kron.c',
|
||||
'openssl/crypto/bn/bn_lib.c',
|
||||
'openssl/crypto/bn/bn_mod.c',
|
||||
'openssl/crypto/bn/bn_mont.c',
|
||||
'openssl/crypto/bn/bn_mpi.c',
|
||||
'openssl/crypto/bn/bn_mul.c',
|
||||
'openssl/crypto/bn/bn_nist.c',
|
||||
'openssl/crypto/bn/bn_prime.c',
|
||||
'openssl/crypto/bn/bn_print.c',
|
||||
'openssl/crypto/bn/bn_rand.c',
|
||||
'openssl/crypto/bn/bn_recp.c',
|
||||
'openssl/crypto/bn/bn_shift.c',
|
||||
'openssl/crypto/bn/bn_sqr.c',
|
||||
'openssl/crypto/bn/bn_sqrt.c',
|
||||
'openssl/crypto/bn/bn_srp.c',
|
||||
'openssl/crypto/bn/bn_word.c',
|
||||
'openssl/crypto/bn/bn_x931p.c',
|
||||
'openssl/crypto/bn/rsaz_exp.c',
|
||||
'openssl/crypto/buffer/buf_err.c',
|
||||
'openssl/crypto/buffer/buffer.c',
|
||||
'openssl/crypto/camellia/cmll_cfb.c',
|
||||
'openssl/crypto/camellia/cmll_ctr.c',
|
||||
'openssl/crypto/camellia/cmll_ecb.c',
|
||||
'openssl/crypto/camellia/cmll_misc.c',
|
||||
'openssl/crypto/camellia/cmll_ofb.c',
|
||||
'openssl/crypto/cast/c_cfb64.c',
|
||||
'openssl/crypto/cast/c_ecb.c',
|
||||
'openssl/crypto/cast/c_enc.c',
|
||||
'openssl/crypto/cast/c_ofb64.c',
|
||||
'openssl/crypto/cast/c_skey.c',
|
||||
'openssl/crypto/cmac/cm_ameth.c',
|
||||
'openssl/crypto/cmac/cm_pmeth.c',
|
||||
'openssl/crypto/cmac/cmac.c',
|
||||
'openssl/crypto/cms/cms_asn1.c',
|
||||
'openssl/crypto/cms/cms_att.c',
|
||||
'openssl/crypto/cms/cms_cd.c',
|
||||
'openssl/crypto/cms/cms_dd.c',
|
||||
'openssl/crypto/cms/cms_enc.c',
|
||||
'openssl/crypto/cms/cms_env.c',
|
||||
'openssl/crypto/cms/cms_err.c',
|
||||
'openssl/crypto/cms/cms_ess.c',
|
||||
'openssl/crypto/cms/cms_io.c',
|
||||
'openssl/crypto/cms/cms_kari.c',
|
||||
'openssl/crypto/cms/cms_lib.c',
|
||||
'openssl/crypto/cms/cms_pwri.c',
|
||||
'openssl/crypto/cms/cms_sd.c',
|
||||
'openssl/crypto/cms/cms_smime.c',
|
||||
'openssl/crypto/conf/conf_api.c',
|
||||
'openssl/crypto/conf/conf_def.c',
|
||||
'openssl/crypto/conf/conf_err.c',
|
||||
'openssl/crypto/conf/conf_lib.c',
|
||||
'openssl/crypto/conf/conf_mall.c',
|
||||
'openssl/crypto/conf/conf_mod.c',
|
||||
'openssl/crypto/conf/conf_sap.c',
|
||||
'openssl/crypto/conf/conf_ssl.c',
|
||||
'openssl/crypto/cpt_err.c',
|
||||
'openssl/crypto/cryptlib.c',
|
||||
'openssl/crypto/ct/ct_b64.c',
|
||||
'openssl/crypto/ct/ct_err.c',
|
||||
'openssl/crypto/ct/ct_log.c',
|
||||
'openssl/crypto/ct/ct_oct.c',
|
||||
'openssl/crypto/ct/ct_policy.c',
|
||||
'openssl/crypto/ct/ct_prn.c',
|
||||
'openssl/crypto/ct/ct_sct.c',
|
||||
'openssl/crypto/ct/ct_sct_ctx.c',
|
||||
'openssl/crypto/ct/ct_vfy.c',
|
||||
'openssl/crypto/ct/ct_x509v3.c',
|
||||
'openssl/crypto/ctype.c',
|
||||
'openssl/crypto/cversion.c',
|
||||
'openssl/crypto/des/cbc_cksm.c',
|
||||
'openssl/crypto/des/cbc_enc.c',
|
||||
'openssl/crypto/des/cfb64ede.c',
|
||||
'openssl/crypto/des/cfb64enc.c',
|
||||
'openssl/crypto/des/cfb_enc.c',
|
||||
'openssl/crypto/des/des_enc.c',
|
||||
'openssl/crypto/des/ecb3_enc.c',
|
||||
'openssl/crypto/des/ecb_enc.c',
|
||||
'openssl/crypto/des/fcrypt.c',
|
||||
'openssl/crypto/des/fcrypt_b.c',
|
||||
'openssl/crypto/des/ofb64ede.c',
|
||||
'openssl/crypto/des/ofb64enc.c',
|
||||
'openssl/crypto/des/ofb_enc.c',
|
||||
'openssl/crypto/des/pcbc_enc.c',
|
||||
'openssl/crypto/des/qud_cksm.c',
|
||||
'openssl/crypto/des/rand_key.c',
|
||||
'openssl/crypto/des/set_key.c',
|
||||
'openssl/crypto/des/str2key.c',
|
||||
'openssl/crypto/des/xcbc_enc.c',
|
||||
'openssl/crypto/dh/dh_ameth.c',
|
||||
'openssl/crypto/dh/dh_asn1.c',
|
||||
'openssl/crypto/dh/dh_check.c',
|
||||
'openssl/crypto/dh/dh_depr.c',
|
||||
'openssl/crypto/dh/dh_err.c',
|
||||
'openssl/crypto/dh/dh_gen.c',
|
||||
'openssl/crypto/dh/dh_kdf.c',
|
||||
'openssl/crypto/dh/dh_key.c',
|
||||
'openssl/crypto/dh/dh_lib.c',
|
||||
'openssl/crypto/dh/dh_meth.c',
|
||||
'openssl/crypto/dh/dh_pmeth.c',
|
||||
'openssl/crypto/dh/dh_prn.c',
|
||||
'openssl/crypto/dh/dh_rfc5114.c',
|
||||
'openssl/crypto/dh/dh_rfc7919.c',
|
||||
'openssl/crypto/dsa/dsa_ameth.c',
|
||||
'openssl/crypto/dsa/dsa_asn1.c',
|
||||
'openssl/crypto/dsa/dsa_depr.c',
|
||||
'openssl/crypto/dsa/dsa_err.c',
|
||||
'openssl/crypto/dsa/dsa_gen.c',
|
||||
'openssl/crypto/dsa/dsa_key.c',
|
||||
'openssl/crypto/dsa/dsa_lib.c',
|
||||
'openssl/crypto/dsa/dsa_meth.c',
|
||||
'openssl/crypto/dsa/dsa_ossl.c',
|
||||
'openssl/crypto/dsa/dsa_pmeth.c',
|
||||
'openssl/crypto/dsa/dsa_prn.c',
|
||||
'openssl/crypto/dsa/dsa_sign.c',
|
||||
'openssl/crypto/dsa/dsa_vrf.c',
|
||||
'openssl/crypto/dso/dso_dl.c',
|
||||
'openssl/crypto/dso/dso_dlfcn.c',
|
||||
'openssl/crypto/dso/dso_err.c',
|
||||
'openssl/crypto/dso/dso_lib.c',
|
||||
'openssl/crypto/dso/dso_openssl.c',
|
||||
'openssl/crypto/dso/dso_vms.c',
|
||||
'openssl/crypto/dso/dso_win32.c',
|
||||
'openssl/crypto/ebcdic.c',
|
||||
'openssl/crypto/ec/curve25519.c',
|
||||
'openssl/crypto/ec/curve448/arch_32/f_impl.c',
|
||||
'openssl/crypto/ec/curve448/curve448.c',
|
||||
'openssl/crypto/ec/curve448/curve448_tables.c',
|
||||
'openssl/crypto/ec/curve448/eddsa.c',
|
||||
'openssl/crypto/ec/curve448/f_generic.c',
|
||||
'openssl/crypto/ec/curve448/scalar.c',
|
||||
'openssl/crypto/ec/ec2_oct.c',
|
||||
'openssl/crypto/ec/ec2_smpl.c',
|
||||
'openssl/crypto/ec/ec_ameth.c',
|
||||
'openssl/crypto/ec/ec_asn1.c',
|
||||
'openssl/crypto/ec/ec_check.c',
|
||||
'openssl/crypto/ec/ec_curve.c',
|
||||
'openssl/crypto/ec/ec_cvt.c',
|
||||
'openssl/crypto/ec/ec_err.c',
|
||||
'openssl/crypto/ec/ec_key.c',
|
||||
'openssl/crypto/ec/ec_kmeth.c',
|
||||
'openssl/crypto/ec/ec_lib.c',
|
||||
'openssl/crypto/ec/ec_mult.c',
|
||||
'openssl/crypto/ec/ec_oct.c',
|
||||
'openssl/crypto/ec/ec_pmeth.c',
|
||||
'openssl/crypto/ec/ec_print.c',
|
||||
'openssl/crypto/ec/ecdh_kdf.c',
|
||||
'openssl/crypto/ec/ecdh_ossl.c',
|
||||
'openssl/crypto/ec/ecdsa_ossl.c',
|
||||
'openssl/crypto/ec/ecdsa_sign.c',
|
||||
'openssl/crypto/ec/ecdsa_vrf.c',
|
||||
'openssl/crypto/ec/eck_prn.c',
|
||||
'openssl/crypto/ec/ecp_mont.c',
|
||||
'openssl/crypto/ec/ecp_nist.c',
|
||||
'openssl/crypto/ec/ecp_nistp224.c',
|
||||
'openssl/crypto/ec/ecp_nistp256.c',
|
||||
'openssl/crypto/ec/ecp_nistp521.c',
|
||||
'openssl/crypto/ec/ecp_nistputil.c',
|
||||
'openssl/crypto/ec/ecp_nistz256.c',
|
||||
'openssl/crypto/ec/ecp_oct.c',
|
||||
'openssl/crypto/ec/ecp_smpl.c',
|
||||
'openssl/crypto/ec/ecx_meth.c',
|
||||
'openssl/crypto/engine/eng_all.c',
|
||||
'openssl/crypto/engine/eng_cnf.c',
|
||||
'openssl/crypto/engine/eng_ctrl.c',
|
||||
'openssl/crypto/engine/eng_dyn.c',
|
||||
'openssl/crypto/engine/eng_err.c',
|
||||
'openssl/crypto/engine/eng_fat.c',
|
||||
'openssl/crypto/engine/eng_init.c',
|
||||
'openssl/crypto/engine/eng_lib.c',
|
||||
'openssl/crypto/engine/eng_list.c',
|
||||
'openssl/crypto/engine/eng_openssl.c',
|
||||
'openssl/crypto/engine/eng_pkey.c',
|
||||
'openssl/crypto/engine/eng_rdrand.c',
|
||||
'openssl/crypto/engine/eng_table.c',
|
||||
'openssl/crypto/engine/tb_asnmth.c',
|
||||
'openssl/crypto/engine/tb_cipher.c',
|
||||
'openssl/crypto/engine/tb_dh.c',
|
||||
'openssl/crypto/engine/tb_digest.c',
|
||||
'openssl/crypto/engine/tb_dsa.c',
|
||||
'openssl/crypto/engine/tb_eckey.c',
|
||||
'openssl/crypto/engine/tb_pkmeth.c',
|
||||
'openssl/crypto/engine/tb_rand.c',
|
||||
'openssl/crypto/engine/tb_rsa.c',
|
||||
'openssl/crypto/err/err.c',
|
||||
'openssl/crypto/err/err_all.c',
|
||||
'openssl/crypto/err/err_prn.c',
|
||||
'openssl/crypto/evp/bio_b64.c',
|
||||
'openssl/crypto/evp/bio_enc.c',
|
||||
'openssl/crypto/evp/bio_md.c',
|
||||
'openssl/crypto/evp/bio_ok.c',
|
||||
'openssl/crypto/evp/c_allc.c',
|
||||
'openssl/crypto/evp/c_alld.c',
|
||||
'openssl/crypto/evp/cmeth_lib.c',
|
||||
'openssl/crypto/evp/digest.c',
|
||||
'openssl/crypto/evp/e_aes.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha1.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha256.c',
|
||||
'openssl/crypto/evp/e_aria.c',
|
||||
'openssl/crypto/evp/e_bf.c',
|
||||
'openssl/crypto/evp/e_camellia.c',
|
||||
'openssl/crypto/evp/e_cast.c',
|
||||
'openssl/crypto/evp/e_chacha20_poly1305.c',
|
||||
'openssl/crypto/evp/e_des.c',
|
||||
'openssl/crypto/evp/e_des3.c',
|
||||
'openssl/crypto/evp/e_idea.c',
|
||||
'openssl/crypto/evp/e_null.c',
|
||||
'openssl/crypto/evp/e_old.c',
|
||||
'openssl/crypto/evp/e_rc2.c',
|
||||
'openssl/crypto/evp/e_rc4.c',
|
||||
'openssl/crypto/evp/e_rc4_hmac_md5.c',
|
||||
'openssl/crypto/evp/e_rc5.c',
|
||||
'openssl/crypto/evp/e_seed.c',
|
||||
'openssl/crypto/evp/e_sm4.c',
|
||||
'openssl/crypto/evp/e_xcbc_d.c',
|
||||
'openssl/crypto/evp/encode.c',
|
||||
'openssl/crypto/evp/evp_cnf.c',
|
||||
'openssl/crypto/evp/evp_enc.c',
|
||||
'openssl/crypto/evp/evp_err.c',
|
||||
'openssl/crypto/evp/evp_key.c',
|
||||
'openssl/crypto/evp/evp_lib.c',
|
||||
'openssl/crypto/evp/evp_pbe.c',
|
||||
'openssl/crypto/evp/evp_pkey.c',
|
||||
'openssl/crypto/evp/m_md2.c',
|
||||
'openssl/crypto/evp/m_md4.c',
|
||||
'openssl/crypto/evp/m_md5.c',
|
||||
'openssl/crypto/evp/m_md5_sha1.c',
|
||||
'openssl/crypto/evp/m_mdc2.c',
|
||||
'openssl/crypto/evp/m_null.c',
|
||||
'openssl/crypto/evp/m_ripemd.c',
|
||||
'openssl/crypto/evp/m_sha1.c',
|
||||
'openssl/crypto/evp/m_sha3.c',
|
||||
'openssl/crypto/evp/m_sigver.c',
|
||||
'openssl/crypto/evp/m_wp.c',
|
||||
'openssl/crypto/evp/names.c',
|
||||
'openssl/crypto/evp/p5_crpt.c',
|
||||
'openssl/crypto/evp/p5_crpt2.c',
|
||||
'openssl/crypto/evp/p_dec.c',
|
||||
'openssl/crypto/evp/p_enc.c',
|
||||
'openssl/crypto/evp/p_lib.c',
|
||||
'openssl/crypto/evp/p_open.c',
|
||||
'openssl/crypto/evp/p_seal.c',
|
||||
'openssl/crypto/evp/p_sign.c',
|
||||
'openssl/crypto/evp/p_verify.c',
|
||||
'openssl/crypto/evp/pbe_scrypt.c',
|
||||
'openssl/crypto/evp/pmeth_fn.c',
|
||||
'openssl/crypto/evp/pmeth_gn.c',
|
||||
'openssl/crypto/evp/pmeth_lib.c',
|
||||
'openssl/crypto/ex_data.c',
|
||||
'openssl/crypto/getenv.c',
|
||||
'openssl/crypto/hmac/hm_ameth.c',
|
||||
'openssl/crypto/hmac/hm_pmeth.c',
|
||||
'openssl/crypto/hmac/hmac.c',
|
||||
'openssl/crypto/idea/i_cbc.c',
|
||||
'openssl/crypto/idea/i_cfb64.c',
|
||||
'openssl/crypto/idea/i_ecb.c',
|
||||
'openssl/crypto/idea/i_ofb64.c',
|
||||
'openssl/crypto/idea/i_skey.c',
|
||||
'openssl/crypto/init.c',
|
||||
'openssl/crypto/kdf/hkdf.c',
|
||||
'openssl/crypto/kdf/kdf_err.c',
|
||||
'openssl/crypto/kdf/scrypt.c',
|
||||
'openssl/crypto/kdf/tls1_prf.c',
|
||||
'openssl/crypto/lhash/lh_stats.c',
|
||||
'openssl/crypto/lhash/lhash.c',
|
||||
'openssl/crypto/md4/md4_dgst.c',
|
||||
'openssl/crypto/md4/md4_one.c',
|
||||
'openssl/crypto/md5/md5_dgst.c',
|
||||
'openssl/crypto/md5/md5_one.c',
|
||||
'openssl/crypto/mdc2/mdc2_one.c',
|
||||
'openssl/crypto/mdc2/mdc2dgst.c',
|
||||
'openssl/crypto/mem.c',
|
||||
'openssl/crypto/mem_dbg.c',
|
||||
'openssl/crypto/mem_sec.c',
|
||||
'openssl/crypto/modes/cbc128.c',
|
||||
'openssl/crypto/modes/ccm128.c',
|
||||
'openssl/crypto/modes/cfb128.c',
|
||||
'openssl/crypto/modes/ctr128.c',
|
||||
'openssl/crypto/modes/cts128.c',
|
||||
'openssl/crypto/modes/gcm128.c',
|
||||
'openssl/crypto/modes/ocb128.c',
|
||||
'openssl/crypto/modes/ofb128.c',
|
||||
'openssl/crypto/modes/wrap128.c',
|
||||
'openssl/crypto/modes/xts128.c',
|
||||
'openssl/crypto/o_dir.c',
|
||||
'openssl/crypto/o_fips.c',
|
||||
'openssl/crypto/o_fopen.c',
|
||||
'openssl/crypto/o_init.c',
|
||||
'openssl/crypto/o_str.c',
|
||||
'openssl/crypto/o_time.c',
|
||||
'openssl/crypto/objects/o_names.c',
|
||||
'openssl/crypto/objects/obj_dat.c',
|
||||
'openssl/crypto/objects/obj_err.c',
|
||||
'openssl/crypto/objects/obj_lib.c',
|
||||
'openssl/crypto/objects/obj_xref.c',
|
||||
'openssl/crypto/ocsp/ocsp_asn.c',
|
||||
'openssl/crypto/ocsp/ocsp_cl.c',
|
||||
'openssl/crypto/ocsp/ocsp_err.c',
|
||||
'openssl/crypto/ocsp/ocsp_ext.c',
|
||||
'openssl/crypto/ocsp/ocsp_ht.c',
|
||||
'openssl/crypto/ocsp/ocsp_lib.c',
|
||||
'openssl/crypto/ocsp/ocsp_prn.c',
|
||||
'openssl/crypto/ocsp/ocsp_srv.c',
|
||||
'openssl/crypto/ocsp/ocsp_vfy.c',
|
||||
'openssl/crypto/ocsp/v3_ocsp.c',
|
||||
'openssl/crypto/pem/pem_all.c',
|
||||
'openssl/crypto/pem/pem_err.c',
|
||||
'openssl/crypto/pem/pem_info.c',
|
||||
'openssl/crypto/pem/pem_lib.c',
|
||||
'openssl/crypto/pem/pem_oth.c',
|
||||
'openssl/crypto/pem/pem_pk8.c',
|
||||
'openssl/crypto/pem/pem_pkey.c',
|
||||
'openssl/crypto/pem/pem_sign.c',
|
||||
'openssl/crypto/pem/pem_x509.c',
|
||||
'openssl/crypto/pem/pem_xaux.c',
|
||||
'openssl/crypto/pem/pvkfmt.c',
|
||||
'openssl/crypto/pkcs12/p12_add.c',
|
||||
'openssl/crypto/pkcs12/p12_asn.c',
|
||||
'openssl/crypto/pkcs12/p12_attr.c',
|
||||
'openssl/crypto/pkcs12/p12_crpt.c',
|
||||
'openssl/crypto/pkcs12/p12_crt.c',
|
||||
'openssl/crypto/pkcs12/p12_decr.c',
|
||||
'openssl/crypto/pkcs12/p12_init.c',
|
||||
'openssl/crypto/pkcs12/p12_key.c',
|
||||
'openssl/crypto/pkcs12/p12_kiss.c',
|
||||
'openssl/crypto/pkcs12/p12_mutl.c',
|
||||
'openssl/crypto/pkcs12/p12_npas.c',
|
||||
'openssl/crypto/pkcs12/p12_p8d.c',
|
||||
'openssl/crypto/pkcs12/p12_p8e.c',
|
||||
'openssl/crypto/pkcs12/p12_sbag.c',
|
||||
'openssl/crypto/pkcs12/p12_utl.c',
|
||||
'openssl/crypto/pkcs12/pk12err.c',
|
||||
'openssl/crypto/pkcs7/bio_pk7.c',
|
||||
'openssl/crypto/pkcs7/pk7_asn1.c',
|
||||
'openssl/crypto/pkcs7/pk7_attr.c',
|
||||
'openssl/crypto/pkcs7/pk7_doit.c',
|
||||
'openssl/crypto/pkcs7/pk7_lib.c',
|
||||
'openssl/crypto/pkcs7/pk7_mime.c',
|
||||
'openssl/crypto/pkcs7/pk7_smime.c',
|
||||
'openssl/crypto/pkcs7/pkcs7err.c',
|
||||
'openssl/crypto/poly1305/poly1305.c',
|
||||
'openssl/crypto/poly1305/poly1305_ameth.c',
|
||||
'openssl/crypto/poly1305/poly1305_pmeth.c',
|
||||
'openssl/crypto/rand/drbg_ctr.c',
|
||||
'openssl/crypto/rand/drbg_lib.c',
|
||||
'openssl/crypto/rand/rand_egd.c',
|
||||
'openssl/crypto/rand/rand_err.c',
|
||||
'openssl/crypto/rand/rand_lib.c',
|
||||
'openssl/crypto/rand/rand_unix.c',
|
||||
'openssl/crypto/rand/rand_vms.c',
|
||||
'openssl/crypto/rand/rand_win.c',
|
||||
'openssl/crypto/rand/randfile.c',
|
||||
'openssl/crypto/rc2/rc2_cbc.c',
|
||||
'openssl/crypto/rc2/rc2_ecb.c',
|
||||
'openssl/crypto/rc2/rc2_skey.c',
|
||||
'openssl/crypto/rc2/rc2cfb64.c',
|
||||
'openssl/crypto/rc2/rc2ofb64.c',
|
||||
'openssl/crypto/ripemd/rmd_dgst.c',
|
||||
'openssl/crypto/ripemd/rmd_one.c',
|
||||
'openssl/crypto/rsa/rsa_ameth.c',
|
||||
'openssl/crypto/rsa/rsa_asn1.c',
|
||||
'openssl/crypto/rsa/rsa_chk.c',
|
||||
'openssl/crypto/rsa/rsa_crpt.c',
|
||||
'openssl/crypto/rsa/rsa_depr.c',
|
||||
'openssl/crypto/rsa/rsa_err.c',
|
||||
'openssl/crypto/rsa/rsa_gen.c',
|
||||
'openssl/crypto/rsa/rsa_lib.c',
|
||||
'openssl/crypto/rsa/rsa_meth.c',
|
||||
'openssl/crypto/rsa/rsa_mp.c',
|
||||
'openssl/crypto/rsa/rsa_none.c',
|
||||
'openssl/crypto/rsa/rsa_oaep.c',
|
||||
'openssl/crypto/rsa/rsa_ossl.c',
|
||||
'openssl/crypto/rsa/rsa_pk1.c',
|
||||
'openssl/crypto/rsa/rsa_pmeth.c',
|
||||
'openssl/crypto/rsa/rsa_prn.c',
|
||||
'openssl/crypto/rsa/rsa_pss.c',
|
||||
'openssl/crypto/rsa/rsa_saos.c',
|
||||
'openssl/crypto/rsa/rsa_sign.c',
|
||||
'openssl/crypto/rsa/rsa_ssl.c',
|
||||
'openssl/crypto/rsa/rsa_x931.c',
|
||||
'openssl/crypto/rsa/rsa_x931g.c',
|
||||
'openssl/crypto/seed/seed.c',
|
||||
'openssl/crypto/seed/seed_cbc.c',
|
||||
'openssl/crypto/seed/seed_cfb.c',
|
||||
'openssl/crypto/seed/seed_ecb.c',
|
||||
'openssl/crypto/seed/seed_ofb.c',
|
||||
'openssl/crypto/sha/sha1_one.c',
|
||||
'openssl/crypto/sha/sha1dgst.c',
|
||||
'openssl/crypto/sha/sha256.c',
|
||||
'openssl/crypto/sha/sha512.c',
|
||||
'openssl/crypto/siphash/siphash.c',
|
||||
'openssl/crypto/siphash/siphash_ameth.c',
|
||||
'openssl/crypto/siphash/siphash_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_crypt.c',
|
||||
'openssl/crypto/sm2/sm2_err.c',
|
||||
'openssl/crypto/sm2/sm2_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_sign.c',
|
||||
'openssl/crypto/sm3/m_sm3.c',
|
||||
'openssl/crypto/sm3/sm3.c',
|
||||
'openssl/crypto/sm4/sm4.c',
|
||||
'openssl/crypto/srp/srp_lib.c',
|
||||
'openssl/crypto/srp/srp_vfy.c',
|
||||
'openssl/crypto/stack/stack.c',
|
||||
'openssl/crypto/store/loader_file.c',
|
||||
'openssl/crypto/store/store_err.c',
|
||||
'openssl/crypto/store/store_init.c',
|
||||
'openssl/crypto/store/store_lib.c',
|
||||
'openssl/crypto/store/store_register.c',
|
||||
'openssl/crypto/store/store_strings.c',
|
||||
'openssl/crypto/threads_none.c',
|
||||
'openssl/crypto/threads_pthread.c',
|
||||
'openssl/crypto/threads_win.c',
|
||||
'openssl/crypto/ts/ts_asn1.c',
|
||||
'openssl/crypto/ts/ts_conf.c',
|
||||
'openssl/crypto/ts/ts_err.c',
|
||||
'openssl/crypto/ts/ts_lib.c',
|
||||
'openssl/crypto/ts/ts_req_print.c',
|
||||
'openssl/crypto/ts/ts_req_utils.c',
|
||||
'openssl/crypto/ts/ts_rsp_print.c',
|
||||
'openssl/crypto/ts/ts_rsp_sign.c',
|
||||
'openssl/crypto/ts/ts_rsp_utils.c',
|
||||
'openssl/crypto/ts/ts_rsp_verify.c',
|
||||
'openssl/crypto/ts/ts_verify_ctx.c',
|
||||
'openssl/crypto/txt_db/txt_db.c',
|
||||
'openssl/crypto/ui/ui_err.c',
|
||||
'openssl/crypto/ui/ui_lib.c',
|
||||
'openssl/crypto/ui/ui_null.c',
|
||||
'openssl/crypto/ui/ui_openssl.c',
|
||||
'openssl/crypto/ui/ui_util.c',
|
||||
'openssl/crypto/uid.c',
|
||||
'openssl/crypto/whrlpool/wp_dgst.c',
|
||||
'openssl/crypto/x509/by_dir.c',
|
||||
'openssl/crypto/x509/by_file.c',
|
||||
'openssl/crypto/x509/t_crl.c',
|
||||
'openssl/crypto/x509/t_req.c',
|
||||
'openssl/crypto/x509/t_x509.c',
|
||||
'openssl/crypto/x509/x509_att.c',
|
||||
'openssl/crypto/x509/x509_cmp.c',
|
||||
'openssl/crypto/x509/x509_d2.c',
|
||||
'openssl/crypto/x509/x509_def.c',
|
||||
'openssl/crypto/x509/x509_err.c',
|
||||
'openssl/crypto/x509/x509_ext.c',
|
||||
'openssl/crypto/x509/x509_lu.c',
|
||||
'openssl/crypto/x509/x509_meth.c',
|
||||
'openssl/crypto/x509/x509_obj.c',
|
||||
'openssl/crypto/x509/x509_r2x.c',
|
||||
'openssl/crypto/x509/x509_req.c',
|
||||
'openssl/crypto/x509/x509_set.c',
|
||||
'openssl/crypto/x509/x509_trs.c',
|
||||
'openssl/crypto/x509/x509_txt.c',
|
||||
'openssl/crypto/x509/x509_v3.c',
|
||||
'openssl/crypto/x509/x509_vfy.c',
|
||||
'openssl/crypto/x509/x509_vpm.c',
|
||||
'openssl/crypto/x509/x509cset.c',
|
||||
'openssl/crypto/x509/x509name.c',
|
||||
'openssl/crypto/x509/x509rset.c',
|
||||
'openssl/crypto/x509/x509spki.c',
|
||||
'openssl/crypto/x509/x509type.c',
|
||||
'openssl/crypto/x509/x_all.c',
|
||||
'openssl/crypto/x509/x_attrib.c',
|
||||
'openssl/crypto/x509/x_crl.c',
|
||||
'openssl/crypto/x509/x_exten.c',
|
||||
'openssl/crypto/x509/x_name.c',
|
||||
'openssl/crypto/x509/x_pubkey.c',
|
||||
'openssl/crypto/x509/x_req.c',
|
||||
'openssl/crypto/x509/x_x509.c',
|
||||
'openssl/crypto/x509/x_x509a.c',
|
||||
'openssl/crypto/x509v3/pcy_cache.c',
|
||||
'openssl/crypto/x509v3/pcy_data.c',
|
||||
'openssl/crypto/x509v3/pcy_lib.c',
|
||||
'openssl/crypto/x509v3/pcy_map.c',
|
||||
'openssl/crypto/x509v3/pcy_node.c',
|
||||
'openssl/crypto/x509v3/pcy_tree.c',
|
||||
'openssl/crypto/x509v3/v3_addr.c',
|
||||
'openssl/crypto/x509v3/v3_admis.c',
|
||||
'openssl/crypto/x509v3/v3_akey.c',
|
||||
'openssl/crypto/x509v3/v3_akeya.c',
|
||||
'openssl/crypto/x509v3/v3_alt.c',
|
||||
'openssl/crypto/x509v3/v3_asid.c',
|
||||
'openssl/crypto/x509v3/v3_bcons.c',
|
||||
'openssl/crypto/x509v3/v3_bitst.c',
|
||||
'openssl/crypto/x509v3/v3_conf.c',
|
||||
'openssl/crypto/x509v3/v3_cpols.c',
|
||||
'openssl/crypto/x509v3/v3_crld.c',
|
||||
'openssl/crypto/x509v3/v3_enum.c',
|
||||
'openssl/crypto/x509v3/v3_extku.c',
|
||||
'openssl/crypto/x509v3/v3_genn.c',
|
||||
'openssl/crypto/x509v3/v3_ia5.c',
|
||||
'openssl/crypto/x509v3/v3_info.c',
|
||||
'openssl/crypto/x509v3/v3_int.c',
|
||||
'openssl/crypto/x509v3/v3_lib.c',
|
||||
'openssl/crypto/x509v3/v3_ncons.c',
|
||||
'openssl/crypto/x509v3/v3_pci.c',
|
||||
'openssl/crypto/x509v3/v3_pcia.c',
|
||||
'openssl/crypto/x509v3/v3_pcons.c',
|
||||
'openssl/crypto/x509v3/v3_pku.c',
|
||||
'openssl/crypto/x509v3/v3_pmaps.c',
|
||||
'openssl/crypto/x509v3/v3_prn.c',
|
||||
'openssl/crypto/x509v3/v3_purp.c',
|
||||
'openssl/crypto/x509v3/v3_skey.c',
|
||||
'openssl/crypto/x509v3/v3_sxnet.c',
|
||||
'openssl/crypto/x509v3/v3_tlsf.c',
|
||||
'openssl/crypto/x509v3/v3_utl.c',
|
||||
'openssl/crypto/x509v3/v3err.c',
|
||||
'openssl/engines/e_capi.c',
|
||||
'openssl/engines/e_padlock.c',
|
||||
],
|
||||
'openssl_sources_BSD-x86_64': [
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/aes-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-mb-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-sha1-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/bsaes-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/aes/vpaes-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/bn/rsaz-avx2.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/bn/rsaz-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-gf2m.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-mont.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-mont5.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/camellia/cmll-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/chacha/chacha-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/ec/x25519-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/md5/md5-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/modes/aesni-gcm-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/modes/ghash-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/poly1305/poly1305-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/rc4/rc4-md5-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/rc4/rc4-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/keccak1600-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha1-mb-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha1-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha256-mb-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha256-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha512-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/whrlpool/wp-x86_64.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/crypto/x86_64cpuid.s',
|
||||
'./config/archs/BSD-x86_64/asm_avx2/engines/e_padlock-x86_64.s',
|
||||
],
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'NDEBUG',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
'OPENSSL_BN_ASM_MONT5',
|
||||
'OPENSSL_BN_ASM_GF2m',
|
||||
'SHA1_ASM',
|
||||
'SHA256_ASM',
|
||||
'SHA512_ASM',
|
||||
'KECCAK1600_ASM',
|
||||
'RC4_ASM',
|
||||
'MD5_ASM',
|
||||
'AES_ASM',
|
||||
'VPAES_ASM',
|
||||
'BSAES_ASM',
|
||||
'GHASH_ASM',
|
||||
'ECP_NISTZ256_ASM',
|
||||
'X25519_ASM',
|
||||
'PADLOCK_ASM',
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-Wa,--noexecstack',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'-pthread',
|
||||
],
|
||||
},
|
||||
'include_dirs': [
|
||||
'.',
|
||||
'./include',
|
||||
'./crypto',
|
||||
'./crypto/include/internal',
|
||||
],
|
||||
'defines': ['<@(openssl_defines_BSD-x86_64)'],
|
||||
'cflags' : ['<@(openssl_cflags_BSD-x86_64)'],
|
||||
'libraries': ['<@(openssl_ex_libs_BSD-x86_64)'],
|
||||
'sources': ['<@(openssl_sources)', '<@(openssl_sources_BSD-x86_64)'],
|
||||
}
|
||||
+3800
-355
File diff suppressed because it is too large.
Load diff
+24
-18
@@ -1,23 +1,29 @@
|
||||
/* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
|
||||
#define CFLAGS cflags
|
||||
/*
|
||||
* Generate CFLAGS as an array of individual characters. This is a
|
||||
* WARNING: do not edit!
|
||||
* Generated by util/mkbuildinf.pl
|
||||
*
|
||||
* Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#define PLATFORM "platform: BSD-x86_64"
|
||||
#define DATE "built on: Thu Jan 24 21:31:06 2019 UTC"
|
||||
|
||||
/*
|
||||
* Generate compiler_flags as an array of individual characters. This is a
|
||||
* workaround for the situation where CFLAGS gets too long for a C90 string
|
||||
* literal
|
||||
*/
|
||||
static const char cflags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','c','c',' ','-','D','D',
|
||||
'S','O','_','D','L','F','C','N',' ','-','D','H','A','V','E','_',
|
||||
'D','L','F','C','N','_','H',' ','-','D','N','D','E','B','U','G',
|
||||
' ','-','D','O','P','E','N','S','S','L','_','T','H','R','E','A',
|
||||
'D','S',' ','-','D','O','P','E','N','S','S','L','_','N','O','_',
|
||||
'D','Y','N','A','M','I','C','_','E','N','G','I','N','E',' ','-',
|
||||
'D','O','P','E','N','S','S','L','_','P','I','C',' ','-','D','O',
|
||||
'P','E','N','S','S','L','D','I','R','=','"','\\','"','/','u','s',
|
||||
'r','/','l','o','c','a','l','/','s','s','l','\\','"','"',' ','-',
|
||||
'D','E','N','G','I','N','E','S','D','I','R','=','"','\\','"','/',
|
||||
'u','s','r','/','l','o','c','a','l','/','l','i','b','/','e','n',
|
||||
'g','i','n','e','s','-','1','.','1','\\','"','"',' ','\0'
|
||||
static const char compiler_flags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','c','c',' ','-','f','P',
|
||||
'I','C',' ','-','p','t','h','r','e','a','d',' ','-','W','a','l',
|
||||
'l',' ','-','O','3',' ','-','D','L','_','E','N','D','I','A','N',
|
||||
' ','-','D','O','P','E','N','S','S','L','_','P','I','C',' ','-',
|
||||
'D','_','T','H','R','E','A','D','_','S','A','F','E',' ','-','D',
|
||||
'_','R','E','E','N','T','R','A','N','T',' ','-','D','N','D','E',
|
||||
'B','U','G','\0'
|
||||
};
|
||||
#define PLATFORM "platform: BSD-x86_64"
|
||||
#define DATE "built on: Tue Nov 20 09:37:38 2018"
|
||||
+4
-1
@@ -1,7 +1,7 @@
|
||||
/* WARNING: do not edit! */
|
||||
/* Generated by Makefile from crypto/include/internal/dso_conf.h.in */
|
||||
/*
|
||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -12,5 +12,8 @@
|
||||
#ifndef HEADER_DSO_CONF_H
|
||||
# define HEADER_DSO_CONF_H
|
||||
|
||||
# define DSO_DLFCN
|
||||
# define HAVE_DLFCN_H
|
||||
# define DSO_EXTENSION ".so"
|
||||
|
||||
#endif
|
||||
+31
-11
@@ -10,6 +10,8 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -34,6 +36,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_THREADS
|
||||
# define OPENSSL_THREADS
|
||||
#endif
|
||||
#ifndef OPENSSL_RAND_SEED_OS
|
||||
# define OPENSSL_RAND_SEED_OS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -49,12 +54,18 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DEVCRYPTOENG
|
||||
# define OPENSSL_NO_DEVCRYPTOENG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
# define OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EGD
|
||||
# define OPENSSL_NO_EGD
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EXTERNAL_TESTS
|
||||
# define OPENSSL_NO_EXTERNAL_TESTS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_FUZZ_AFL
|
||||
# define OPENSSL_NO_FUZZ_AFL
|
||||
#endif
|
||||
@@ -88,6 +99,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
# define OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
|
||||
# define OPENSSL_NO_DYNAMIC_ENGINE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -106,15 +120,11 @@ extern "C" {
|
||||
* functions.
|
||||
*/
|
||||
#ifndef DECLARE_DEPRECATED
|
||||
# if defined(OPENSSL_NO_DEPRECATED)
|
||||
# define DECLARE_DEPRECATED(f)
|
||||
# else
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
@@ -138,6 +148,18 @@ extern "C" {
|
||||
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not deprecate things to be deprecated in version 1.2.0 before the
|
||||
* OpenSSL version number matches.
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) f;
|
||||
#elif OPENSSL_API_COMPAT < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_2_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
@@ -156,8 +178,6 @@ extern "C" {
|
||||
# define DEPRECATEDIN_0_9_8(f)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Generate 80386 code? */
|
||||
#undef I386_ONLY
|
||||
|
||||
|
||||
+266
-177
@@ -2,7 +2,7 @@
|
||||
* WARNING: do not edit!
|
||||
* Generated by apps/progs.pl
|
||||
*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -39,7 +39,6 @@ extern int ecparam_main(int argc, char *argv[]);
|
||||
extern int enc_main(int argc, char *argv[]);
|
||||
extern int engine_main(int argc, char *argv[]);
|
||||
extern int errstr_main(int argc, char *argv[]);
|
||||
extern int exit_main(int argc, char *argv[]);
|
||||
extern int gendsa_main(int argc, char *argv[]);
|
||||
extern int genpkey_main(int argc, char *argv[]);
|
||||
extern int genrsa_main(int argc, char *argv[]);
|
||||
@@ -68,351 +67,441 @@ extern int smime_main(int argc, char *argv[]);
|
||||
extern int speed_main(int argc, char *argv[]);
|
||||
extern int spkac_main(int argc, char *argv[]);
|
||||
extern int srp_main(int argc, char *argv[]);
|
||||
extern int storeutl_main(int argc, char *argv[]);
|
||||
extern int ts_main(int argc, char *argv[]);
|
||||
extern int verify_main(int argc, char *argv[]);
|
||||
extern int version_main(int argc, char *argv[]);
|
||||
extern int x509_main(int argc, char *argv[]);
|
||||
|
||||
extern OPTIONS asn1parse_options[];
|
||||
extern OPTIONS ca_options[];
|
||||
extern OPTIONS ciphers_options[];
|
||||
extern OPTIONS cms_options[];
|
||||
extern OPTIONS crl_options[];
|
||||
extern OPTIONS crl2pkcs7_options[];
|
||||
extern OPTIONS dgst_options[];
|
||||
extern OPTIONS dhparam_options[];
|
||||
extern OPTIONS dsa_options[];
|
||||
extern OPTIONS dsaparam_options[];
|
||||
extern OPTIONS ec_options[];
|
||||
extern OPTIONS ecparam_options[];
|
||||
extern OPTIONS enc_options[];
|
||||
extern OPTIONS engine_options[];
|
||||
extern OPTIONS errstr_options[];
|
||||
extern OPTIONS exit_options[];
|
||||
extern OPTIONS gendsa_options[];
|
||||
extern OPTIONS genpkey_options[];
|
||||
extern OPTIONS genrsa_options[];
|
||||
extern OPTIONS help_options[];
|
||||
extern OPTIONS list_options[];
|
||||
extern OPTIONS nseq_options[];
|
||||
extern OPTIONS ocsp_options[];
|
||||
extern OPTIONS passwd_options[];
|
||||
extern OPTIONS pkcs12_options[];
|
||||
extern OPTIONS pkcs7_options[];
|
||||
extern OPTIONS pkcs8_options[];
|
||||
extern OPTIONS pkey_options[];
|
||||
extern OPTIONS pkeyparam_options[];
|
||||
extern OPTIONS pkeyutl_options[];
|
||||
extern OPTIONS prime_options[];
|
||||
extern OPTIONS rand_options[];
|
||||
extern OPTIONS rehash_options[];
|
||||
extern OPTIONS req_options[];
|
||||
extern OPTIONS rsa_options[];
|
||||
extern OPTIONS rsautl_options[];
|
||||
extern OPTIONS s_client_options[];
|
||||
extern OPTIONS s_server_options[];
|
||||
extern OPTIONS s_time_options[];
|
||||
extern OPTIONS sess_id_options[];
|
||||
extern OPTIONS smime_options[];
|
||||
extern OPTIONS speed_options[];
|
||||
extern OPTIONS spkac_options[];
|
||||
extern OPTIONS srp_options[];
|
||||
extern OPTIONS ts_options[];
|
||||
extern OPTIONS verify_options[];
|
||||
extern OPTIONS version_options[];
|
||||
extern OPTIONS x509_options[];
|
||||
extern const OPTIONS asn1parse_options[];
|
||||
extern const OPTIONS ca_options[];
|
||||
extern const OPTIONS ciphers_options[];
|
||||
extern const OPTIONS cms_options[];
|
||||
extern const OPTIONS crl_options[];
|
||||
extern const OPTIONS crl2pkcs7_options[];
|
||||
extern const OPTIONS dgst_options[];
|
||||
extern const OPTIONS dhparam_options[];
|
||||
extern const OPTIONS dsa_options[];
|
||||
extern const OPTIONS dsaparam_options[];
|
||||
extern const OPTIONS ec_options[];
|
||||
extern const OPTIONS ecparam_options[];
|
||||
extern const OPTIONS enc_options[];
|
||||
extern const OPTIONS engine_options[];
|
||||
extern const OPTIONS errstr_options[];
|
||||
extern const OPTIONS gendsa_options[];
|
||||
extern const OPTIONS genpkey_options[];
|
||||
extern const OPTIONS genrsa_options[];
|
||||
extern const OPTIONS help_options[];
|
||||
extern const OPTIONS list_options[];
|
||||
extern const OPTIONS nseq_options[];
|
||||
extern const OPTIONS ocsp_options[];
|
||||
extern const OPTIONS passwd_options[];
|
||||
extern const OPTIONS pkcs12_options[];
|
||||
extern const OPTIONS pkcs7_options[];
|
||||
extern const OPTIONS pkcs8_options[];
|
||||
extern const OPTIONS pkey_options[];
|
||||
extern const OPTIONS pkeyparam_options[];
|
||||
extern const OPTIONS pkeyutl_options[];
|
||||
extern const OPTIONS prime_options[];
|
||||
extern const OPTIONS rand_options[];
|
||||
extern const OPTIONS rehash_options[];
|
||||
extern const OPTIONS req_options[];
|
||||
extern const OPTIONS rsa_options[];
|
||||
extern const OPTIONS rsautl_options[];
|
||||
extern const OPTIONS s_client_options[];
|
||||
extern const OPTIONS s_server_options[];
|
||||
extern const OPTIONS s_time_options[];
|
||||
extern const OPTIONS sess_id_options[];
|
||||
extern const OPTIONS smime_options[];
|
||||
extern const OPTIONS speed_options[];
|
||||
extern const OPTIONS spkac_options[];
|
||||
extern const OPTIONS srp_options[];
|
||||
extern const OPTIONS storeutl_options[];
|
||||
extern const OPTIONS ts_options[];
|
||||
extern const OPTIONS verify_options[];
|
||||
extern const OPTIONS version_options[];
|
||||
extern const OPTIONS x509_options[];
|
||||
|
||||
#ifdef INCLUDE_FUNCTION_TABLE
|
||||
static FUNCTION functions[] = {
|
||||
{ FT_general, "asn1parse", asn1parse_main, asn1parse_options },
|
||||
{ FT_general, "ca", ca_main, ca_options },
|
||||
{FT_general, "asn1parse", asn1parse_main, asn1parse_options},
|
||||
{FT_general, "ca", ca_main, ca_options},
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "ciphers", ciphers_main, ciphers_options },
|
||||
{FT_general, "ciphers", ciphers_main, ciphers_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CMS
|
||||
{ FT_general, "cms", cms_main, cms_options },
|
||||
{FT_general, "cms", cms_main, cms_options},
|
||||
#endif
|
||||
{ FT_general, "crl", crl_main, crl_options },
|
||||
{ FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options },
|
||||
{ FT_general, "dgst", dgst_main, dgst_options },
|
||||
{FT_general, "crl", crl_main, crl_options},
|
||||
{FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options},
|
||||
{FT_general, "dgst", dgst_main, dgst_options},
|
||||
#ifndef OPENSSL_NO_DH
|
||||
{ FT_general, "dhparam", dhparam_main, dhparam_options },
|
||||
{FT_general, "dhparam", dhparam_main, dhparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsa", dsa_main, dsa_options },
|
||||
{FT_general, "dsa", dsa_main, dsa_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsaparam", dsaparam_main, dsaparam_options },
|
||||
{FT_general, "dsaparam", dsaparam_main, dsaparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ec", ec_main, ec_options },
|
||||
{FT_general, "ec", ec_main, ec_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ecparam", ecparam_main, ecparam_options },
|
||||
{FT_general, "ecparam", ecparam_main, ecparam_options},
|
||||
#endif
|
||||
{ FT_general, "enc", enc_main, enc_options },
|
||||
{FT_general, "enc", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ENGINE
|
||||
{ FT_general, "engine", engine_main, engine_options },
|
||||
{FT_general, "engine", engine_main, engine_options},
|
||||
#endif
|
||||
{ FT_general, "errstr", errstr_main, errstr_options },
|
||||
{ FT_general, "exit", exit_main, exit_options },
|
||||
{FT_general, "errstr", errstr_main, errstr_options},
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "gendsa", gendsa_main, gendsa_options },
|
||||
{FT_general, "gendsa", gendsa_main, gendsa_options},
|
||||
#endif
|
||||
{ FT_general, "genpkey", genpkey_main, genpkey_options },
|
||||
{FT_general, "genpkey", genpkey_main, genpkey_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "genrsa", genrsa_main, genrsa_options },
|
||||
{FT_general, "genrsa", genrsa_main, genrsa_options},
|
||||
#endif
|
||||
{ FT_general, "help", help_main, help_options },
|
||||
{ FT_general, "list", list_main, list_options },
|
||||
{ FT_general, "nseq", nseq_main, nseq_options },
|
||||
{FT_general, "help", help_main, help_options},
|
||||
{FT_general, "list", list_main, list_options},
|
||||
{FT_general, "nseq", nseq_main, nseq_options},
|
||||
#ifndef OPENSSL_NO_OCSP
|
||||
{ FT_general, "ocsp", ocsp_main, ocsp_options },
|
||||
{FT_general, "ocsp", ocsp_main, ocsp_options},
|
||||
#endif
|
||||
{ FT_general, "passwd", passwd_main, passwd_options },
|
||||
{FT_general, "passwd", passwd_main, passwd_options},
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_general, "pkcs12", pkcs12_main, pkcs12_options },
|
||||
{FT_general, "pkcs12", pkcs12_main, pkcs12_options},
|
||||
#endif
|
||||
{ FT_general, "pkcs7", pkcs7_main, pkcs7_options },
|
||||
{ FT_general, "pkcs8", pkcs8_main, pkcs8_options },
|
||||
{ FT_general, "pkey", pkey_main, pkey_options },
|
||||
{ FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options },
|
||||
{ FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options },
|
||||
{ FT_general, "prime", prime_main, prime_options },
|
||||
{ FT_general, "rand", rand_main, rand_options },
|
||||
{ FT_general, "rehash", rehash_main, rehash_options },
|
||||
{ FT_general, "req", req_main, req_options },
|
||||
{ FT_general, "rsa", rsa_main, rsa_options },
|
||||
{FT_general, "pkcs7", pkcs7_main, pkcs7_options},
|
||||
{FT_general, "pkcs8", pkcs8_main, pkcs8_options},
|
||||
{FT_general, "pkey", pkey_main, pkey_options},
|
||||
{FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options},
|
||||
{FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options},
|
||||
{FT_general, "prime", prime_main, prime_options},
|
||||
{FT_general, "rand", rand_main, rand_options},
|
||||
{FT_general, "rehash", rehash_main, rehash_options},
|
||||
{FT_general, "req", req_main, req_options},
|
||||
{FT_general, "rsa", rsa_main, rsa_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "rsautl", rsautl_main, rsautl_options },
|
||||
{FT_general, "rsautl", rsautl_main, rsautl_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_client", s_client_main, s_client_options },
|
||||
{FT_general, "s_client", s_client_main, s_client_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_server", s_server_main, s_server_options },
|
||||
{FT_general, "s_server", s_server_main, s_server_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_time", s_time_main, s_time_options },
|
||||
{FT_general, "s_time", s_time_main, s_time_options},
|
||||
#endif
|
||||
{ FT_general, "sess_id", sess_id_main, sess_id_options },
|
||||
{ FT_general, "smime", smime_main, smime_options },
|
||||
{ FT_general, "speed", speed_main, speed_options },
|
||||
{ FT_general, "spkac", spkac_main, spkac_options },
|
||||
{FT_general, "sess_id", sess_id_main, sess_id_options},
|
||||
{FT_general, "smime", smime_main, smime_options},
|
||||
{FT_general, "speed", speed_main, speed_options},
|
||||
{FT_general, "spkac", spkac_main, spkac_options},
|
||||
#ifndef OPENSSL_NO_SRP
|
||||
{ FT_general, "srp", srp_main, srp_options },
|
||||
{FT_general, "srp", srp_main, srp_options},
|
||||
#endif
|
||||
{FT_general, "storeutl", storeutl_main, storeutl_options},
|
||||
#ifndef OPENSSL_NO_TS
|
||||
{ FT_general, "ts", ts_main, ts_options },
|
||||
{FT_general, "ts", ts_main, ts_options},
|
||||
#endif
|
||||
{ FT_general, "verify", verify_main, verify_options },
|
||||
{ FT_general, "version", version_main, version_options },
|
||||
{ FT_general, "x509", x509_main, x509_options },
|
||||
{FT_general, "verify", verify_main, verify_options},
|
||||
{FT_general, "version", version_main, version_options},
|
||||
{FT_general, "x509", x509_main, x509_options},
|
||||
#ifndef OPENSSL_NO_MD2
|
||||
{ FT_md, "md2", dgst_main},
|
||||
{FT_md, "md2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MD4
|
||||
{ FT_md, "md4", dgst_main},
|
||||
{FT_md, "md4", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "md5", dgst_main},
|
||||
{FT_md, "md5", dgst_main},
|
||||
#ifndef OPENSSL_NO_GOST
|
||||
{ FT_md, "gost", dgst_main},
|
||||
{FT_md, "gost", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "sha1", dgst_main},
|
||||
{ FT_md, "sha224", dgst_main},
|
||||
{ FT_md, "sha256", dgst_main},
|
||||
{ FT_md, "sha384", dgst_main},
|
||||
{ FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha1", dgst_main},
|
||||
{FT_md, "sha224", dgst_main},
|
||||
{FT_md, "sha256", dgst_main},
|
||||
{FT_md, "sha384", dgst_main},
|
||||
{FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha512-224", dgst_main},
|
||||
{FT_md, "sha512-256", dgst_main},
|
||||
{FT_md, "sha3-224", dgst_main},
|
||||
{FT_md, "sha3-256", dgst_main},
|
||||
{FT_md, "sha3-384", dgst_main},
|
||||
{FT_md, "sha3-512", dgst_main},
|
||||
{FT_md, "shake128", dgst_main},
|
||||
{FT_md, "shake256", dgst_main},
|
||||
#ifndef OPENSSL_NO_MDC2
|
||||
{ FT_md, "mdc2", dgst_main},
|
||||
{FT_md, "mdc2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RMD160
|
||||
{ FT_md, "rmd160", dgst_main},
|
||||
{FT_md, "rmd160", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2b512", dgst_main},
|
||||
{FT_md, "blake2b512", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2s256", dgst_main},
|
||||
{FT_md, "blake2s256", dgst_main},
|
||||
#endif
|
||||
{ FT_cipher, "aes-128-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-128-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-ecb", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-cbc", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_SM3
|
||||
{FT_md, "sm3", dgst_main},
|
||||
#endif
|
||||
{FT_cipher, "aes-128-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-128-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-ecb", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
{ FT_cipher, "base64", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
{FT_cipher, "base64", enc_main, enc_options},
|
||||
#ifdef ZLIB
|
||||
{ FT_cipher, "zlib", enc_main, enc_options },
|
||||
{FT_cipher, "zlib", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des", enc_main, enc_options },
|
||||
{FT_cipher, "des", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des3", enc_main, enc_options },
|
||||
{FT_cipher, "des3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "desx", enc_main, enc_options },
|
||||
{FT_cipher, "desx", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea", enc_main, enc_options },
|
||||
{FT_cipher, "idea", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed", enc_main, enc_options },
|
||||
{FT_cipher, "seed", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4", enc_main, enc_options },
|
||||
{FT_cipher, "rc4", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4-40", enc_main, enc_options },
|
||||
{FT_cipher, "rc4-40", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2", enc_main, enc_options },
|
||||
{FT_cipher, "rc2", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf", enc_main, enc_options },
|
||||
{FT_cipher, "bf", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast", enc_main, enc_options },
|
||||
{FT_cipher, "cast", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5", enc_main, enc_options },
|
||||
{FT_cipher, "rc5", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-64-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-64-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-40-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-40-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
{ 0, NULL, NULL}
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
#endif
|
||||
+12
-11
@@ -1,22 +1,19 @@
|
||||
{
|
||||
'variables': {
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'DSO_DLFCN',
|
||||
'HAVE_DLFCN_H',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-DL_ENDIAN -Wall -O3 -pthread -D_THREAD_SAFE -D_REENTRANT',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'',
|
||||
'-pthread',
|
||||
],
|
||||
'openssl_cli_srcs_BSD-x86_64': [
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/asn1pars.c',
|
||||
'openssl/apps/ca.c',
|
||||
'openssl/apps/ciphers.c',
|
||||
@@ -38,7 +35,6 @@
|
||||
'openssl/apps/nseq.c',
|
||||
'openssl/apps/ocsp.c',
|
||||
'openssl/apps/openssl.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/passwd.c',
|
||||
'openssl/apps/pkcs12.c',
|
||||
'openssl/apps/pkcs7.c',
|
||||
@@ -52,20 +48,25 @@
|
||||
'openssl/apps/req.c',
|
||||
'openssl/apps/rsa.c',
|
||||
'openssl/apps/rsautl.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_client.c',
|
||||
'openssl/apps/s_server.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
'openssl/apps/s_time.c',
|
||||
'openssl/apps/sess_id.c',
|
||||
'openssl/apps/smime.c',
|
||||
'openssl/apps/speed.c',
|
||||
'openssl/apps/spkac.c',
|
||||
'openssl/apps/srp.c',
|
||||
'openssl/apps/storeutl.c',
|
||||
'openssl/apps/ts.c',
|
||||
'openssl/apps/verify.c',
|
||||
'openssl/apps/version.c',
|
||||
'openssl/apps/x509.c',
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/bf_prefix.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
],
|
||||
},
|
||||
'defines': ['<@(openssl_defines_BSD-x86_64)'],
|
||||
|
||||
+51
-14
@@ -6,12 +6,14 @@
|
||||
'openssl/ssl/d1_msg.c',
|
||||
'openssl/ssl/d1_srtp.c',
|
||||
'openssl/ssl/methods.c',
|
||||
'openssl/ssl/packet.c',
|
||||
'openssl/ssl/pqueue.c',
|
||||
'openssl/ssl/record/dtls1_bitmap.c',
|
||||
'openssl/ssl/record/rec_layer_d1.c',
|
||||
'openssl/ssl/record/rec_layer_s3.c',
|
||||
'openssl/ssl/record/ssl3_buffer.c',
|
||||
'openssl/ssl/record/ssl3_record.c',
|
||||
'openssl/ssl/record/ssl3_record_tls13.c',
|
||||
'openssl/ssl/s3_cbc.c',
|
||||
'openssl/ssl/s3_enc.c',
|
||||
'openssl/ssl/s3_lib.c',
|
||||
@@ -29,16 +31,19 @@
|
||||
'openssl/ssl/ssl_stat.c',
|
||||
'openssl/ssl/ssl_txt.c',
|
||||
'openssl/ssl/ssl_utst.c',
|
||||
'openssl/ssl/statem/extensions.c',
|
||||
'openssl/ssl/statem/extensions_clnt.c',
|
||||
'openssl/ssl/statem/extensions_cust.c',
|
||||
'openssl/ssl/statem/extensions_srvr.c',
|
||||
'openssl/ssl/statem/statem.c',
|
||||
'openssl/ssl/statem/statem_clnt.c',
|
||||
'openssl/ssl/statem/statem_dtls.c',
|
||||
'openssl/ssl/statem/statem_lib.c',
|
||||
'openssl/ssl/statem/statem_srvr.c',
|
||||
'openssl/ssl/t1_enc.c',
|
||||
'openssl/ssl/t1_ext.c',
|
||||
'openssl/ssl/t1_lib.c',
|
||||
'openssl/ssl/t1_reneg.c',
|
||||
'openssl/ssl/t1_trce.c',
|
||||
'openssl/ssl/tls13_enc.c',
|
||||
'openssl/ssl/tls_srp.c',
|
||||
'openssl/crypto/aes/aes_cbc.c',
|
||||
'openssl/crypto/aes/aes_cfb.c',
|
||||
@@ -48,6 +53,7 @@
|
||||
'openssl/crypto/aes/aes_misc.c',
|
||||
'openssl/crypto/aes/aes_ofb.c',
|
||||
'openssl/crypto/aes/aes_wrap.c',
|
||||
'openssl/crypto/aria/aria.c',
|
||||
'openssl/crypto/asn1/a_bitstr.c',
|
||||
'openssl/crypto/asn1/a_d2i_fp.c',
|
||||
'openssl/crypto/asn1/a_digest.c',
|
||||
@@ -70,6 +76,7 @@
|
||||
'openssl/crypto/asn1/ameth_lib.c',
|
||||
'openssl/crypto/asn1/asn1_err.c',
|
||||
'openssl/crypto/asn1/asn1_gen.c',
|
||||
'openssl/crypto/asn1/asn1_item_list.c',
|
||||
'openssl/crypto/asn1/asn1_lib.c',
|
||||
'openssl/crypto/asn1/asn1_par.c',
|
||||
'openssl/crypto/asn1/asn_mime.c',
|
||||
@@ -232,6 +239,7 @@
|
||||
'openssl/crypto/ct/ct_sct_ctx.c',
|
||||
'openssl/crypto/ct/ct_vfy.c',
|
||||
'openssl/crypto/ct/ct_x509v3.c',
|
||||
'openssl/crypto/ctype.c',
|
||||
'openssl/crypto/cversion.c',
|
||||
'openssl/crypto/des/cbc_cksm.c',
|
||||
'openssl/crypto/des/cbc_enc.c',
|
||||
@@ -249,7 +257,6 @@
|
||||
'openssl/crypto/des/pcbc_enc.c',
|
||||
'openssl/crypto/des/qud_cksm.c',
|
||||
'openssl/crypto/des/rand_key.c',
|
||||
'openssl/crypto/des/rpc_enc.c',
|
||||
'openssl/crypto/des/set_key.c',
|
||||
'openssl/crypto/des/str2key.c',
|
||||
'openssl/crypto/des/xcbc_enc.c',
|
||||
@@ -266,6 +273,7 @@
|
||||
'openssl/crypto/dh/dh_pmeth.c',
|
||||
'openssl/crypto/dh/dh_prn.c',
|
||||
'openssl/crypto/dh/dh_rfc5114.c',
|
||||
'openssl/crypto/dh/dh_rfc7919.c',
|
||||
'openssl/crypto/dsa/dsa_ameth.c',
|
||||
'openssl/crypto/dsa/dsa_asn1.c',
|
||||
'openssl/crypto/dsa/dsa_depr.c',
|
||||
@@ -288,7 +296,12 @@
|
||||
'openssl/crypto/dso/dso_win32.c',
|
||||
'openssl/crypto/ebcdic.c',
|
||||
'openssl/crypto/ec/curve25519.c',
|
||||
'openssl/crypto/ec/ec2_mult.c',
|
||||
'openssl/crypto/ec/curve448/arch_32/f_impl.c',
|
||||
'openssl/crypto/ec/curve448/curve448.c',
|
||||
'openssl/crypto/ec/curve448/curve448_tables.c',
|
||||
'openssl/crypto/ec/curve448/eddsa.c',
|
||||
'openssl/crypto/ec/curve448/f_generic.c',
|
||||
'openssl/crypto/ec/curve448/scalar.c',
|
||||
'openssl/crypto/ec/ec2_oct.c',
|
||||
'openssl/crypto/ec/ec2_smpl.c',
|
||||
'openssl/crypto/ec/ec_ameth.c',
|
||||
@@ -321,7 +334,6 @@
|
||||
'openssl/crypto/ec/ecx_meth.c',
|
||||
'openssl/crypto/engine/eng_all.c',
|
||||
'openssl/crypto/engine/eng_cnf.c',
|
||||
'openssl/crypto/engine/eng_cryptodev.c',
|
||||
'openssl/crypto/engine/eng_ctrl.c',
|
||||
'openssl/crypto/engine/eng_dyn.c',
|
||||
'openssl/crypto/engine/eng_err.c',
|
||||
@@ -356,6 +368,7 @@
|
||||
'openssl/crypto/evp/e_aes.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha1.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha256.c',
|
||||
'openssl/crypto/evp/e_aria.c',
|
||||
'openssl/crypto/evp/e_bf.c',
|
||||
'openssl/crypto/evp/e_camellia.c',
|
||||
'openssl/crypto/evp/e_cast.c',
|
||||
@@ -370,6 +383,7 @@
|
||||
'openssl/crypto/evp/e_rc4_hmac_md5.c',
|
||||
'openssl/crypto/evp/e_rc5.c',
|
||||
'openssl/crypto/evp/e_seed.c',
|
||||
'openssl/crypto/evp/e_sm4.c',
|
||||
'openssl/crypto/evp/e_xcbc_d.c',
|
||||
'openssl/crypto/evp/encode.c',
|
||||
'openssl/crypto/evp/evp_cnf.c',
|
||||
@@ -387,6 +401,7 @@
|
||||
'openssl/crypto/evp/m_null.c',
|
||||
'openssl/crypto/evp/m_ripemd.c',
|
||||
'openssl/crypto/evp/m_sha1.c',
|
||||
'openssl/crypto/evp/m_sha3.c',
|
||||
'openssl/crypto/evp/m_sigver.c',
|
||||
'openssl/crypto/evp/m_wp.c',
|
||||
'openssl/crypto/evp/names.c',
|
||||
@@ -399,10 +414,10 @@
|
||||
'openssl/crypto/evp/p_seal.c',
|
||||
'openssl/crypto/evp/p_sign.c',
|
||||
'openssl/crypto/evp/p_verify.c',
|
||||
'openssl/crypto/evp/pbe_scrypt.c',
|
||||
'openssl/crypto/evp/pmeth_fn.c',
|
||||
'openssl/crypto/evp/pmeth_gn.c',
|
||||
'openssl/crypto/evp/pmeth_lib.c',
|
||||
'openssl/crypto/evp/scrypt.c',
|
||||
'openssl/crypto/ex_data.c',
|
||||
'openssl/crypto/getenv.c',
|
||||
'openssl/crypto/hmac/hm_ameth.c',
|
||||
@@ -416,6 +431,7 @@
|
||||
'openssl/crypto/init.c',
|
||||
'openssl/crypto/kdf/hkdf.c',
|
||||
'openssl/crypto/kdf/kdf_err.c',
|
||||
'openssl/crypto/kdf/scrypt.c',
|
||||
'openssl/crypto/kdf/tls1_prf.c',
|
||||
'openssl/crypto/lhash/lh_stats.c',
|
||||
'openssl/crypto/lhash/lhash.c',
|
||||
@@ -496,7 +512,10 @@
|
||||
'openssl/crypto/pkcs7/pk7_smime.c',
|
||||
'openssl/crypto/pkcs7/pkcs7err.c',
|
||||
'openssl/crypto/poly1305/poly1305.c',
|
||||
'openssl/crypto/rand/md_rand.c',
|
||||
'openssl/crypto/poly1305/poly1305_ameth.c',
|
||||
'openssl/crypto/poly1305/poly1305_pmeth.c',
|
||||
'openssl/crypto/rand/drbg_ctr.c',
|
||||
'openssl/crypto/rand/drbg_lib.c',
|
||||
'openssl/crypto/rand/rand_egd.c',
|
||||
'openssl/crypto/rand/rand_err.c',
|
||||
'openssl/crypto/rand/rand_lib.c',
|
||||
@@ -522,8 +541,8 @@
|
||||
'openssl/crypto/rsa/rsa_gen.c',
|
||||
'openssl/crypto/rsa/rsa_lib.c',
|
||||
'openssl/crypto/rsa/rsa_meth.c',
|
||||
'openssl/crypto/rsa/rsa_mp.c',
|
||||
'openssl/crypto/rsa/rsa_none.c',
|
||||
'openssl/crypto/rsa/rsa_null.c',
|
||||
'openssl/crypto/rsa/rsa_oaep.c',
|
||||
'openssl/crypto/rsa/rsa_ossl.c',
|
||||
'openssl/crypto/rsa/rsa_pk1.c',
|
||||
@@ -540,13 +559,30 @@
|
||||
'openssl/crypto/seed/seed_cfb.c',
|
||||
'openssl/crypto/seed/seed_ecb.c',
|
||||
'openssl/crypto/seed/seed_ofb.c',
|
||||
'openssl/crypto/sha/keccak1600.c',
|
||||
'openssl/crypto/sha/sha1_one.c',
|
||||
'openssl/crypto/sha/sha1dgst.c',
|
||||
'openssl/crypto/sha/sha256.c',
|
||||
'openssl/crypto/sha/sha512.c',
|
||||
'openssl/crypto/siphash/siphash.c',
|
||||
'openssl/crypto/siphash/siphash_ameth.c',
|
||||
'openssl/crypto/siphash/siphash_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_crypt.c',
|
||||
'openssl/crypto/sm2/sm2_err.c',
|
||||
'openssl/crypto/sm2/sm2_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_sign.c',
|
||||
'openssl/crypto/sm3/m_sm3.c',
|
||||
'openssl/crypto/sm3/sm3.c',
|
||||
'openssl/crypto/sm4/sm4.c',
|
||||
'openssl/crypto/srp/srp_lib.c',
|
||||
'openssl/crypto/srp/srp_vfy.c',
|
||||
'openssl/crypto/stack/stack.c',
|
||||
'openssl/crypto/store/loader_file.c',
|
||||
'openssl/crypto/store/store_err.c',
|
||||
'openssl/crypto/store/store_init.c',
|
||||
'openssl/crypto/store/store_lib.c',
|
||||
'openssl/crypto/store/store_register.c',
|
||||
'openssl/crypto/store/store_strings.c',
|
||||
'openssl/crypto/threads_none.c',
|
||||
'openssl/crypto/threads_pthread.c',
|
||||
'openssl/crypto/threads_win.c',
|
||||
@@ -564,6 +600,7 @@
|
||||
'openssl/crypto/txt_db/txt_db.c',
|
||||
'openssl/crypto/ui/ui_err.c',
|
||||
'openssl/crypto/ui/ui_lib.c',
|
||||
'openssl/crypto/ui/ui_null.c',
|
||||
'openssl/crypto/ui/ui_openssl.c',
|
||||
'openssl/crypto/ui/ui_util.c',
|
||||
'openssl/crypto/uid.c',
|
||||
@@ -612,6 +649,7 @@
|
||||
'openssl/crypto/x509v3/pcy_node.c',
|
||||
'openssl/crypto/x509v3/pcy_tree.c',
|
||||
'openssl/crypto/x509v3/v3_addr.c',
|
||||
'openssl/crypto/x509v3/v3_admis.c',
|
||||
'openssl/crypto/x509v3/v3_akey.c',
|
||||
'openssl/crypto/x509v3/v3_akeya.c',
|
||||
'openssl/crypto/x509v3/v3_alt.c',
|
||||
@@ -647,18 +685,17 @@
|
||||
'openssl_sources_BSD-x86_64': [
|
||||
],
|
||||
'openssl_defines_BSD-x86_64': [
|
||||
'DSO_DLFCN',
|
||||
'HAVE_DLFCN_H',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'L_ENDIAN',
|
||||
'OPENSSL_PIC',
|
||||
],
|
||||
'openssl_cflags_BSD-x86_64': [
|
||||
'-DL_ENDIAN -Wall -O3 -pthread -D_THREAD_SAFE -D_REENTRANT',
|
||||
'-Wall -O3',
|
||||
'-pthread',
|
||||
'-Wall -O3',
|
||||
],
|
||||
'openssl_ex_libs_BSD-x86_64': [
|
||||
'',
|
||||
'-pthread',
|
||||
],
|
||||
},
|
||||
'include_dirs': [
|
||||
|
||||
+3823
-366
File diff suppressed because it is too large.
Load diff
+40
-7
@@ -1,12 +1,45 @@
|
||||
/* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
|
||||
#define CFLAGS cflags
|
||||
/*
|
||||
* Generate CFLAGS as an array of individual characters. This is a
|
||||
* WARNING: do not edit!
|
||||
* Generated by util/mkbuildinf.pl
|
||||
*
|
||||
* Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#define PLATFORM "platform: "
|
||||
#define DATE "built on: Thu Jan 24 21:35:52 2019 UTC"
|
||||
|
||||
/*
|
||||
* Generate compiler_flags as an array of individual characters. This is a
|
||||
* workaround for the situation where CFLAGS gets too long for a C90 string
|
||||
* literal
|
||||
*/
|
||||
static const char cflags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','c','c','\0'
|
||||
static const char compiler_flags[] = {
|
||||
'c','o','m','p','i','l','e','r',':',' ','c','c',' ','/','Z','i',
|
||||
' ','/','F','d','o','s','s','l','_','s','t','a','t','i','c','.',
|
||||
'p','d','b',' ',' ','-','D','O','P','E','N','S','S','L','_','I',
|
||||
'A','3','2','_','S','S','E','2',' ','-','D','L','_','E','N','D',
|
||||
'I','A','N',' ','-','D','O','P','E','N','S','S','L','_','P','I',
|
||||
'C',' ','-','D','O','P','E','N','S','S','L','_','C','P','U','I',
|
||||
'D','_','O','B','J',' ','-','D','O','P','E','N','S','S','L','_',
|
||||
'B','N','_','A','S','M','_','P','A','R','T','_','W','O','R','D',
|
||||
'S',' ','-','D','O','P','E','N','S','S','L','_','I','A','3','2',
|
||||
'_','S','S','E','2',' ','-','D','O','P','E','N','S','S','L','_',
|
||||
'B','N','_','A','S','M','_','M','O','N','T',' ','-','D','O','P',
|
||||
'E','N','S','S','L','_','B','N','_','A','S','M','_','G','F','2',
|
||||
'm',' ','-','D','S','H','A','1','_','A','S','M',' ','-','D','S',
|
||||
'H','A','2','5','6','_','A','S','M',' ','-','D','S','H','A','5',
|
||||
'1','2','_','A','S','M',' ','-','D','R','C','4','_','A','S','M',
|
||||
' ','-','D','M','D','5','_','A','S','M',' ','-','D','R','M','D',
|
||||
'1','6','0','_','A','S','M',' ','-','D','A','E','S','_','A','S',
|
||||
'M',' ','-','D','V','P','A','E','S','_','A','S','M',' ','-','D',
|
||||
'W','H','I','R','L','P','O','O','L','_','A','S','M',' ','-','D',
|
||||
'G','H','A','S','H','_','A','S','M',' ','-','D','E','C','P','_',
|
||||
'N','I','S','T','Z','2','5','6','_','A','S','M',' ','-','D','P',
|
||||
'A','D','L','O','C','K','_','A','S','M',' ','-','D','P','O','L',
|
||||
'Y','1','3','0','5','_','A','S','M','\0'
|
||||
};
|
||||
#define PLATFORM "platform: "
|
||||
#define DATE "built on: Tue Nov 20 09:39:18 2018"
|
||||
@@ -1,7 +1,7 @@
|
||||
/* WARNING: do not edit! */
|
||||
/* Generated by makefile from crypto/include/internal/dso_conf.h.in */
|
||||
/*
|
||||
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -12,5 +12,7 @@
|
||||
#ifndef HEADER_DSO_CONF_H
|
||||
# define HEADER_DSO_CONF_H
|
||||
|
||||
# define DSO_WIN32
|
||||
# define DSO_EXTENSION ".dll"
|
||||
|
||||
#endif
|
||||
+26
-75
@@ -256,31 +256,6 @@ dd 447811568
|
||||
mov eax,ebx
|
||||
pop ebx
|
||||
ret
|
||||
global _OPENSSL_indirect_call
|
||||
align 16
|
||||
_OPENSSL_indirect_call:
|
||||
L$_OPENSSL_indirect_call_begin:
|
||||
push ebp
|
||||
mov ebp,esp
|
||||
sub esp,28
|
||||
mov ecx,DWORD [12+ebp]
|
||||
mov DWORD [esp],ecx
|
||||
mov edx,DWORD [16+ebp]
|
||||
mov DWORD [4+esp],edx
|
||||
mov eax,DWORD [20+ebp]
|
||||
mov DWORD [8+esp],eax
|
||||
mov eax,DWORD [24+ebp]
|
||||
mov DWORD [12+esp],eax
|
||||
mov eax,DWORD [28+ebp]
|
||||
mov DWORD [16+esp],eax
|
||||
mov eax,DWORD [32+ebp]
|
||||
mov DWORD [20+esp],eax
|
||||
mov eax,DWORD [36+ebp]
|
||||
mov DWORD [24+esp],eax
|
||||
call DWORD [8+ebp]
|
||||
mov esp,ebp
|
||||
pop ebp
|
||||
ret
|
||||
global _OPENSSL_cleanse
|
||||
align 16
|
||||
_OPENSSL_cleanse:
|
||||
@@ -442,19 +417,6 @@ L$024nogo:
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _OPENSSL_ia32_rdrand
|
||||
align 16
|
||||
_OPENSSL_ia32_rdrand:
|
||||
L$_OPENSSL_ia32_rdrand_begin:
|
||||
mov ecx,8
|
||||
L$027loop:
|
||||
db 15,199,240
|
||||
jc NEAR L$028break
|
||||
loop L$027loop
|
||||
L$028break:
|
||||
cmp eax,0
|
||||
cmove eax,ecx
|
||||
ret
|
||||
global _OPENSSL_ia32_rdrand_bytes
|
||||
align 16
|
||||
_OPENSSL_ia32_rdrand_bytes:
|
||||
@@ -465,49 +427,37 @@ L$_OPENSSL_ia32_rdrand_bytes_begin:
|
||||
mov edi,DWORD [12+esp]
|
||||
mov ebx,DWORD [16+esp]
|
||||
cmp ebx,0
|
||||
je NEAR L$029done
|
||||
je NEAR L$027done
|
||||
mov ecx,8
|
||||
L$030loop:
|
||||
L$028loop:
|
||||
db 15,199,242
|
||||
jc NEAR L$031break
|
||||
loop L$030loop
|
||||
jmp NEAR L$029done
|
||||
jc NEAR L$029break
|
||||
loop L$028loop
|
||||
jmp NEAR L$027done
|
||||
align 16
|
||||
L$031break:
|
||||
L$029break:
|
||||
cmp ebx,4
|
||||
jb NEAR L$032tail
|
||||
jb NEAR L$030tail
|
||||
mov DWORD [edi],edx
|
||||
lea edi,[4+edi]
|
||||
add eax,4
|
||||
sub ebx,4
|
||||
jz NEAR L$029done
|
||||
jz NEAR L$027done
|
||||
mov ecx,8
|
||||
jmp NEAR L$030loop
|
||||
jmp NEAR L$028loop
|
||||
align 16
|
||||
L$032tail:
|
||||
L$030tail:
|
||||
mov BYTE [edi],dl
|
||||
lea edi,[1+edi]
|
||||
inc eax
|
||||
shr edx,8
|
||||
dec ebx
|
||||
jnz NEAR L$032tail
|
||||
L$029done:
|
||||
jnz NEAR L$030tail
|
||||
L$027done:
|
||||
xor edx,edx
|
||||
pop ebx
|
||||
pop edi
|
||||
ret
|
||||
global _OPENSSL_ia32_rdseed
|
||||
align 16
|
||||
_OPENSSL_ia32_rdseed:
|
||||
L$_OPENSSL_ia32_rdseed_begin:
|
||||
mov ecx,8
|
||||
L$033loop:
|
||||
db 15,199,248
|
||||
jc NEAR L$034break
|
||||
loop L$033loop
|
||||
L$034break:
|
||||
cmp eax,0
|
||||
cmove eax,ecx
|
||||
ret
|
||||
global _OPENSSL_ia32_rdseed_bytes
|
||||
align 16
|
||||
_OPENSSL_ia32_rdseed_bytes:
|
||||
@@ -518,33 +468,34 @@ L$_OPENSSL_ia32_rdseed_bytes_begin:
|
||||
mov edi,DWORD [12+esp]
|
||||
mov ebx,DWORD [16+esp]
|
||||
cmp ebx,0
|
||||
je NEAR L$035done
|
||||
je NEAR L$031done
|
||||
mov ecx,8
|
||||
L$036loop:
|
||||
L$032loop:
|
||||
db 15,199,250
|
||||
jc NEAR L$037break
|
||||
loop L$036loop
|
||||
jmp NEAR L$035done
|
||||
jc NEAR L$033break
|
||||
loop L$032loop
|
||||
jmp NEAR L$031done
|
||||
align 16
|
||||
L$037break:
|
||||
L$033break:
|
||||
cmp ebx,4
|
||||
jb NEAR L$038tail
|
||||
jb NEAR L$034tail
|
||||
mov DWORD [edi],edx
|
||||
lea edi,[4+edi]
|
||||
add eax,4
|
||||
sub ebx,4
|
||||
jz NEAR L$035done
|
||||
jz NEAR L$031done
|
||||
mov ecx,8
|
||||
jmp NEAR L$036loop
|
||||
jmp NEAR L$032loop
|
||||
align 16
|
||||
L$038tail:
|
||||
L$034tail:
|
||||
mov BYTE [edi],dl
|
||||
lea edi,[1+edi]
|
||||
inc eax
|
||||
shr edx,8
|
||||
dec ebx
|
||||
jnz NEAR L$038tail
|
||||
L$035done:
|
||||
jnz NEAR L$034tail
|
||||
L$031done:
|
||||
xor edx,edx
|
||||
pop ebx
|
||||
pop edi
|
||||
ret
|
||||
|
||||
+132
-123
@@ -26,11 +26,20 @@ L$_padlock_capability_begin:
|
||||
cpuid
|
||||
xor eax,eax
|
||||
cmp ebx,0x746e6543
|
||||
jne NEAR L$000noluck
|
||||
jne NEAR L$001zhaoxin
|
||||
cmp edx,0x48727561
|
||||
jne NEAR L$000noluck
|
||||
cmp ecx,0x736c7561
|
||||
jne NEAR L$000noluck
|
||||
jmp NEAR L$002zhaoxinEnd
|
||||
L$001zhaoxin:
|
||||
cmp ebx,0x68532020
|
||||
jne NEAR L$000noluck
|
||||
cmp edx,0x68676e61
|
||||
jne NEAR L$000noluck
|
||||
cmp ecx,0x20206961
|
||||
jne NEAR L$000noluck
|
||||
L$002zhaoxinEnd:
|
||||
mov eax,3221225472
|
||||
cpuid
|
||||
mov edx,eax
|
||||
@@ -61,13 +70,13 @@ _padlock_key_bswap:
|
||||
L$_padlock_key_bswap_begin:
|
||||
mov edx,DWORD [4+esp]
|
||||
mov ecx,DWORD [240+edx]
|
||||
L$001bswap_loop:
|
||||
L$003bswap_loop:
|
||||
mov eax,DWORD [edx]
|
||||
bswap eax
|
||||
mov DWORD [edx],eax
|
||||
lea edx,[4+edx]
|
||||
sub ecx,1
|
||||
jnz NEAR L$001bswap_loop
|
||||
jnz NEAR L$003bswap_loop
|
||||
ret
|
||||
global _padlock_verify_context
|
||||
align 16
|
||||
@@ -77,18 +86,18 @@ L$_padlock_verify_context_begin:
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
call __padlock_verify_ctx
|
||||
L$002verify_pic_point:
|
||||
L$004verify_pic_point:
|
||||
lea esp,[4+esp]
|
||||
ret
|
||||
align 16
|
||||
__padlock_verify_ctx:
|
||||
bt DWORD [4+esp],30
|
||||
jnc NEAR L$003verified
|
||||
jnc NEAR L$005verified
|
||||
cmp edx,DWORD [eax]
|
||||
je NEAR L$003verified
|
||||
je NEAR L$005verified
|
||||
pushfd
|
||||
popfd
|
||||
L$003verified:
|
||||
L$005verified:
|
||||
mov DWORD [eax],edx
|
||||
ret
|
||||
global _padlock_reload_key
|
||||
@@ -129,25 +138,25 @@ L$_padlock_ecb_encrypt_begin:
|
||||
mov edx,DWORD [28+esp]
|
||||
mov ecx,DWORD [32+esp]
|
||||
test edx,15
|
||||
jnz NEAR L$004ecb_abort
|
||||
jnz NEAR L$006ecb_abort
|
||||
test ecx,15
|
||||
jnz NEAR L$004ecb_abort
|
||||
jnz NEAR L$006ecb_abort
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
cld
|
||||
call __padlock_verify_ctx
|
||||
L$005ecb_pic_point:
|
||||
L$007ecb_pic_point:
|
||||
lea edx,[16+edx]
|
||||
xor eax,eax
|
||||
xor ebx,ebx
|
||||
test DWORD [edx],32
|
||||
jnz NEAR L$006ecb_aligned
|
||||
jnz NEAR L$008ecb_aligned
|
||||
test edi,15
|
||||
setz al
|
||||
test esi,15
|
||||
setz bl
|
||||
test eax,ebx
|
||||
jnz NEAR L$006ecb_aligned
|
||||
jnz NEAR L$008ecb_aligned
|
||||
neg eax
|
||||
mov ebx,512
|
||||
not eax
|
||||
@@ -166,7 +175,7 @@ L$005ecb_pic_point:
|
||||
and esp,-16
|
||||
mov DWORD [16+ebp],eax
|
||||
cmp ecx,ebx
|
||||
ja NEAR L$007ecb_loop
|
||||
ja NEAR L$009ecb_loop
|
||||
mov eax,esi
|
||||
cmp ebp,esp
|
||||
cmove eax,edi
|
||||
@@ -177,10 +186,10 @@ L$005ecb_pic_point:
|
||||
mov eax,-128
|
||||
cmovae eax,ebx
|
||||
and ebx,eax
|
||||
jz NEAR L$008ecb_unaligned_tail
|
||||
jmp NEAR L$007ecb_loop
|
||||
jz NEAR L$010ecb_unaligned_tail
|
||||
jmp NEAR L$009ecb_loop
|
||||
align 16
|
||||
L$007ecb_loop:
|
||||
L$009ecb_loop:
|
||||
mov DWORD [ebp],edi
|
||||
mov DWORD [4+ebp],esi
|
||||
mov DWORD [8+ebp],ecx
|
||||
@@ -189,13 +198,13 @@ L$007ecb_loop:
|
||||
test edi,15
|
||||
cmovnz edi,esp
|
||||
test esi,15
|
||||
jz NEAR L$009ecb_inp_aligned
|
||||
jz NEAR L$011ecb_inp_aligned
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
mov ecx,ebx
|
||||
mov esi,edi
|
||||
L$009ecb_inp_aligned:
|
||||
L$011ecb_inp_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
@@ -203,23 +212,23 @@ db 243,15,167,200
|
||||
mov edi,DWORD [ebp]
|
||||
mov ebx,DWORD [12+ebp]
|
||||
test edi,15
|
||||
jz NEAR L$010ecb_out_aligned
|
||||
jz NEAR L$012ecb_out_aligned
|
||||
mov ecx,ebx
|
||||
lea esi,[esp]
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
L$010ecb_out_aligned:
|
||||
L$012ecb_out_aligned:
|
||||
mov esi,DWORD [4+ebp]
|
||||
mov ecx,DWORD [8+ebp]
|
||||
add edi,ebx
|
||||
add esi,ebx
|
||||
sub ecx,ebx
|
||||
mov ebx,512
|
||||
jz NEAR L$011ecb_break
|
||||
jz NEAR L$013ecb_break
|
||||
cmp ecx,ebx
|
||||
jae NEAR L$007ecb_loop
|
||||
L$008ecb_unaligned_tail:
|
||||
jae NEAR L$009ecb_loop
|
||||
L$010ecb_unaligned_tail:
|
||||
xor eax,eax
|
||||
cmp esp,ebp
|
||||
cmove eax,ecx
|
||||
@@ -232,24 +241,24 @@ db 243,165
|
||||
mov esi,esp
|
||||
mov edi,eax
|
||||
mov ecx,ebx
|
||||
jmp NEAR L$007ecb_loop
|
||||
jmp NEAR L$009ecb_loop
|
||||
align 16
|
||||
L$011ecb_break:
|
||||
L$013ecb_break:
|
||||
cmp esp,ebp
|
||||
je NEAR L$012ecb_done
|
||||
je NEAR L$014ecb_done
|
||||
pxor xmm0,xmm0
|
||||
lea eax,[esp]
|
||||
L$013ecb_bzero:
|
||||
L$015ecb_bzero:
|
||||
movaps [eax],xmm0
|
||||
lea eax,[16+eax]
|
||||
cmp ebp,eax
|
||||
ja NEAR L$013ecb_bzero
|
||||
L$012ecb_done:
|
||||
ja NEAR L$015ecb_bzero
|
||||
L$014ecb_done:
|
||||
mov ebp,DWORD [16+ebp]
|
||||
lea esp,[24+ebp]
|
||||
jmp NEAR L$014ecb_exit
|
||||
jmp NEAR L$016ecb_exit
|
||||
align 16
|
||||
L$006ecb_aligned:
|
||||
L$008ecb_aligned:
|
||||
lea ebp,[ecx*1+esi]
|
||||
neg ebp
|
||||
and ebp,4095
|
||||
@@ -259,14 +268,14 @@ L$006ecb_aligned:
|
||||
cmovae ebp,eax
|
||||
and ebp,ecx
|
||||
sub ecx,ebp
|
||||
jz NEAR L$015ecb_aligned_tail
|
||||
jz NEAR L$017ecb_aligned_tail
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
db 243,15,167,200
|
||||
test ebp,ebp
|
||||
jz NEAR L$014ecb_exit
|
||||
L$015ecb_aligned_tail:
|
||||
jz NEAR L$016ecb_exit
|
||||
L$017ecb_aligned_tail:
|
||||
mov ecx,ebp
|
||||
lea ebp,[esp-24]
|
||||
mov esp,ebp
|
||||
@@ -283,11 +292,11 @@ db 243,165
|
||||
mov esi,esp
|
||||
mov edi,eax
|
||||
mov ecx,ebx
|
||||
jmp NEAR L$007ecb_loop
|
||||
L$014ecb_exit:
|
||||
jmp NEAR L$009ecb_loop
|
||||
L$016ecb_exit:
|
||||
mov eax,1
|
||||
lea esp,[4+esp]
|
||||
L$004ecb_abort:
|
||||
L$006ecb_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
@@ -306,25 +315,25 @@ L$_padlock_cbc_encrypt_begin:
|
||||
mov edx,DWORD [28+esp]
|
||||
mov ecx,DWORD [32+esp]
|
||||
test edx,15
|
||||
jnz NEAR L$016cbc_abort
|
||||
jnz NEAR L$018cbc_abort
|
||||
test ecx,15
|
||||
jnz NEAR L$016cbc_abort
|
||||
jnz NEAR L$018cbc_abort
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
cld
|
||||
call __padlock_verify_ctx
|
||||
L$017cbc_pic_point:
|
||||
L$019cbc_pic_point:
|
||||
lea edx,[16+edx]
|
||||
xor eax,eax
|
||||
xor ebx,ebx
|
||||
test DWORD [edx],32
|
||||
jnz NEAR L$018cbc_aligned
|
||||
jnz NEAR L$020cbc_aligned
|
||||
test edi,15
|
||||
setz al
|
||||
test esi,15
|
||||
setz bl
|
||||
test eax,ebx
|
||||
jnz NEAR L$018cbc_aligned
|
||||
jnz NEAR L$020cbc_aligned
|
||||
neg eax
|
||||
mov ebx,512
|
||||
not eax
|
||||
@@ -343,7 +352,7 @@ L$017cbc_pic_point:
|
||||
and esp,-16
|
||||
mov DWORD [16+ebp],eax
|
||||
cmp ecx,ebx
|
||||
ja NEAR L$019cbc_loop
|
||||
ja NEAR L$021cbc_loop
|
||||
mov eax,esi
|
||||
cmp ebp,esp
|
||||
cmove eax,edi
|
||||
@@ -354,10 +363,10 @@ L$017cbc_pic_point:
|
||||
mov eax,-64
|
||||
cmovae eax,ebx
|
||||
and ebx,eax
|
||||
jz NEAR L$020cbc_unaligned_tail
|
||||
jmp NEAR L$019cbc_loop
|
||||
jz NEAR L$022cbc_unaligned_tail
|
||||
jmp NEAR L$021cbc_loop
|
||||
align 16
|
||||
L$019cbc_loop:
|
||||
L$021cbc_loop:
|
||||
mov DWORD [ebp],edi
|
||||
mov DWORD [4+ebp],esi
|
||||
mov DWORD [8+ebp],ecx
|
||||
@@ -366,13 +375,13 @@ L$019cbc_loop:
|
||||
test edi,15
|
||||
cmovnz edi,esp
|
||||
test esi,15
|
||||
jz NEAR L$021cbc_inp_aligned
|
||||
jz NEAR L$023cbc_inp_aligned
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
mov ecx,ebx
|
||||
mov esi,edi
|
||||
L$021cbc_inp_aligned:
|
||||
L$023cbc_inp_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
@@ -382,23 +391,23 @@ db 243,15,167,208
|
||||
mov edi,DWORD [ebp]
|
||||
mov ebx,DWORD [12+ebp]
|
||||
test edi,15
|
||||
jz NEAR L$022cbc_out_aligned
|
||||
jz NEAR L$024cbc_out_aligned
|
||||
mov ecx,ebx
|
||||
lea esi,[esp]
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
L$022cbc_out_aligned:
|
||||
L$024cbc_out_aligned:
|
||||
mov esi,DWORD [4+ebp]
|
||||
mov ecx,DWORD [8+ebp]
|
||||
add edi,ebx
|
||||
add esi,ebx
|
||||
sub ecx,ebx
|
||||
mov ebx,512
|
||||
jz NEAR L$023cbc_break
|
||||
jz NEAR L$025cbc_break
|
||||
cmp ecx,ebx
|
||||
jae NEAR L$019cbc_loop
|
||||
L$020cbc_unaligned_tail:
|
||||
jae NEAR L$021cbc_loop
|
||||
L$022cbc_unaligned_tail:
|
||||
xor eax,eax
|
||||
cmp esp,ebp
|
||||
cmove eax,ecx
|
||||
@@ -411,24 +420,24 @@ db 243,165
|
||||
mov esi,esp
|
||||
mov edi,eax
|
||||
mov ecx,ebx
|
||||
jmp NEAR L$019cbc_loop
|
||||
jmp NEAR L$021cbc_loop
|
||||
align 16
|
||||
L$023cbc_break:
|
||||
L$025cbc_break:
|
||||
cmp esp,ebp
|
||||
je NEAR L$024cbc_done
|
||||
je NEAR L$026cbc_done
|
||||
pxor xmm0,xmm0
|
||||
lea eax,[esp]
|
||||
L$025cbc_bzero:
|
||||
L$027cbc_bzero:
|
||||
movaps [eax],xmm0
|
||||
lea eax,[16+eax]
|
||||
cmp ebp,eax
|
||||
ja NEAR L$025cbc_bzero
|
||||
L$024cbc_done:
|
||||
ja NEAR L$027cbc_bzero
|
||||
L$026cbc_done:
|
||||
mov ebp,DWORD [16+ebp]
|
||||
lea esp,[24+ebp]
|
||||
jmp NEAR L$026cbc_exit
|
||||
jmp NEAR L$028cbc_exit
|
||||
align 16
|
||||
L$018cbc_aligned:
|
||||
L$020cbc_aligned:
|
||||
lea ebp,[ecx*1+esi]
|
||||
neg ebp
|
||||
and ebp,4095
|
||||
@@ -438,7 +447,7 @@ L$018cbc_aligned:
|
||||
cmovae ebp,eax
|
||||
and ebp,ecx
|
||||
sub ecx,ebp
|
||||
jz NEAR L$027cbc_aligned_tail
|
||||
jz NEAR L$029cbc_aligned_tail
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
@@ -446,8 +455,8 @@ db 243,15,167,208
|
||||
movaps xmm0,[eax]
|
||||
movaps [edx-16],xmm0
|
||||
test ebp,ebp
|
||||
jz NEAR L$026cbc_exit
|
||||
L$027cbc_aligned_tail:
|
||||
jz NEAR L$028cbc_exit
|
||||
L$029cbc_aligned_tail:
|
||||
mov ecx,ebp
|
||||
lea ebp,[esp-24]
|
||||
mov esp,ebp
|
||||
@@ -464,11 +473,11 @@ db 243,165
|
||||
mov esi,esp
|
||||
mov edi,eax
|
||||
mov ecx,ebx
|
||||
jmp NEAR L$019cbc_loop
|
||||
L$026cbc_exit:
|
||||
jmp NEAR L$021cbc_loop
|
||||
L$028cbc_exit:
|
||||
mov eax,1
|
||||
lea esp,[4+esp]
|
||||
L$016cbc_abort:
|
||||
L$018cbc_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
@@ -487,25 +496,25 @@ L$_padlock_cfb_encrypt_begin:
|
||||
mov edx,DWORD [28+esp]
|
||||
mov ecx,DWORD [32+esp]
|
||||
test edx,15
|
||||
jnz NEAR L$028cfb_abort
|
||||
jnz NEAR L$030cfb_abort
|
||||
test ecx,15
|
||||
jnz NEAR L$028cfb_abort
|
||||
jnz NEAR L$030cfb_abort
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
cld
|
||||
call __padlock_verify_ctx
|
||||
L$029cfb_pic_point:
|
||||
L$031cfb_pic_point:
|
||||
lea edx,[16+edx]
|
||||
xor eax,eax
|
||||
xor ebx,ebx
|
||||
test DWORD [edx],32
|
||||
jnz NEAR L$030cfb_aligned
|
||||
jnz NEAR L$032cfb_aligned
|
||||
test edi,15
|
||||
setz al
|
||||
test esi,15
|
||||
setz bl
|
||||
test eax,ebx
|
||||
jnz NEAR L$030cfb_aligned
|
||||
jnz NEAR L$032cfb_aligned
|
||||
neg eax
|
||||
mov ebx,512
|
||||
not eax
|
||||
@@ -523,9 +532,9 @@ L$029cfb_pic_point:
|
||||
and ebp,-16
|
||||
and esp,-16
|
||||
mov DWORD [16+ebp],eax
|
||||
jmp NEAR L$031cfb_loop
|
||||
jmp NEAR L$033cfb_loop
|
||||
align 16
|
||||
L$031cfb_loop:
|
||||
L$033cfb_loop:
|
||||
mov DWORD [ebp],edi
|
||||
mov DWORD [4+ebp],esi
|
||||
mov DWORD [8+ebp],ecx
|
||||
@@ -534,13 +543,13 @@ L$031cfb_loop:
|
||||
test edi,15
|
||||
cmovnz edi,esp
|
||||
test esi,15
|
||||
jz NEAR L$032cfb_inp_aligned
|
||||
jz NEAR L$034cfb_inp_aligned
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
mov ecx,ebx
|
||||
mov esi,edi
|
||||
L$032cfb_inp_aligned:
|
||||
L$034cfb_inp_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
@@ -550,45 +559,45 @@ db 243,15,167,224
|
||||
mov edi,DWORD [ebp]
|
||||
mov ebx,DWORD [12+ebp]
|
||||
test edi,15
|
||||
jz NEAR L$033cfb_out_aligned
|
||||
jz NEAR L$035cfb_out_aligned
|
||||
mov ecx,ebx
|
||||
lea esi,[esp]
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
L$033cfb_out_aligned:
|
||||
L$035cfb_out_aligned:
|
||||
mov esi,DWORD [4+ebp]
|
||||
mov ecx,DWORD [8+ebp]
|
||||
add edi,ebx
|
||||
add esi,ebx
|
||||
sub ecx,ebx
|
||||
mov ebx,512
|
||||
jnz NEAR L$031cfb_loop
|
||||
jnz NEAR L$033cfb_loop
|
||||
cmp esp,ebp
|
||||
je NEAR L$034cfb_done
|
||||
je NEAR L$036cfb_done
|
||||
pxor xmm0,xmm0
|
||||
lea eax,[esp]
|
||||
L$035cfb_bzero:
|
||||
L$037cfb_bzero:
|
||||
movaps [eax],xmm0
|
||||
lea eax,[16+eax]
|
||||
cmp ebp,eax
|
||||
ja NEAR L$035cfb_bzero
|
||||
L$034cfb_done:
|
||||
ja NEAR L$037cfb_bzero
|
||||
L$036cfb_done:
|
||||
mov ebp,DWORD [16+ebp]
|
||||
lea esp,[24+ebp]
|
||||
jmp NEAR L$036cfb_exit
|
||||
jmp NEAR L$038cfb_exit
|
||||
align 16
|
||||
L$030cfb_aligned:
|
||||
L$032cfb_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
db 243,15,167,224
|
||||
movaps xmm0,[eax]
|
||||
movaps [edx-16],xmm0
|
||||
L$036cfb_exit:
|
||||
L$038cfb_exit:
|
||||
mov eax,1
|
||||
lea esp,[4+esp]
|
||||
L$028cfb_abort:
|
||||
L$030cfb_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
@@ -607,25 +616,25 @@ L$_padlock_ofb_encrypt_begin:
|
||||
mov edx,DWORD [28+esp]
|
||||
mov ecx,DWORD [32+esp]
|
||||
test edx,15
|
||||
jnz NEAR L$037ofb_abort
|
||||
jnz NEAR L$039ofb_abort
|
||||
test ecx,15
|
||||
jnz NEAR L$037ofb_abort
|
||||
jnz NEAR L$039ofb_abort
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
cld
|
||||
call __padlock_verify_ctx
|
||||
L$038ofb_pic_point:
|
||||
L$040ofb_pic_point:
|
||||
lea edx,[16+edx]
|
||||
xor eax,eax
|
||||
xor ebx,ebx
|
||||
test DWORD [edx],32
|
||||
jnz NEAR L$039ofb_aligned
|
||||
jnz NEAR L$041ofb_aligned
|
||||
test edi,15
|
||||
setz al
|
||||
test esi,15
|
||||
setz bl
|
||||
test eax,ebx
|
||||
jnz NEAR L$039ofb_aligned
|
||||
jnz NEAR L$041ofb_aligned
|
||||
neg eax
|
||||
mov ebx,512
|
||||
not eax
|
||||
@@ -643,9 +652,9 @@ L$038ofb_pic_point:
|
||||
and ebp,-16
|
||||
and esp,-16
|
||||
mov DWORD [16+ebp],eax
|
||||
jmp NEAR L$040ofb_loop
|
||||
jmp NEAR L$042ofb_loop
|
||||
align 16
|
||||
L$040ofb_loop:
|
||||
L$042ofb_loop:
|
||||
mov DWORD [ebp],edi
|
||||
mov DWORD [4+ebp],esi
|
||||
mov DWORD [8+ebp],ecx
|
||||
@@ -654,13 +663,13 @@ L$040ofb_loop:
|
||||
test edi,15
|
||||
cmovnz edi,esp
|
||||
test esi,15
|
||||
jz NEAR L$041ofb_inp_aligned
|
||||
jz NEAR L$043ofb_inp_aligned
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
mov ecx,ebx
|
||||
mov esi,edi
|
||||
L$041ofb_inp_aligned:
|
||||
L$043ofb_inp_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
@@ -670,45 +679,45 @@ db 243,15,167,232
|
||||
mov edi,DWORD [ebp]
|
||||
mov ebx,DWORD [12+ebp]
|
||||
test edi,15
|
||||
jz NEAR L$042ofb_out_aligned
|
||||
jz NEAR L$044ofb_out_aligned
|
||||
mov ecx,ebx
|
||||
lea esi,[esp]
|
||||
shr ecx,2
|
||||
db 243,165
|
||||
sub edi,ebx
|
||||
L$042ofb_out_aligned:
|
||||
L$044ofb_out_aligned:
|
||||
mov esi,DWORD [4+ebp]
|
||||
mov ecx,DWORD [8+ebp]
|
||||
add edi,ebx
|
||||
add esi,ebx
|
||||
sub ecx,ebx
|
||||
mov ebx,512
|
||||
jnz NEAR L$040ofb_loop
|
||||
jnz NEAR L$042ofb_loop
|
||||
cmp esp,ebp
|
||||
je NEAR L$043ofb_done
|
||||
je NEAR L$045ofb_done
|
||||
pxor xmm0,xmm0
|
||||
lea eax,[esp]
|
||||
L$044ofb_bzero:
|
||||
L$046ofb_bzero:
|
||||
movaps [eax],xmm0
|
||||
lea eax,[16+eax]
|
||||
cmp ebp,eax
|
||||
ja NEAR L$044ofb_bzero
|
||||
L$043ofb_done:
|
||||
ja NEAR L$046ofb_bzero
|
||||
L$045ofb_done:
|
||||
mov ebp,DWORD [16+ebp]
|
||||
lea esp,[24+ebp]
|
||||
jmp NEAR L$045ofb_exit
|
||||
jmp NEAR L$047ofb_exit
|
||||
align 16
|
||||
L$039ofb_aligned:
|
||||
L$041ofb_aligned:
|
||||
lea eax,[edx-16]
|
||||
lea ebx,[16+edx]
|
||||
shr ecx,4
|
||||
db 243,15,167,232
|
||||
movaps xmm0,[eax]
|
||||
movaps [edx-16],xmm0
|
||||
L$045ofb_exit:
|
||||
L$047ofb_exit:
|
||||
mov eax,1
|
||||
lea esp,[4+esp]
|
||||
L$037ofb_abort:
|
||||
L$039ofb_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
@@ -727,14 +736,14 @@ L$_padlock_ctr32_encrypt_begin:
|
||||
mov edx,DWORD [28+esp]
|
||||
mov ecx,DWORD [32+esp]
|
||||
test edx,15
|
||||
jnz NEAR L$046ctr32_abort
|
||||
jnz NEAR L$048ctr32_abort
|
||||
test ecx,15
|
||||
jnz NEAR L$046ctr32_abort
|
||||
jnz NEAR L$048ctr32_abort
|
||||
lea eax,[L$padlock_saved_context]
|
||||
pushfd
|
||||
cld
|
||||
call __padlock_verify_ctx
|
||||
L$047ctr32_pic_point:
|
||||
L$049ctr32_pic_point:
|
||||
lea edx,[16+edx]
|
||||
xor eax,eax
|
||||
movq mm0,[edx-16]
|
||||
@@ -754,9 +763,9 @@ L$047ctr32_pic_point:
|
||||
and ebp,-16
|
||||
and esp,-16
|
||||
mov DWORD [16+ebp],eax
|
||||
jmp NEAR L$048ctr32_loop
|
||||
jmp NEAR L$050ctr32_loop
|
||||
align 16
|
||||
L$048ctr32_loop:
|
||||
L$050ctr32_loop:
|
||||
mov DWORD [ebp],edi
|
||||
mov DWORD [4+ebp],esi
|
||||
mov DWORD [8+ebp],ecx
|
||||
@@ -765,7 +774,7 @@ L$048ctr32_loop:
|
||||
mov ecx,DWORD [edx-4]
|
||||
xor edi,edi
|
||||
mov eax,DWORD [edx-8]
|
||||
L$049ctr32_prepare:
|
||||
L$051ctr32_prepare:
|
||||
mov DWORD [12+edi*1+esp],ecx
|
||||
bswap ecx
|
||||
movq [edi*1+esp],mm0
|
||||
@@ -774,7 +783,7 @@ L$049ctr32_prepare:
|
||||
bswap ecx
|
||||
lea edi,[16+edi]
|
||||
cmp edi,ebx
|
||||
jb NEAR L$049ctr32_prepare
|
||||
jb NEAR L$051ctr32_prepare
|
||||
mov DWORD [edx-4],ecx
|
||||
lea esi,[esp]
|
||||
lea edi,[esp]
|
||||
@@ -787,33 +796,33 @@ db 243,15,167,200
|
||||
mov ebx,DWORD [12+ebp]
|
||||
mov esi,DWORD [4+ebp]
|
||||
xor ecx,ecx
|
||||
L$050ctr32_xor:
|
||||
L$052ctr32_xor:
|
||||
movups xmm1,[ecx*1+esi]
|
||||
lea ecx,[16+ecx]
|
||||
pxor xmm1,[ecx*1+esp-16]
|
||||
movups [ecx*1+edi-16],xmm1
|
||||
cmp ecx,ebx
|
||||
jb NEAR L$050ctr32_xor
|
||||
jb NEAR L$052ctr32_xor
|
||||
mov ecx,DWORD [8+ebp]
|
||||
add edi,ebx
|
||||
add esi,ebx
|
||||
sub ecx,ebx
|
||||
mov ebx,512
|
||||
jnz NEAR L$048ctr32_loop
|
||||
jnz NEAR L$050ctr32_loop
|
||||
pxor xmm0,xmm0
|
||||
lea eax,[esp]
|
||||
L$051ctr32_bzero:
|
||||
L$053ctr32_bzero:
|
||||
movaps [eax],xmm0
|
||||
lea eax,[16+eax]
|
||||
cmp ebp,eax
|
||||
ja NEAR L$051ctr32_bzero
|
||||
L$052ctr32_done:
|
||||
ja NEAR L$053ctr32_bzero
|
||||
L$054ctr32_done:
|
||||
mov ebp,DWORD [16+ebp]
|
||||
lea esp,[24+ebp]
|
||||
mov eax,1
|
||||
lea esp,[4+esp]
|
||||
emms
|
||||
L$046ctr32_abort:
|
||||
L$048ctr32_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
@@ -835,10 +844,10 @@ __win32_segv_handler:
|
||||
mov edx,DWORD [4+esp]
|
||||
mov ecx,DWORD [12+esp]
|
||||
cmp DWORD [edx],3221225477
|
||||
jne NEAR L$053ret
|
||||
jne NEAR L$055ret
|
||||
add DWORD [184+ecx],4
|
||||
mov eax,0
|
||||
L$053ret:
|
||||
L$055ret:
|
||||
ret
|
||||
%if __NASM_VERSION_ID__ >= 0x02030000
|
||||
safeseh __win32_segv_handler
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -37,6 +39,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_THREADS
|
||||
# define OPENSSL_THREADS
|
||||
#endif
|
||||
#ifndef OPENSSL_RAND_SEED_OS
|
||||
# define OPENSSL_RAND_SEED_OS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -49,12 +54,18 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DEVCRYPTOENG
|
||||
# define OPENSSL_NO_DEVCRYPTOENG
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
# define OPENSSL_NO_EC_NISTP_64_GCC_128
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EGD
|
||||
# define OPENSSL_NO_EGD
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EXTERNAL_TESTS
|
||||
# define OPENSSL_NO_EXTERNAL_TESTS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_FUZZ_AFL
|
||||
# define OPENSSL_NO_FUZZ_AFL
|
||||
#endif
|
||||
@@ -88,6 +99,9 @@ extern "C" {
|
||||
#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
# define OPENSSL_NO_WEAK_SSL_CIPHERS
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
|
||||
# define OPENSSL_NO_DYNAMIC_ENGINE
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_AFALGENG
|
||||
# define OPENSSL_NO_AFALGENG
|
||||
#endif
|
||||
@@ -106,15 +120,11 @@ extern "C" {
|
||||
* functions.
|
||||
*/
|
||||
#ifndef DECLARE_DEPRECATED
|
||||
# if defined(OPENSSL_NO_DEPRECATED)
|
||||
# define DECLARE_DEPRECATED(f)
|
||||
# else
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# define DECLARE_DEPRECATED(f) f;
|
||||
# ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
|
||||
# undef DECLARE_DEPRECATED
|
||||
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
@@ -138,6 +148,18 @@ extern "C" {
|
||||
# define OPENSSL_API_COMPAT OPENSSL_MIN_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do not deprecate things to be deprecated in version 1.2.0 before the
|
||||
* OpenSSL version number matches.
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) f;
|
||||
#elif OPENSSL_API_COMPAT < 0x10200000L
|
||||
# define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
# define DEPRECATEDIN_1_2_0(f)
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
|
||||
#else
|
||||
@@ -156,8 +178,6 @@ extern "C" {
|
||||
# define DEPRECATEDIN_0_9_8(f)
|
||||
#endif
|
||||
|
||||
#define OPENSSL_CPUID_OBJ
|
||||
|
||||
/* Generate 80386 code? */
|
||||
#undef I386_ONLY
|
||||
|
||||
|
||||
+266
-177
@@ -2,7 +2,7 @@
|
||||
* WARNING: do not edit!
|
||||
* Generated by apps/progs.pl
|
||||
*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -39,7 +39,6 @@ extern int ecparam_main(int argc, char *argv[]);
|
||||
extern int enc_main(int argc, char *argv[]);
|
||||
extern int engine_main(int argc, char *argv[]);
|
||||
extern int errstr_main(int argc, char *argv[]);
|
||||
extern int exit_main(int argc, char *argv[]);
|
||||
extern int gendsa_main(int argc, char *argv[]);
|
||||
extern int genpkey_main(int argc, char *argv[]);
|
||||
extern int genrsa_main(int argc, char *argv[]);
|
||||
@@ -68,351 +67,441 @@ extern int smime_main(int argc, char *argv[]);
|
||||
extern int speed_main(int argc, char *argv[]);
|
||||
extern int spkac_main(int argc, char *argv[]);
|
||||
extern int srp_main(int argc, char *argv[]);
|
||||
extern int storeutl_main(int argc, char *argv[]);
|
||||
extern int ts_main(int argc, char *argv[]);
|
||||
extern int verify_main(int argc, char *argv[]);
|
||||
extern int version_main(int argc, char *argv[]);
|
||||
extern int x509_main(int argc, char *argv[]);
|
||||
|
||||
extern OPTIONS asn1parse_options[];
|
||||
extern OPTIONS ca_options[];
|
||||
extern OPTIONS ciphers_options[];
|
||||
extern OPTIONS cms_options[];
|
||||
extern OPTIONS crl_options[];
|
||||
extern OPTIONS crl2pkcs7_options[];
|
||||
extern OPTIONS dgst_options[];
|
||||
extern OPTIONS dhparam_options[];
|
||||
extern OPTIONS dsa_options[];
|
||||
extern OPTIONS dsaparam_options[];
|
||||
extern OPTIONS ec_options[];
|
||||
extern OPTIONS ecparam_options[];
|
||||
extern OPTIONS enc_options[];
|
||||
extern OPTIONS engine_options[];
|
||||
extern OPTIONS errstr_options[];
|
||||
extern OPTIONS exit_options[];
|
||||
extern OPTIONS gendsa_options[];
|
||||
extern OPTIONS genpkey_options[];
|
||||
extern OPTIONS genrsa_options[];
|
||||
extern OPTIONS help_options[];
|
||||
extern OPTIONS list_options[];
|
||||
extern OPTIONS nseq_options[];
|
||||
extern OPTIONS ocsp_options[];
|
||||
extern OPTIONS passwd_options[];
|
||||
extern OPTIONS pkcs12_options[];
|
||||
extern OPTIONS pkcs7_options[];
|
||||
extern OPTIONS pkcs8_options[];
|
||||
extern OPTIONS pkey_options[];
|
||||
extern OPTIONS pkeyparam_options[];
|
||||
extern OPTIONS pkeyutl_options[];
|
||||
extern OPTIONS prime_options[];
|
||||
extern OPTIONS rand_options[];
|
||||
extern OPTIONS rehash_options[];
|
||||
extern OPTIONS req_options[];
|
||||
extern OPTIONS rsa_options[];
|
||||
extern OPTIONS rsautl_options[];
|
||||
extern OPTIONS s_client_options[];
|
||||
extern OPTIONS s_server_options[];
|
||||
extern OPTIONS s_time_options[];
|
||||
extern OPTIONS sess_id_options[];
|
||||
extern OPTIONS smime_options[];
|
||||
extern OPTIONS speed_options[];
|
||||
extern OPTIONS spkac_options[];
|
||||
extern OPTIONS srp_options[];
|
||||
extern OPTIONS ts_options[];
|
||||
extern OPTIONS verify_options[];
|
||||
extern OPTIONS version_options[];
|
||||
extern OPTIONS x509_options[];
|
||||
extern const OPTIONS asn1parse_options[];
|
||||
extern const OPTIONS ca_options[];
|
||||
extern const OPTIONS ciphers_options[];
|
||||
extern const OPTIONS cms_options[];
|
||||
extern const OPTIONS crl_options[];
|
||||
extern const OPTIONS crl2pkcs7_options[];
|
||||
extern const OPTIONS dgst_options[];
|
||||
extern const OPTIONS dhparam_options[];
|
||||
extern const OPTIONS dsa_options[];
|
||||
extern const OPTIONS dsaparam_options[];
|
||||
extern const OPTIONS ec_options[];
|
||||
extern const OPTIONS ecparam_options[];
|
||||
extern const OPTIONS enc_options[];
|
||||
extern const OPTIONS engine_options[];
|
||||
extern const OPTIONS errstr_options[];
|
||||
extern const OPTIONS gendsa_options[];
|
||||
extern const OPTIONS genpkey_options[];
|
||||
extern const OPTIONS genrsa_options[];
|
||||
extern const OPTIONS help_options[];
|
||||
extern const OPTIONS list_options[];
|
||||
extern const OPTIONS nseq_options[];
|
||||
extern const OPTIONS ocsp_options[];
|
||||
extern const OPTIONS passwd_options[];
|
||||
extern const OPTIONS pkcs12_options[];
|
||||
extern const OPTIONS pkcs7_options[];
|
||||
extern const OPTIONS pkcs8_options[];
|
||||
extern const OPTIONS pkey_options[];
|
||||
extern const OPTIONS pkeyparam_options[];
|
||||
extern const OPTIONS pkeyutl_options[];
|
||||
extern const OPTIONS prime_options[];
|
||||
extern const OPTIONS rand_options[];
|
||||
extern const OPTIONS rehash_options[];
|
||||
extern const OPTIONS req_options[];
|
||||
extern const OPTIONS rsa_options[];
|
||||
extern const OPTIONS rsautl_options[];
|
||||
extern const OPTIONS s_client_options[];
|
||||
extern const OPTIONS s_server_options[];
|
||||
extern const OPTIONS s_time_options[];
|
||||
extern const OPTIONS sess_id_options[];
|
||||
extern const OPTIONS smime_options[];
|
||||
extern const OPTIONS speed_options[];
|
||||
extern const OPTIONS spkac_options[];
|
||||
extern const OPTIONS srp_options[];
|
||||
extern const OPTIONS storeutl_options[];
|
||||
extern const OPTIONS ts_options[];
|
||||
extern const OPTIONS verify_options[];
|
||||
extern const OPTIONS version_options[];
|
||||
extern const OPTIONS x509_options[];
|
||||
|
||||
#ifdef INCLUDE_FUNCTION_TABLE
|
||||
static FUNCTION functions[] = {
|
||||
{ FT_general, "asn1parse", asn1parse_main, asn1parse_options },
|
||||
{ FT_general, "ca", ca_main, ca_options },
|
||||
{FT_general, "asn1parse", asn1parse_main, asn1parse_options},
|
||||
{FT_general, "ca", ca_main, ca_options},
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "ciphers", ciphers_main, ciphers_options },
|
||||
{FT_general, "ciphers", ciphers_main, ciphers_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CMS
|
||||
{ FT_general, "cms", cms_main, cms_options },
|
||||
{FT_general, "cms", cms_main, cms_options},
|
||||
#endif
|
||||
{ FT_general, "crl", crl_main, crl_options },
|
||||
{ FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options },
|
||||
{ FT_general, "dgst", dgst_main, dgst_options },
|
||||
{FT_general, "crl", crl_main, crl_options},
|
||||
{FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options},
|
||||
{FT_general, "dgst", dgst_main, dgst_options},
|
||||
#ifndef OPENSSL_NO_DH
|
||||
{ FT_general, "dhparam", dhparam_main, dhparam_options },
|
||||
{FT_general, "dhparam", dhparam_main, dhparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsa", dsa_main, dsa_options },
|
||||
{FT_general, "dsa", dsa_main, dsa_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "dsaparam", dsaparam_main, dsaparam_options },
|
||||
{FT_general, "dsaparam", dsaparam_main, dsaparam_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ec", ec_main, ec_options },
|
||||
{FT_general, "ec", ec_main, ec_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
{ FT_general, "ecparam", ecparam_main, ecparam_options },
|
||||
{FT_general, "ecparam", ecparam_main, ecparam_options},
|
||||
#endif
|
||||
{ FT_general, "enc", enc_main, enc_options },
|
||||
{FT_general, "enc", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ENGINE
|
||||
{ FT_general, "engine", engine_main, engine_options },
|
||||
{FT_general, "engine", engine_main, engine_options},
|
||||
#endif
|
||||
{ FT_general, "errstr", errstr_main, errstr_options },
|
||||
{ FT_general, "exit", exit_main, exit_options },
|
||||
{FT_general, "errstr", errstr_main, errstr_options},
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
{ FT_general, "gendsa", gendsa_main, gendsa_options },
|
||||
{FT_general, "gendsa", gendsa_main, gendsa_options},
|
||||
#endif
|
||||
{ FT_general, "genpkey", genpkey_main, genpkey_options },
|
||||
{FT_general, "genpkey", genpkey_main, genpkey_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "genrsa", genrsa_main, genrsa_options },
|
||||
{FT_general, "genrsa", genrsa_main, genrsa_options},
|
||||
#endif
|
||||
{ FT_general, "help", help_main, help_options },
|
||||
{ FT_general, "list", list_main, list_options },
|
||||
{ FT_general, "nseq", nseq_main, nseq_options },
|
||||
{FT_general, "help", help_main, help_options},
|
||||
{FT_general, "list", list_main, list_options},
|
||||
{FT_general, "nseq", nseq_main, nseq_options},
|
||||
#ifndef OPENSSL_NO_OCSP
|
||||
{ FT_general, "ocsp", ocsp_main, ocsp_options },
|
||||
{FT_general, "ocsp", ocsp_main, ocsp_options},
|
||||
#endif
|
||||
{ FT_general, "passwd", passwd_main, passwd_options },
|
||||
{FT_general, "passwd", passwd_main, passwd_options},
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_general, "pkcs12", pkcs12_main, pkcs12_options },
|
||||
{FT_general, "pkcs12", pkcs12_main, pkcs12_options},
|
||||
#endif
|
||||
{ FT_general, "pkcs7", pkcs7_main, pkcs7_options },
|
||||
{ FT_general, "pkcs8", pkcs8_main, pkcs8_options },
|
||||
{ FT_general, "pkey", pkey_main, pkey_options },
|
||||
{ FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options },
|
||||
{ FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options },
|
||||
{ FT_general, "prime", prime_main, prime_options },
|
||||
{ FT_general, "rand", rand_main, rand_options },
|
||||
{ FT_general, "rehash", rehash_main, rehash_options },
|
||||
{ FT_general, "req", req_main, req_options },
|
||||
{ FT_general, "rsa", rsa_main, rsa_options },
|
||||
{FT_general, "pkcs7", pkcs7_main, pkcs7_options},
|
||||
{FT_general, "pkcs8", pkcs8_main, pkcs8_options},
|
||||
{FT_general, "pkey", pkey_main, pkey_options},
|
||||
{FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options},
|
||||
{FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options},
|
||||
{FT_general, "prime", prime_main, prime_options},
|
||||
{FT_general, "rand", rand_main, rand_options},
|
||||
{FT_general, "rehash", rehash_main, rehash_options},
|
||||
{FT_general, "req", req_main, req_options},
|
||||
{FT_general, "rsa", rsa_main, rsa_options},
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
{ FT_general, "rsautl", rsautl_main, rsautl_options },
|
||||
{FT_general, "rsautl", rsautl_main, rsautl_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_client", s_client_main, s_client_options },
|
||||
{FT_general, "s_client", s_client_main, s_client_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_server", s_server_main, s_server_options },
|
||||
{FT_general, "s_server", s_server_main, s_server_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
{ FT_general, "s_time", s_time_main, s_time_options },
|
||||
{FT_general, "s_time", s_time_main, s_time_options},
|
||||
#endif
|
||||
{ FT_general, "sess_id", sess_id_main, sess_id_options },
|
||||
{ FT_general, "smime", smime_main, smime_options },
|
||||
{ FT_general, "speed", speed_main, speed_options },
|
||||
{ FT_general, "spkac", spkac_main, spkac_options },
|
||||
{FT_general, "sess_id", sess_id_main, sess_id_options},
|
||||
{FT_general, "smime", smime_main, smime_options},
|
||||
{FT_general, "speed", speed_main, speed_options},
|
||||
{FT_general, "spkac", spkac_main, spkac_options},
|
||||
#ifndef OPENSSL_NO_SRP
|
||||
{ FT_general, "srp", srp_main, srp_options },
|
||||
{FT_general, "srp", srp_main, srp_options},
|
||||
#endif
|
||||
{FT_general, "storeutl", storeutl_main, storeutl_options},
|
||||
#ifndef OPENSSL_NO_TS
|
||||
{ FT_general, "ts", ts_main, ts_options },
|
||||
{FT_general, "ts", ts_main, ts_options},
|
||||
#endif
|
||||
{ FT_general, "verify", verify_main, verify_options },
|
||||
{ FT_general, "version", version_main, version_options },
|
||||
{ FT_general, "x509", x509_main, x509_options },
|
||||
{FT_general, "verify", verify_main, verify_options},
|
||||
{FT_general, "version", version_main, version_options},
|
||||
{FT_general, "x509", x509_main, x509_options},
|
||||
#ifndef OPENSSL_NO_MD2
|
||||
{ FT_md, "md2", dgst_main},
|
||||
{FT_md, "md2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_MD4
|
||||
{ FT_md, "md4", dgst_main},
|
||||
{FT_md, "md4", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "md5", dgst_main},
|
||||
{FT_md, "md5", dgst_main},
|
||||
#ifndef OPENSSL_NO_GOST
|
||||
{ FT_md, "gost", dgst_main},
|
||||
{FT_md, "gost", dgst_main},
|
||||
#endif
|
||||
{ FT_md, "sha1", dgst_main},
|
||||
{ FT_md, "sha224", dgst_main},
|
||||
{ FT_md, "sha256", dgst_main},
|
||||
{ FT_md, "sha384", dgst_main},
|
||||
{ FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha1", dgst_main},
|
||||
{FT_md, "sha224", dgst_main},
|
||||
{FT_md, "sha256", dgst_main},
|
||||
{FT_md, "sha384", dgst_main},
|
||||
{FT_md, "sha512", dgst_main},
|
||||
{FT_md, "sha512-224", dgst_main},
|
||||
{FT_md, "sha512-256", dgst_main},
|
||||
{FT_md, "sha3-224", dgst_main},
|
||||
{FT_md, "sha3-256", dgst_main},
|
||||
{FT_md, "sha3-384", dgst_main},
|
||||
{FT_md, "sha3-512", dgst_main},
|
||||
{FT_md, "shake128", dgst_main},
|
||||
{FT_md, "shake256", dgst_main},
|
||||
#ifndef OPENSSL_NO_MDC2
|
||||
{ FT_md, "mdc2", dgst_main},
|
||||
{FT_md, "mdc2", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RMD160
|
||||
{ FT_md, "rmd160", dgst_main},
|
||||
{FT_md, "rmd160", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2b512", dgst_main},
|
||||
{FT_md, "blake2b512", dgst_main},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BLAKE2
|
||||
{ FT_md, "blake2s256", dgst_main},
|
||||
{FT_md, "blake2s256", dgst_main},
|
||||
#endif
|
||||
{ FT_cipher, "aes-128-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-128-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-192-ecb", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-cbc", enc_main, enc_options },
|
||||
{ FT_cipher, "aes-256-ecb", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-cbc", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_SM3
|
||||
{FT_md, "sm3", dgst_main},
|
||||
#endif
|
||||
{FT_cipher, "aes-128-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-128-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-192-ecb", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-cbc", enc_main, enc_options},
|
||||
{FT_cipher, "aes-256-ecb", enc_main, enc_options},
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-128-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-192-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb1", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ARIA
|
||||
{FT_cipher, "aria-256-cfb8", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-128-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-128-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-192-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-192-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{ FT_cipher, "camellia-256-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "camellia-256-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
{ FT_cipher, "base64", enc_main, enc_options },
|
||||
#ifndef OPENSSL_NO_CAMELLIA
|
||||
{FT_cipher, "camellia-256-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
{FT_cipher, "base64", enc_main, enc_options},
|
||||
#ifdef ZLIB
|
||||
{ FT_cipher, "zlib", enc_main, enc_options },
|
||||
{FT_cipher, "zlib", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des", enc_main, enc_options },
|
||||
{FT_cipher, "des", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des3", enc_main, enc_options },
|
||||
{FT_cipher, "des3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "desx", enc_main, enc_options },
|
||||
{FT_cipher, "desx", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea", enc_main, enc_options },
|
||||
{FT_cipher, "idea", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed", enc_main, enc_options },
|
||||
{FT_cipher, "seed", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4", enc_main, enc_options },
|
||||
{FT_cipher, "rc4", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC4
|
||||
{ FT_cipher, "rc4-40", enc_main, enc_options },
|
||||
{FT_cipher, "rc4-40", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2", enc_main, enc_options },
|
||||
{FT_cipher, "rc2", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf", enc_main, enc_options },
|
||||
{FT_cipher, "bf", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast", enc_main, enc_options },
|
||||
{FT_cipher, "cast", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5", enc_main, enc_options },
|
||||
{FT_cipher, "rc5", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DES
|
||||
{ FT_cipher, "des-ede3-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "des-ede3-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_IDEA
|
||||
{ FT_cipher, "idea-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "idea-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SEED
|
||||
{ FT_cipher, "seed-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "seed-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-64-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-64-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC2
|
||||
{ FT_cipher, "rc2-40-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc2-40-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_BF
|
||||
{ FT_cipher, "bf-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "bf-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "cast5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_CAST
|
||||
{ FT_cipher, "cast-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "cast-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cbc", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ecb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-cfb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RC5
|
||||
{ FT_cipher, "rc5-ofb", enc_main, enc_options },
|
||||
{FT_cipher, "rc5-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
{ 0, NULL, NULL}
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cbc", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ecb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-cfb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ofb", enc_main, enc_options},
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SM4
|
||||
{FT_cipher, "sm4-ctr", enc_main, enc_options},
|
||||
#endif
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
#endif
|
||||
+19
-10
@@ -1,11 +1,15 @@
|
||||
{
|
||||
'variables': {
|
||||
'openssl_defines_VC-WIN32': [
|
||||
'DSO_WIN32',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'OPENSSL_SYS_WIN32',
|
||||
'WIN32_LEAN_AND_MEAN',
|
||||
'UNICODE',
|
||||
'_UNICODE',
|
||||
'_CRT_SECURE_NO_DEPRECATE',
|
||||
'_WINSOCK_DEPRECATED_NO_WARNINGS',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_BN_ASM_PART_WORDS',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
@@ -25,14 +29,15 @@
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_VC-WIN32': [
|
||||
'-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DUNICODE -D_UNICODE /O2',
|
||||
'-Wa,--noexecstack',
|
||||
'/W3 /wd4090 /nologo /O2 /WX',
|
||||
'/Gs0 /GF /Gy',
|
||||
'/W3 /wd4090 /nologo /O2 /WX',
|
||||
],
|
||||
'openssl_ex_libs_VC-WIN32': [
|
||||
'ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib',
|
||||
],
|
||||
'openssl_cli_srcs_VC-WIN32': [
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/asn1pars.c',
|
||||
'openssl/apps/ca.c',
|
||||
'openssl/apps/ciphers.c',
|
||||
@@ -54,7 +59,6 @@
|
||||
'openssl/apps/nseq.c',
|
||||
'openssl/apps/ocsp.c',
|
||||
'openssl/apps/openssl.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/passwd.c',
|
||||
'openssl/apps/pkcs12.c',
|
||||
'openssl/apps/pkcs7.c',
|
||||
@@ -68,21 +72,26 @@
|
||||
'openssl/apps/req.c',
|
||||
'openssl/apps/rsa.c',
|
||||
'openssl/apps/rsautl.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_client.c',
|
||||
'openssl/apps/s_server.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
'openssl/apps/s_time.c',
|
||||
'openssl/apps/sess_id.c',
|
||||
'openssl/apps/smime.c',
|
||||
'openssl/apps/speed.c',
|
||||
'openssl/apps/spkac.c',
|
||||
'openssl/apps/srp.c',
|
||||
'openssl/apps/storeutl.c',
|
||||
'openssl/apps/ts.c',
|
||||
'openssl/apps/verify.c',
|
||||
'openssl/apps/version.c',
|
||||
'openssl/apps/win32_init.c',
|
||||
'openssl/apps/x509.c',
|
||||
'openssl/apps/app_rand.c',
|
||||
'openssl/apps/apps.c',
|
||||
'openssl/apps/bf_prefix.c',
|
||||
'openssl/apps/opt.c',
|
||||
'openssl/apps/s_cb.c',
|
||||
'openssl/apps/s_socket.c',
|
||||
'openssl/apps/win32_init.c',
|
||||
],
|
||||
},
|
||||
'defines': ['<@(openssl_defines_VC-WIN32)'],
|
||||
|
||||
+57
-12
@@ -6,12 +6,14 @@
|
||||
'openssl/ssl/d1_msg.c',
|
||||
'openssl/ssl/d1_srtp.c',
|
||||
'openssl/ssl/methods.c',
|
||||
'openssl/ssl/packet.c',
|
||||
'openssl/ssl/pqueue.c',
|
||||
'openssl/ssl/record/dtls1_bitmap.c',
|
||||
'openssl/ssl/record/rec_layer_d1.c',
|
||||
'openssl/ssl/record/rec_layer_s3.c',
|
||||
'openssl/ssl/record/ssl3_buffer.c',
|
||||
'openssl/ssl/record/ssl3_record.c',
|
||||
'openssl/ssl/record/ssl3_record_tls13.c',
|
||||
'openssl/ssl/s3_cbc.c',
|
||||
'openssl/ssl/s3_enc.c',
|
||||
'openssl/ssl/s3_lib.c',
|
||||
@@ -29,16 +31,19 @@
|
||||
'openssl/ssl/ssl_stat.c',
|
||||
'openssl/ssl/ssl_txt.c',
|
||||
'openssl/ssl/ssl_utst.c',
|
||||
'openssl/ssl/statem/extensions.c',
|
||||
'openssl/ssl/statem/extensions_clnt.c',
|
||||
'openssl/ssl/statem/extensions_cust.c',
|
||||
'openssl/ssl/statem/extensions_srvr.c',
|
||||
'openssl/ssl/statem/statem.c',
|
||||
'openssl/ssl/statem/statem_clnt.c',
|
||||
'openssl/ssl/statem/statem_dtls.c',
|
||||
'openssl/ssl/statem/statem_lib.c',
|
||||
'openssl/ssl/statem/statem_srvr.c',
|
||||
'openssl/ssl/t1_enc.c',
|
||||
'openssl/ssl/t1_ext.c',
|
||||
'openssl/ssl/t1_lib.c',
|
||||
'openssl/ssl/t1_reneg.c',
|
||||
'openssl/ssl/t1_trce.c',
|
||||
'openssl/ssl/tls13_enc.c',
|
||||
'openssl/ssl/tls_srp.c',
|
||||
'openssl/crypto/aes/aes_cfb.c',
|
||||
'openssl/crypto/aes/aes_ecb.c',
|
||||
@@ -46,6 +51,7 @@
|
||||
'openssl/crypto/aes/aes_misc.c',
|
||||
'openssl/crypto/aes/aes_ofb.c',
|
||||
'openssl/crypto/aes/aes_wrap.c',
|
||||
'openssl/crypto/aria/aria.c',
|
||||
'openssl/crypto/asn1/a_bitstr.c',
|
||||
'openssl/crypto/asn1/a_d2i_fp.c',
|
||||
'openssl/crypto/asn1/a_digest.c',
|
||||
@@ -68,6 +74,7 @@
|
||||
'openssl/crypto/asn1/ameth_lib.c',
|
||||
'openssl/crypto/asn1/asn1_err.c',
|
||||
'openssl/crypto/asn1/asn1_gen.c',
|
||||
'openssl/crypto/asn1/asn1_item_list.c',
|
||||
'openssl/crypto/asn1/asn1_lib.c',
|
||||
'openssl/crypto/asn1/asn1_par.c',
|
||||
'openssl/crypto/asn1/asn_mime.c',
|
||||
@@ -224,6 +231,7 @@
|
||||
'openssl/crypto/ct/ct_sct_ctx.c',
|
||||
'openssl/crypto/ct/ct_vfy.c',
|
||||
'openssl/crypto/ct/ct_x509v3.c',
|
||||
'openssl/crypto/ctype.c',
|
||||
'openssl/crypto/cversion.c',
|
||||
'openssl/crypto/des/cbc_cksm.c',
|
||||
'openssl/crypto/des/cbc_enc.c',
|
||||
@@ -239,7 +247,6 @@
|
||||
'openssl/crypto/des/pcbc_enc.c',
|
||||
'openssl/crypto/des/qud_cksm.c',
|
||||
'openssl/crypto/des/rand_key.c',
|
||||
'openssl/crypto/des/rpc_enc.c',
|
||||
'openssl/crypto/des/set_key.c',
|
||||
'openssl/crypto/des/str2key.c',
|
||||
'openssl/crypto/des/xcbc_enc.c',
|
||||
@@ -256,6 +263,7 @@
|
||||
'openssl/crypto/dh/dh_pmeth.c',
|
||||
'openssl/crypto/dh/dh_prn.c',
|
||||
'openssl/crypto/dh/dh_rfc5114.c',
|
||||
'openssl/crypto/dh/dh_rfc7919.c',
|
||||
'openssl/crypto/dsa/dsa_ameth.c',
|
||||
'openssl/crypto/dsa/dsa_asn1.c',
|
||||
'openssl/crypto/dsa/dsa_depr.c',
|
||||
@@ -278,7 +286,12 @@
|
||||
'openssl/crypto/dso/dso_win32.c',
|
||||
'openssl/crypto/ebcdic.c',
|
||||
'openssl/crypto/ec/curve25519.c',
|
||||
'openssl/crypto/ec/ec2_mult.c',
|
||||
'openssl/crypto/ec/curve448/arch_32/f_impl.c',
|
||||
'openssl/crypto/ec/curve448/curve448.c',
|
||||
'openssl/crypto/ec/curve448/curve448_tables.c',
|
||||
'openssl/crypto/ec/curve448/eddsa.c',
|
||||
'openssl/crypto/ec/curve448/f_generic.c',
|
||||
'openssl/crypto/ec/curve448/scalar.c',
|
||||
'openssl/crypto/ec/ec2_oct.c',
|
||||
'openssl/crypto/ec/ec2_smpl.c',
|
||||
'openssl/crypto/ec/ec_ameth.c',
|
||||
@@ -312,7 +325,6 @@
|
||||
'openssl/crypto/ec/ecx_meth.c',
|
||||
'openssl/crypto/engine/eng_all.c',
|
||||
'openssl/crypto/engine/eng_cnf.c',
|
||||
'openssl/crypto/engine/eng_cryptodev.c',
|
||||
'openssl/crypto/engine/eng_ctrl.c',
|
||||
'openssl/crypto/engine/eng_dyn.c',
|
||||
'openssl/crypto/engine/eng_err.c',
|
||||
@@ -347,6 +359,7 @@
|
||||
'openssl/crypto/evp/e_aes.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha1.c',
|
||||
'openssl/crypto/evp/e_aes_cbc_hmac_sha256.c',
|
||||
'openssl/crypto/evp/e_aria.c',
|
||||
'openssl/crypto/evp/e_bf.c',
|
||||
'openssl/crypto/evp/e_camellia.c',
|
||||
'openssl/crypto/evp/e_cast.c',
|
||||
@@ -361,6 +374,7 @@
|
||||
'openssl/crypto/evp/e_rc4_hmac_md5.c',
|
||||
'openssl/crypto/evp/e_rc5.c',
|
||||
'openssl/crypto/evp/e_seed.c',
|
||||
'openssl/crypto/evp/e_sm4.c',
|
||||
'openssl/crypto/evp/e_xcbc_d.c',
|
||||
'openssl/crypto/evp/encode.c',
|
||||
'openssl/crypto/evp/evp_cnf.c',
|
||||
@@ -378,6 +392,7 @@
|
||||
'openssl/crypto/evp/m_null.c',
|
||||
'openssl/crypto/evp/m_ripemd.c',
|
||||
'openssl/crypto/evp/m_sha1.c',
|
||||
'openssl/crypto/evp/m_sha3.c',
|
||||
'openssl/crypto/evp/m_sigver.c',
|
||||
'openssl/crypto/evp/m_wp.c',
|
||||
'openssl/crypto/evp/names.c',
|
||||
@@ -390,10 +405,10 @@
|
||||
'openssl/crypto/evp/p_seal.c',
|
||||
'openssl/crypto/evp/p_sign.c',
|
||||
'openssl/crypto/evp/p_verify.c',
|
||||
'openssl/crypto/evp/pbe_scrypt.c',
|
||||
'openssl/crypto/evp/pmeth_fn.c',
|
||||
'openssl/crypto/evp/pmeth_gn.c',
|
||||
'openssl/crypto/evp/pmeth_lib.c',
|
||||
'openssl/crypto/evp/scrypt.c',
|
||||
'openssl/crypto/ex_data.c',
|
||||
'openssl/crypto/getenv.c',
|
||||
'openssl/crypto/hmac/hm_ameth.c',
|
||||
@@ -407,6 +422,7 @@
|
||||
'openssl/crypto/init.c',
|
||||
'openssl/crypto/kdf/hkdf.c',
|
||||
'openssl/crypto/kdf/kdf_err.c',
|
||||
'openssl/crypto/kdf/scrypt.c',
|
||||
'openssl/crypto/kdf/tls1_prf.c',
|
||||
'openssl/crypto/lhash/lh_stats.c',
|
||||
'openssl/crypto/lhash/lhash.c',
|
||||
@@ -486,7 +502,10 @@
|
||||
'openssl/crypto/pkcs7/pk7_smime.c',
|
||||
'openssl/crypto/pkcs7/pkcs7err.c',
|
||||
'openssl/crypto/poly1305/poly1305.c',
|
||||
'openssl/crypto/rand/md_rand.c',
|
||||
'openssl/crypto/poly1305/poly1305_ameth.c',
|
||||
'openssl/crypto/poly1305/poly1305_pmeth.c',
|
||||
'openssl/crypto/rand/drbg_ctr.c',
|
||||
'openssl/crypto/rand/drbg_lib.c',
|
||||
'openssl/crypto/rand/rand_egd.c',
|
||||
'openssl/crypto/rand/rand_err.c',
|
||||
'openssl/crypto/rand/rand_lib.c',
|
||||
@@ -510,8 +529,8 @@
|
||||
'openssl/crypto/rsa/rsa_gen.c',
|
||||
'openssl/crypto/rsa/rsa_lib.c',
|
||||
'openssl/crypto/rsa/rsa_meth.c',
|
||||
'openssl/crypto/rsa/rsa_mp.c',
|
||||
'openssl/crypto/rsa/rsa_none.c',
|
||||
'openssl/crypto/rsa/rsa_null.c',
|
||||
'openssl/crypto/rsa/rsa_oaep.c',
|
||||
'openssl/crypto/rsa/rsa_ossl.c',
|
||||
'openssl/crypto/rsa/rsa_pk1.c',
|
||||
@@ -528,13 +547,30 @@
|
||||
'openssl/crypto/seed/seed_cfb.c',
|
||||
'openssl/crypto/seed/seed_ecb.c',
|
||||
'openssl/crypto/seed/seed_ofb.c',
|
||||
'openssl/crypto/sha/keccak1600.c',
|
||||
'openssl/crypto/sha/sha1_one.c',
|
||||
'openssl/crypto/sha/sha1dgst.c',
|
||||
'openssl/crypto/sha/sha256.c',
|
||||
'openssl/crypto/sha/sha512.c',
|
||||
'openssl/crypto/siphash/siphash.c',
|
||||
'openssl/crypto/siphash/siphash_ameth.c',
|
||||
'openssl/crypto/siphash/siphash_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_crypt.c',
|
||||
'openssl/crypto/sm2/sm2_err.c',
|
||||
'openssl/crypto/sm2/sm2_pmeth.c',
|
||||
'openssl/crypto/sm2/sm2_sign.c',
|
||||
'openssl/crypto/sm3/m_sm3.c',
|
||||
'openssl/crypto/sm3/sm3.c',
|
||||
'openssl/crypto/sm4/sm4.c',
|
||||
'openssl/crypto/srp/srp_lib.c',
|
||||
'openssl/crypto/srp/srp_vfy.c',
|
||||
'openssl/crypto/stack/stack.c',
|
||||
'openssl/crypto/store/loader_file.c',
|
||||
'openssl/crypto/store/store_err.c',
|
||||
'openssl/crypto/store/store_init.c',
|
||||
'openssl/crypto/store/store_lib.c',
|
||||
'openssl/crypto/store/store_register.c',
|
||||
'openssl/crypto/store/store_strings.c',
|
||||
'openssl/crypto/threads_none.c',
|
||||
'openssl/crypto/threads_pthread.c',
|
||||
'openssl/crypto/threads_win.c',
|
||||
@@ -552,6 +588,7 @@
|
||||
'openssl/crypto/txt_db/txt_db.c',
|
||||
'openssl/crypto/ui/ui_err.c',
|
||||
'openssl/crypto/ui/ui_lib.c',
|
||||
'openssl/crypto/ui/ui_null.c',
|
||||
'openssl/crypto/ui/ui_openssl.c',
|
||||
'openssl/crypto/ui/ui_util.c',
|
||||
'openssl/crypto/uid.c',
|
||||
@@ -600,6 +637,7 @@
|
||||
'openssl/crypto/x509v3/pcy_node.c',
|
||||
'openssl/crypto/x509v3/pcy_tree.c',
|
||||
'openssl/crypto/x509v3/v3_addr.c',
|
||||
'openssl/crypto/x509v3/v3_admis.c',
|
||||
'openssl/crypto/x509v3/v3_akey.c',
|
||||
'openssl/crypto/x509v3/v3_akeya.c',
|
||||
'openssl/crypto/x509v3/v3_alt.c',
|
||||
@@ -659,11 +697,15 @@
|
||||
'./config/archs/VC-WIN32/asm/engines/e_padlock-x86.asm',
|
||||
],
|
||||
'openssl_defines_VC-WIN32': [
|
||||
'DSO_WIN32',
|
||||
'NDEBUG',
|
||||
'OPENSSL_THREADS',
|
||||
'OPENSSL_NO_DYNAMIC_ENGINE',
|
||||
'OPENSSL_SYS_WIN32',
|
||||
'WIN32_LEAN_AND_MEAN',
|
||||
'UNICODE',
|
||||
'_UNICODE',
|
||||
'_CRT_SECURE_NO_DEPRECATE',
|
||||
'_WINSOCK_DEPRECATED_NO_WARNINGS',
|
||||
'OPENSSL_PIC',
|
||||
'OPENSSL_CPUID_OBJ',
|
||||
'OPENSSL_BN_ASM_PART_WORDS',
|
||||
'OPENSSL_IA32_SSE2',
|
||||
'OPENSSL_BN_ASM_MONT',
|
||||
@@ -683,7 +725,10 @@
|
||||
'POLY1305_ASM',
|
||||
],
|
||||
'openssl_cflags_VC-WIN32': [
|
||||
'-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DUNICODE -D_UNICODE /O2',
|
||||
'-Wa,--noexecstack',
|
||||
'/W3 /wd4090 /nologo /O2 /WX',
|
||||
'/Gs0 /GF /Gy',
|
||||
'/W3 /wd4090 /nologo /O2 /WX',
|
||||
],
|
||||
'openssl_ex_libs_VC-WIN32': [
|
||||
'ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib',
|
||||
|
||||
+16051
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,641 @@
|
||||
%ifidn __OUTPUT_FORMAT__,obj
|
||||
section code use32 class=code align=64
|
||||
%elifidn __OUTPUT_FORMAT__,win32
|
||||
$@feat.00 equ 1
|
||||
section .text code align=64
|
||||
%else
|
||||
section .text code
|
||||
%endif
|
||||
align 64
|
||||
L$_vpaes_consts:
|
||||
dd 218628480,235210255,168496130,67568393
|
||||
dd 252381056,17041926,33884169,51187212
|
||||
dd 252645135,252645135,252645135,252645135
|
||||
dd 1512730624,3266504856,1377990664,3401244816
|
||||
dd 830229760,1275146365,2969422977,3447763452
|
||||
dd 3411033600,2979783055,338359620,2782886510
|
||||
dd 4209124096,907596821,221174255,1006095553
|
||||
dd 191964160,3799684038,3164090317,1589111125
|
||||
dd 182528256,1777043520,2877432650,3265356744
|
||||
dd 1874708224,3503451415,3305285752,363511674
|
||||
dd 1606117888,3487855781,1093350906,2384367825
|
||||
dd 197121,67569157,134941193,202313229
|
||||
dd 67569157,134941193,202313229,197121
|
||||
dd 134941193,202313229,197121,67569157
|
||||
dd 202313229,197121,67569157,134941193
|
||||
dd 33619971,100992007,168364043,235736079
|
||||
dd 235736079,33619971,100992007,168364043
|
||||
dd 168364043,235736079,33619971,100992007
|
||||
dd 100992007,168364043,235736079,33619971
|
||||
dd 50462976,117835012,185207048,252579084
|
||||
dd 252314880,51251460,117574920,184942860
|
||||
dd 184682752,252054788,50987272,118359308
|
||||
dd 118099200,185467140,251790600,50727180
|
||||
dd 2946363062,528716217,1300004225,1881839624
|
||||
dd 1532713819,1532713819,1532713819,1532713819
|
||||
dd 3602276352,4288629033,3737020424,4153884961
|
||||
dd 1354558464,32357713,2958822624,3775749553
|
||||
dd 1201988352,132424512,1572796698,503232858
|
||||
dd 2213177600,1597421020,4103937655,675398315
|
||||
dd 2749646592,4273543773,1511898873,121693092
|
||||
dd 3040248576,1103263732,2871565598,1608280554
|
||||
dd 2236667136,2588920351,482954393,64377734
|
||||
dd 3069987328,291237287,2117370568,3650299247
|
||||
dd 533321216,3573750986,2572112006,1401264716
|
||||
dd 1339849704,2721158661,548607111,3445553514
|
||||
dd 2128193280,3054596040,2183486460,1257083700
|
||||
dd 655635200,1165381986,3923443150,2344132524
|
||||
dd 190078720,256924420,290342170,357187870
|
||||
dd 1610966272,2263057382,4103205268,309794674
|
||||
dd 2592527872,2233205587,1335446729,3402964816
|
||||
dd 3973531904,3225098121,3002836325,1918774430
|
||||
dd 3870401024,2102906079,2284471353,4117666579
|
||||
dd 617007872,1021508343,366931923,691083277
|
||||
dd 2528395776,3491914898,2968704004,1613121270
|
||||
dd 3445188352,3247741094,844474987,4093578302
|
||||
dd 651481088,1190302358,1689581232,574775300
|
||||
dd 4289380608,206939853,2555985458,2489840491
|
||||
dd 2130264064,327674451,3566485037,3349835193
|
||||
dd 2470714624,316102159,3636825756,3393945945
|
||||
db 86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105
|
||||
db 111,110,32,65,69,83,32,102,111,114,32,120,56,54,47,83
|
||||
db 83,83,69,51,44,32,77,105,107,101,32,72,97,109,98,117
|
||||
db 114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105
|
||||
db 118,101,114,115,105,116,121,41,0
|
||||
align 64
|
||||
align 16
|
||||
__vpaes_preheat:
|
||||
add ebp,DWORD [esp]
|
||||
movdqa xmm7,[ebp-48]
|
||||
movdqa xmm6,[ebp-16]
|
||||
ret
|
||||
align 16
|
||||
__vpaes_encrypt_core:
|
||||
mov ecx,16
|
||||
mov eax,DWORD [240+edx]
|
||||
movdqa xmm1,xmm6
|
||||
movdqa xmm2,[ebp]
|
||||
pandn xmm1,xmm0
|
||||
pand xmm0,xmm6
|
||||
movdqu xmm5,[edx]
|
||||
db 102,15,56,0,208
|
||||
movdqa xmm0,[16+ebp]
|
||||
pxor xmm2,xmm5
|
||||
psrld xmm1,4
|
||||
add edx,16
|
||||
db 102,15,56,0,193
|
||||
lea ebx,[192+ebp]
|
||||
pxor xmm0,xmm2
|
||||
jmp NEAR L$000enc_entry
|
||||
align 16
|
||||
L$001enc_loop:
|
||||
movdqa xmm4,[32+ebp]
|
||||
movdqa xmm0,[48+ebp]
|
||||
db 102,15,56,0,226
|
||||
db 102,15,56,0,195
|
||||
pxor xmm4,xmm5
|
||||
movdqa xmm5,[64+ebp]
|
||||
pxor xmm0,xmm4
|
||||
movdqa xmm1,[ecx*1+ebx-64]
|
||||
db 102,15,56,0,234
|
||||
movdqa xmm2,[80+ebp]
|
||||
movdqa xmm4,[ecx*1+ebx]
|
||||
db 102,15,56,0,211
|
||||
movdqa xmm3,xmm0
|
||||
pxor xmm2,xmm5
|
||||
db 102,15,56,0,193
|
||||
add edx,16
|
||||
pxor xmm0,xmm2
|
||||
db 102,15,56,0,220
|
||||
add ecx,16
|
||||
pxor xmm3,xmm0
|
||||
db 102,15,56,0,193
|
||||
and ecx,48
|
||||
sub eax,1
|
||||
pxor xmm0,xmm3
|
||||
L$000enc_entry:
|
||||
movdqa xmm1,xmm6
|
||||
movdqa xmm5,[ebp-32]
|
||||
pandn xmm1,xmm0
|
||||
psrld xmm1,4
|
||||
pand xmm0,xmm6
|
||||
db 102,15,56,0,232
|
||||
movdqa xmm3,xmm7
|
||||
pxor xmm0,xmm1
|
||||
db 102,15,56,0,217
|
||||
movdqa xmm4,xmm7
|
||||
pxor xmm3,xmm5
|
||||
db 102,15,56,0,224
|
||||
movdqa xmm2,xmm7
|
||||
pxor xmm4,xmm5
|
||||
db 102,15,56,0,211
|
||||
movdqa xmm3,xmm7
|
||||
pxor xmm2,xmm0
|
||||
db 102,15,56,0,220
|
||||
movdqu xmm5,[edx]
|
||||
pxor xmm3,xmm1
|
||||
jnz NEAR L$001enc_loop
|
||||
movdqa xmm4,[96+ebp]
|
||||
movdqa xmm0,[112+ebp]
|
||||
db 102,15,56,0,226
|
||||
pxor xmm4,xmm5
|
||||
db 102,15,56,0,195
|
||||
movdqa xmm1,[64+ecx*1+ebx]
|
||||
pxor xmm0,xmm4
|
||||
db 102,15,56,0,193
|
||||
ret
|
||||
align 16
|
||||
__vpaes_decrypt_core:
|
||||
lea ebx,[608+ebp]
|
||||
mov eax,DWORD [240+edx]
|
||||
movdqa xmm1,xmm6
|
||||
movdqa xmm2,[ebx-64]
|
||||
pandn xmm1,xmm0
|
||||
mov ecx,eax
|
||||
psrld xmm1,4
|
||||
movdqu xmm5,[edx]
|
||||
shl ecx,4
|
||||
pand xmm0,xmm6
|
||||
db 102,15,56,0,208
|
||||
movdqa xmm0,[ebx-48]
|
||||
xor ecx,48
|
||||
db 102,15,56,0,193
|
||||
and ecx,48
|
||||
pxor xmm2,xmm5
|
||||
movdqa xmm5,[176+ebp]
|
||||
pxor xmm0,xmm2
|
||||
add edx,16
|
||||
lea ecx,[ecx*1+ebx-352]
|
||||
jmp NEAR L$002dec_entry
|
||||
align 16
|
||||
L$003dec_loop:
|
||||
movdqa xmm4,[ebx-32]
|
||||
movdqa xmm1,[ebx-16]
|
||||
db 102,15,56,0,226
|
||||
db 102,15,56,0,203
|
||||
pxor xmm0,xmm4
|
||||
movdqa xmm4,[ebx]
|
||||
pxor xmm0,xmm1
|
||||
movdqa xmm1,[16+ebx]
|
||||
db 102,15,56,0,226
|
||||
db 102,15,56,0,197
|
||||
db 102,15,56,0,203
|
||||
pxor xmm0,xmm4
|
||||
movdqa xmm4,[32+ebx]
|
||||
pxor xmm0,xmm1
|
||||
movdqa xmm1,[48+ebx]
|
||||
db 102,15,56,0,226
|
||||
db 102,15,56,0,197
|
||||
db 102,15,56,0,203
|
||||
pxor xmm0,xmm4
|
||||
movdqa xmm4,[64+ebx]
|
||||
pxor xmm0,xmm1
|
||||
movdqa xmm1,[80+ebx]
|
||||
db 102,15,56,0,226
|
||||
db 102,15,56,0,197
|
||||
db 102,15,56,0,203
|
||||
pxor xmm0,xmm4
|
||||
add edx,16
|
||||
db 102,15,58,15,237,12
|
||||
pxor xmm0,xmm1
|
||||
sub eax,1
|
||||
L$002dec_entry:
|
||||
movdqa xmm1,xmm6
|
||||
movdqa xmm2,[ebp-32]
|
||||
pandn xmm1,xmm0
|
||||
pand xmm0,xmm6
|
||||
psrld xmm1,4
|
||||
db 102,15,56,0,208
|
||||
movdqa xmm3,xmm7
|
||||
pxor xmm0,xmm1
|
||||
db 102,15,56,0,217
|
||||
movdqa xmm4,xmm7
|
||||
pxor xmm3,xmm2
|
||||
db 102,15,56,0,224
|
||||
pxor xmm4,xmm2
|
||||
movdqa xmm2,xmm7
|
||||
db 102,15,56,0,211
|
||||
movdqa xmm3,xmm7
|
||||
pxor xmm2,xmm0
|
||||
db 102,15,56,0,220
|
||||
movdqu xmm0,[edx]
|
||||
pxor xmm3,xmm1
|
||||
jnz NEAR L$003dec_loop
|
||||
movdqa xmm4,[96+ebx]
|
||||
db 102,15,56,0,226
|
||||
pxor xmm4,xmm0
|
||||
movdqa xmm0,[112+ebx]
|
||||
movdqa xmm2,[ecx]
|
||||
db 102,15,56,0,195
|
||||
pxor xmm0,xmm4
|
||||
db 102,15,56,0,194
|
||||
ret
|
||||
align 16
|
||||
__vpaes_schedule_core:
|
||||
add ebp,DWORD [esp]
|
||||
movdqu xmm0,[esi]
|
||||
movdqa xmm2,[320+ebp]
|
||||
movdqa xmm3,xmm0
|
||||
lea ebx,[ebp]
|
||||
movdqa [4+esp],xmm2
|
||||
call __vpaes_schedule_transform
|
||||
movdqa xmm7,xmm0
|
||||
test edi,edi
|
||||
jnz NEAR L$004schedule_am_decrypting
|
||||
movdqu [edx],xmm0
|
||||
jmp NEAR L$005schedule_go
|
||||
L$004schedule_am_decrypting:
|
||||
movdqa xmm1,[256+ecx*1+ebp]
|
||||
db 102,15,56,0,217
|
||||
movdqu [edx],xmm3
|
||||
xor ecx,48
|
||||
L$005schedule_go:
|
||||
cmp eax,192
|
||||
ja NEAR L$006schedule_256
|
||||
je NEAR L$007schedule_192
|
||||
L$008schedule_128:
|
||||
mov eax,10
|
||||
L$009loop_schedule_128:
|
||||
call __vpaes_schedule_round
|
||||
dec eax
|
||||
jz NEAR L$010schedule_mangle_last
|
||||
call __vpaes_schedule_mangle
|
||||
jmp NEAR L$009loop_schedule_128
|
||||
align 16
|
||||
L$007schedule_192:
|
||||
movdqu xmm0,[8+esi]
|
||||
call __vpaes_schedule_transform
|
||||
movdqa xmm6,xmm0
|
||||
pxor xmm4,xmm4
|
||||
movhlps xmm6,xmm4
|
||||
mov eax,4
|
||||
L$011loop_schedule_192:
|
||||
call __vpaes_schedule_round
|
||||
db 102,15,58,15,198,8
|
||||
call __vpaes_schedule_mangle
|
||||
call __vpaes_schedule_192_smear
|
||||
call __vpaes_schedule_mangle
|
||||
call __vpaes_schedule_round
|
||||
dec eax
|
||||
jz NEAR L$010schedule_mangle_last
|
||||
call __vpaes_schedule_mangle
|
||||
call __vpaes_schedule_192_smear
|
||||
jmp NEAR L$011loop_schedule_192
|
||||
align 16
|
||||
L$006schedule_256:
|
||||
movdqu xmm0,[16+esi]
|
||||
call __vpaes_schedule_transform
|
||||
mov eax,7
|
||||
L$012loop_schedule_256:
|
||||
call __vpaes_schedule_mangle
|
||||
movdqa xmm6,xmm0
|
||||
call __vpaes_schedule_round
|
||||
dec eax
|
||||
jz NEAR L$010schedule_mangle_last
|
||||
call __vpaes_schedule_mangle
|
||||
pshufd xmm0,xmm0,255
|
||||
movdqa [20+esp],xmm7
|
||||
movdqa xmm7,xmm6
|
||||
call L$_vpaes_schedule_low_round
|
||||
movdqa xmm7,[20+esp]
|
||||
jmp NEAR L$012loop_schedule_256
|
||||
align 16
|
||||
L$010schedule_mangle_last:
|
||||
lea ebx,[384+ebp]
|
||||
test edi,edi
|
||||
jnz NEAR L$013schedule_mangle_last_dec
|
||||
movdqa xmm1,[256+ecx*1+ebp]
|
||||
db 102,15,56,0,193
|
||||
lea ebx,[352+ebp]
|
||||
add edx,32
|
||||
L$013schedule_mangle_last_dec:
|
||||
add edx,-16
|
||||
pxor xmm0,[336+ebp]
|
||||
call __vpaes_schedule_transform
|
||||
movdqu [edx],xmm0
|
||||
pxor xmm0,xmm0
|
||||
pxor xmm1,xmm1
|
||||
pxor xmm2,xmm2
|
||||
pxor xmm3,xmm3
|
||||
pxor xmm4,xmm4
|
||||
pxor xmm5,xmm5
|
||||
pxor xmm6,xmm6
|
||||
pxor xmm7,xmm7
|
||||
ret
|
||||
align 16
|
||||
__vpaes_schedule_192_smear:
|
||||
pshufd xmm1,xmm6,128
|
||||
pshufd xmm0,xmm7,254
|
||||
pxor xmm6,xmm1
|
||||
pxor xmm1,xmm1
|
||||
pxor xmm6,xmm0
|
||||
movdqa xmm0,xmm6
|
||||
movhlps xmm6,xmm1
|
||||
ret
|
||||
align 16
|
||||
__vpaes_schedule_round:
|
||||
movdqa xmm2,[8+esp]
|
||||
pxor xmm1,xmm1
|
||||
db 102,15,58,15,202,15
|
||||
db 102,15,58,15,210,15
|
||||
pxor xmm7,xmm1
|
||||
pshufd xmm0,xmm0,255
|
||||
db 102,15,58,15,192,1
|
||||
movdqa [8+esp],xmm2
|
||||
L$_vpaes_schedule_low_round:
|
||||
movdqa xmm1,xmm7
|
||||
pslldq xmm7,4
|
||||
pxor xmm7,xmm1
|
||||
movdqa xmm1,xmm7
|
||||
pslldq xmm7,8
|
||||
pxor xmm7,xmm1
|
||||
pxor xmm7,[336+ebp]
|
||||
movdqa xmm4,[ebp-16]
|
||||
movdqa xmm5,[ebp-48]
|
||||
movdqa xmm1,xmm4
|
||||
pandn xmm1,xmm0
|
||||
psrld xmm1,4
|
||||
pand xmm0,xmm4
|
||||
movdqa xmm2,[ebp-32]
|
||||
db 102,15,56,0,208
|
||||
pxor xmm0,xmm1
|
||||
movdqa xmm3,xmm5
|
||||
db 102,15,56,0,217
|
||||
pxor xmm3,xmm2
|
||||
movdqa xmm4,xmm5
|
||||
db 102,15,56,0,224
|
||||
pxor xmm4,xmm2
|
||||
movdqa xmm2,xmm5
|
||||
db 102,15,56,0,211
|
||||
pxor xmm2,xmm0
|
||||
movdqa xmm3,xmm5
|
||||
db 102,15,56,0,220
|
||||
pxor xmm3,xmm1
|
||||
movdqa xmm4,[32+ebp]
|
||||
db 102,15,56,0,226
|
||||
movdqa xmm0,[48+ebp]
|
||||
db 102,15,56,0,195
|
||||
pxor xmm0,xmm4
|
||||
pxor xmm0,xmm7
|
||||
movdqa xmm7,xmm0
|
||||
ret
|
||||
align 16
|
||||
__vpaes_schedule_transform:
|
||||
movdqa xmm2,[ebp-16]
|
||||
movdqa xmm1,xmm2
|
||||
pandn xmm1,xmm0
|
||||
psrld xmm1,4
|
||||
pand xmm0,xmm2
|
||||
movdqa xmm2,[ebx]
|
||||
db 102,15,56,0,208
|
||||
movdqa xmm0,[16+ebx]
|
||||
db 102,15,56,0,193
|
||||
pxor xmm0,xmm2
|
||||
ret
|
||||
align 16
|
||||
__vpaes_schedule_mangle:
|
||||
movdqa xmm4,xmm0
|
||||
movdqa xmm5,[128+ebp]
|
||||
test edi,edi
|
||||
jnz NEAR L$014schedule_mangle_dec
|
||||
add edx,16
|
||||
pxor xmm4,[336+ebp]
|
||||
db 102,15,56,0,229
|
||||
movdqa xmm3,xmm4
|
||||
db 102,15,56,0,229
|
||||
pxor xmm3,xmm4
|
||||
db 102,15,56,0,229
|
||||
pxor xmm3,xmm4
|
||||
jmp NEAR L$015schedule_mangle_both
|
||||
align 16
|
||||
L$014schedule_mangle_dec:
|
||||
movdqa xmm2,[ebp-16]
|
||||
lea esi,[416+ebp]
|
||||
movdqa xmm1,xmm2
|
||||
pandn xmm1,xmm4
|
||||
psrld xmm1,4
|
||||
pand xmm4,xmm2
|
||||
movdqa xmm2,[esi]
|
||||
db 102,15,56,0,212
|
||||
movdqa xmm3,[16+esi]
|
||||
db 102,15,56,0,217
|
||||
pxor xmm3,xmm2
|
||||
db 102,15,56,0,221
|
||||
movdqa xmm2,[32+esi]
|
||||
db 102,15,56,0,212
|
||||
pxor xmm2,xmm3
|
||||
movdqa xmm3,[48+esi]
|
||||
db 102,15,56,0,217
|
||||
pxor xmm3,xmm2
|
||||
db 102,15,56,0,221
|
||||
movdqa xmm2,[64+esi]
|
||||
db 102,15,56,0,212
|
||||
pxor xmm2,xmm3
|
||||
movdqa xmm3,[80+esi]
|
||||
db 102,15,56,0,217
|
||||
pxor xmm3,xmm2
|
||||
db 102,15,56,0,221
|
||||
movdqa xmm2,[96+esi]
|
||||
db 102,15,56,0,212
|
||||
pxor xmm2,xmm3
|
||||
movdqa xmm3,[112+esi]
|
||||
db 102,15,56,0,217
|
||||
pxor xmm3,xmm2
|
||||
add edx,-16
|
||||
L$015schedule_mangle_both:
|
||||
movdqa xmm1,[256+ecx*1+ebp]
|
||||
db 102,15,56,0,217
|
||||
add ecx,-16
|
||||
and ecx,48
|
||||
movdqu [edx],xmm3
|
||||
ret
|
||||
global _vpaes_set_encrypt_key
|
||||
align 16
|
||||
_vpaes_set_encrypt_key:
|
||||
L$_vpaes_set_encrypt_key_begin:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
mov esi,DWORD [20+esp]
|
||||
lea ebx,[esp-56]
|
||||
mov eax,DWORD [24+esp]
|
||||
and ebx,-16
|
||||
mov edx,DWORD [28+esp]
|
||||
xchg ebx,esp
|
||||
mov DWORD [48+esp],ebx
|
||||
mov ebx,eax
|
||||
shr ebx,5
|
||||
add ebx,5
|
||||
mov DWORD [240+edx],ebx
|
||||
mov ecx,48
|
||||
mov edi,0
|
||||
lea ebp,[(L$_vpaes_consts+0x30-L$016pic_point)]
|
||||
call __vpaes_schedule_core
|
||||
L$016pic_point:
|
||||
mov esp,DWORD [48+esp]
|
||||
xor eax,eax
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _vpaes_set_decrypt_key
|
||||
align 16
|
||||
_vpaes_set_decrypt_key:
|
||||
L$_vpaes_set_decrypt_key_begin:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
mov esi,DWORD [20+esp]
|
||||
lea ebx,[esp-56]
|
||||
mov eax,DWORD [24+esp]
|
||||
and ebx,-16
|
||||
mov edx,DWORD [28+esp]
|
||||
xchg ebx,esp
|
||||
mov DWORD [48+esp],ebx
|
||||
mov ebx,eax
|
||||
shr ebx,5
|
||||
add ebx,5
|
||||
mov DWORD [240+edx],ebx
|
||||
shl ebx,4
|
||||
lea edx,[16+ebx*1+edx]
|
||||
mov edi,1
|
||||
mov ecx,eax
|
||||
shr ecx,1
|
||||
and ecx,32
|
||||
xor ecx,32
|
||||
lea ebp,[(L$_vpaes_consts+0x30-L$017pic_point)]
|
||||
call __vpaes_schedule_core
|
||||
L$017pic_point:
|
||||
mov esp,DWORD [48+esp]
|
||||
xor eax,eax
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _vpaes_encrypt
|
||||
align 16
|
||||
_vpaes_encrypt:
|
||||
L$_vpaes_encrypt_begin:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
lea ebp,[(L$_vpaes_consts+0x30-L$018pic_point)]
|
||||
call __vpaes_preheat
|
||||
L$018pic_point:
|
||||
mov esi,DWORD [20+esp]
|
||||
lea ebx,[esp-56]
|
||||
mov edi,DWORD [24+esp]
|
||||
and ebx,-16
|
||||
mov edx,DWORD [28+esp]
|
||||
xchg ebx,esp
|
||||
mov DWORD [48+esp],ebx
|
||||
movdqu xmm0,[esi]
|
||||
call __vpaes_encrypt_core
|
||||
movdqu [edi],xmm0
|
||||
mov esp,DWORD [48+esp]
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _vpaes_decrypt
|
||||
align 16
|
||||
_vpaes_decrypt:
|
||||
L$_vpaes_decrypt_begin:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
lea ebp,[(L$_vpaes_consts+0x30-L$019pic_point)]
|
||||
call __vpaes_preheat
|
||||
L$019pic_point:
|
||||
mov esi,DWORD [20+esp]
|
||||
lea ebx,[esp-56]
|
||||
mov edi,DWORD [24+esp]
|
||||
and ebx,-16
|
||||
mov edx,DWORD [28+esp]
|
||||
xchg ebx,esp
|
||||
mov DWORD [48+esp],ebx
|
||||
movdqu xmm0,[esi]
|
||||
call __vpaes_decrypt_core
|
||||
movdqu [edi],xmm0
|
||||
mov esp,DWORD [48+esp]
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _vpaes_cbc_encrypt
|
||||
align 16
|
||||
_vpaes_cbc_encrypt:
|
||||
L$_vpaes_cbc_encrypt_begin:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
mov esi,DWORD [20+esp]
|
||||
mov edi,DWORD [24+esp]
|
||||
mov eax,DWORD [28+esp]
|
||||
mov edx,DWORD [32+esp]
|
||||
sub eax,16
|
||||
jc NEAR L$020cbc_abort
|
||||
lea ebx,[esp-56]
|
||||
mov ebp,DWORD [36+esp]
|
||||
and ebx,-16
|
||||
mov ecx,DWORD [40+esp]
|
||||
xchg ebx,esp
|
||||
movdqu xmm1,[ebp]
|
||||
sub edi,esi
|
||||
mov DWORD [48+esp],ebx
|
||||
mov DWORD [esp],edi
|
||||
mov DWORD [4+esp],edx
|
||||
mov DWORD [8+esp],ebp
|
||||
mov edi,eax
|
||||
lea ebp,[(L$_vpaes_consts+0x30-L$021pic_point)]
|
||||
call __vpaes_preheat
|
||||
L$021pic_point:
|
||||
cmp ecx,0
|
||||
je NEAR L$022cbc_dec_loop
|
||||
jmp NEAR L$023cbc_enc_loop
|
||||
align 16
|
||||
L$023cbc_enc_loop:
|
||||
movdqu xmm0,[esi]
|
||||
pxor xmm0,xmm1
|
||||
call __vpaes_encrypt_core
|
||||
mov ebx,DWORD [esp]
|
||||
mov edx,DWORD [4+esp]
|
||||
movdqa xmm1,xmm0
|
||||
movdqu [esi*1+ebx],xmm0
|
||||
lea esi,[16+esi]
|
||||
sub edi,16
|
||||
jnc NEAR L$023cbc_enc_loop
|
||||
jmp NEAR L$024cbc_done
|
||||
align 16
|
||||
L$022cbc_dec_loop:
|
||||
movdqu xmm0,[esi]
|
||||
movdqa [16+esp],xmm1
|
||||
movdqa [32+esp],xmm0
|
||||
call __vpaes_decrypt_core
|
||||
mov ebx,DWORD [esp]
|
||||
mov edx,DWORD [4+esp]
|
||||
pxor xmm0,[16+esp]
|
||||
movdqa xmm1,[32+esp]
|
||||
movdqu [esi*1+ebx],xmm0
|
||||
lea esi,[16+esi]
|
||||
sub edi,16
|
||||
jnc NEAR L$022cbc_dec_loop
|
||||
L$024cbc_done:
|
||||
mov ebx,DWORD [8+esp]
|
||||
mov esp,DWORD [48+esp]
|
||||
movdqu [ebx],xmm1
|
||||
L$020cbc_abort:
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
@@ -0,0 +1,896 @@
|
||||
%ifidn __OUTPUT_FORMAT__,obj
|
||||
section code use32 class=code align=64
|
||||
%elifidn __OUTPUT_FORMAT__,win32
|
||||
$@feat.00 equ 1
|
||||
section .text code align=64
|
||||
%else
|
||||
section .text code
|
||||
%endif
|
||||
global _BF_encrypt
|
||||
align 16
|
||||
_BF_encrypt:
|
||||
L$_BF_encrypt_begin:
|
||||
;
|
||||
push ebp
|
||||
push ebx
|
||||
mov ebx,DWORD [12+esp]
|
||||
mov ebp,DWORD [16+esp]
|
||||
push esi
|
||||
push edi
|
||||
; Load the 2 words
|
||||
mov edi,DWORD [ebx]
|
||||
mov esi,DWORD [4+ebx]
|
||||
xor eax,eax
|
||||
mov ebx,DWORD [ebp]
|
||||
xor ecx,ecx
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 0
|
||||
mov edx,DWORD [4+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 1
|
||||
mov edx,DWORD [8+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 2
|
||||
mov edx,DWORD [12+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 3
|
||||
mov edx,DWORD [16+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 4
|
||||
mov edx,DWORD [20+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 5
|
||||
mov edx,DWORD [24+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 6
|
||||
mov edx,DWORD [28+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 7
|
||||
mov edx,DWORD [32+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 8
|
||||
mov edx,DWORD [36+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 9
|
||||
mov edx,DWORD [40+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 10
|
||||
mov edx,DWORD [44+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 11
|
||||
mov edx,DWORD [48+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 12
|
||||
mov edx,DWORD [52+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 13
|
||||
mov edx,DWORD [56+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 14
|
||||
mov edx,DWORD [60+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 15
|
||||
mov edx,DWORD [64+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
; Load parameter 0 (16) enc=1
|
||||
mov eax,DWORD [20+esp]
|
||||
xor edi,ebx
|
||||
mov edx,DWORD [68+ebp]
|
||||
xor esi,edx
|
||||
mov DWORD [4+eax],edi
|
||||
mov DWORD [eax],esi
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _BF_decrypt
|
||||
align 16
|
||||
_BF_decrypt:
|
||||
L$_BF_decrypt_begin:
|
||||
;
|
||||
push ebp
|
||||
push ebx
|
||||
mov ebx,DWORD [12+esp]
|
||||
mov ebp,DWORD [16+esp]
|
||||
push esi
|
||||
push edi
|
||||
; Load the 2 words
|
||||
mov edi,DWORD [ebx]
|
||||
mov esi,DWORD [4+ebx]
|
||||
xor eax,eax
|
||||
mov ebx,DWORD [68+ebp]
|
||||
xor ecx,ecx
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 16
|
||||
mov edx,DWORD [64+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 15
|
||||
mov edx,DWORD [60+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 14
|
||||
mov edx,DWORD [56+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 13
|
||||
mov edx,DWORD [52+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 12
|
||||
mov edx,DWORD [48+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 11
|
||||
mov edx,DWORD [44+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 10
|
||||
mov edx,DWORD [40+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 9
|
||||
mov edx,DWORD [36+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 8
|
||||
mov edx,DWORD [32+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 7
|
||||
mov edx,DWORD [28+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 6
|
||||
mov edx,DWORD [24+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 5
|
||||
mov edx,DWORD [20+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 4
|
||||
mov edx,DWORD [16+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 3
|
||||
mov edx,DWORD [12+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor edi,ebx
|
||||
;
|
||||
; Round 2
|
||||
mov edx,DWORD [8+ebp]
|
||||
mov ebx,edi
|
||||
xor esi,edx
|
||||
shr ebx,16
|
||||
mov edx,edi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
xor eax,eax
|
||||
xor esi,ebx
|
||||
;
|
||||
; Round 1
|
||||
mov edx,DWORD [4+ebp]
|
||||
mov ebx,esi
|
||||
xor edi,edx
|
||||
shr ebx,16
|
||||
mov edx,esi
|
||||
mov al,bh
|
||||
and ebx,255
|
||||
mov cl,dh
|
||||
and edx,255
|
||||
mov eax,DWORD [72+eax*4+ebp]
|
||||
mov ebx,DWORD [1096+ebx*4+ebp]
|
||||
add ebx,eax
|
||||
mov eax,DWORD [2120+ecx*4+ebp]
|
||||
xor ebx,eax
|
||||
mov edx,DWORD [3144+edx*4+ebp]
|
||||
add ebx,edx
|
||||
; Load parameter 0 (1) enc=0
|
||||
mov eax,DWORD [20+esp]
|
||||
xor edi,ebx
|
||||
mov edx,DWORD [ebp]
|
||||
xor esi,edx
|
||||
mov DWORD [4+eax],edi
|
||||
mov DWORD [eax],esi
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
global _BF_cbc_encrypt
|
||||
align 16
|
||||
_BF_cbc_encrypt:
|
||||
L$_BF_cbc_encrypt_begin:
|
||||
;
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
mov ebp,DWORD [28+esp]
|
||||
; getting iv ptr from parameter 4
|
||||
mov ebx,DWORD [36+esp]
|
||||
mov esi,DWORD [ebx]
|
||||
mov edi,DWORD [4+ebx]
|
||||
push edi
|
||||
push esi
|
||||
push edi
|
||||
push esi
|
||||
mov ebx,esp
|
||||
mov esi,DWORD [36+esp]
|
||||
mov edi,DWORD [40+esp]
|
||||
; getting encrypt flag from parameter 5
|
||||
mov ecx,DWORD [56+esp]
|
||||
; get and push parameter 3
|
||||
mov eax,DWORD [48+esp]
|
||||
push eax
|
||||
push ebx
|
||||
cmp ecx,0
|
||||
jz NEAR L$000decrypt
|
||||
and ebp,4294967288
|
||||
mov eax,DWORD [8+esp]
|
||||
mov ebx,DWORD [12+esp]
|
||||
jz NEAR L$001encrypt_finish
|
||||
L$002encrypt_loop:
|
||||
mov ecx,DWORD [esi]
|
||||
mov edx,DWORD [4+esi]
|
||||
xor eax,ecx
|
||||
xor ebx,edx
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [8+esp],eax
|
||||
mov DWORD [12+esp],ebx
|
||||
call L$_BF_encrypt_begin
|
||||
mov eax,DWORD [8+esp]
|
||||
mov ebx,DWORD [12+esp]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [edi],eax
|
||||
mov DWORD [4+edi],ebx
|
||||
add esi,8
|
||||
add edi,8
|
||||
sub ebp,8
|
||||
jnz NEAR L$002encrypt_loop
|
||||
L$001encrypt_finish:
|
||||
mov ebp,DWORD [52+esp]
|
||||
and ebp,7
|
||||
jz NEAR L$003finish
|
||||
call L$004PIC_point
|
||||
L$004PIC_point:
|
||||
pop edx
|
||||
lea ecx,[(L$005cbc_enc_jmp_table-L$004PIC_point)+edx]
|
||||
mov ebp,DWORD [ebp*4+ecx]
|
||||
add ebp,edx
|
||||
xor ecx,ecx
|
||||
xor edx,edx
|
||||
jmp ebp
|
||||
L$006ej7:
|
||||
mov dh,BYTE [6+esi]
|
||||
shl edx,8
|
||||
L$007ej6:
|
||||
mov dh,BYTE [5+esi]
|
||||
L$008ej5:
|
||||
mov dl,BYTE [4+esi]
|
||||
L$009ej4:
|
||||
mov ecx,DWORD [esi]
|
||||
jmp NEAR L$010ejend
|
||||
L$011ej3:
|
||||
mov ch,BYTE [2+esi]
|
||||
shl ecx,8
|
||||
L$012ej2:
|
||||
mov ch,BYTE [1+esi]
|
||||
L$013ej1:
|
||||
mov cl,BYTE [esi]
|
||||
L$010ejend:
|
||||
xor eax,ecx
|
||||
xor ebx,edx
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [8+esp],eax
|
||||
mov DWORD [12+esp],ebx
|
||||
call L$_BF_encrypt_begin
|
||||
mov eax,DWORD [8+esp]
|
||||
mov ebx,DWORD [12+esp]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [edi],eax
|
||||
mov DWORD [4+edi],ebx
|
||||
jmp NEAR L$003finish
|
||||
L$000decrypt:
|
||||
and ebp,4294967288
|
||||
mov eax,DWORD [16+esp]
|
||||
mov ebx,DWORD [20+esp]
|
||||
jz NEAR L$014decrypt_finish
|
||||
L$015decrypt_loop:
|
||||
mov eax,DWORD [esi]
|
||||
mov ebx,DWORD [4+esi]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [8+esp],eax
|
||||
mov DWORD [12+esp],ebx
|
||||
call L$_BF_decrypt_begin
|
||||
mov eax,DWORD [8+esp]
|
||||
mov ebx,DWORD [12+esp]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov ecx,DWORD [16+esp]
|
||||
mov edx,DWORD [20+esp]
|
||||
xor ecx,eax
|
||||
xor edx,ebx
|
||||
mov eax,DWORD [esi]
|
||||
mov ebx,DWORD [4+esi]
|
||||
mov DWORD [edi],ecx
|
||||
mov DWORD [4+edi],edx
|
||||
mov DWORD [16+esp],eax
|
||||
mov DWORD [20+esp],ebx
|
||||
add esi,8
|
||||
add edi,8
|
||||
sub ebp,8
|
||||
jnz NEAR L$015decrypt_loop
|
||||
L$014decrypt_finish:
|
||||
mov ebp,DWORD [52+esp]
|
||||
and ebp,7
|
||||
jz NEAR L$003finish
|
||||
mov eax,DWORD [esi]
|
||||
mov ebx,DWORD [4+esi]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov DWORD [8+esp],eax
|
||||
mov DWORD [12+esp],ebx
|
||||
call L$_BF_decrypt_begin
|
||||
mov eax,DWORD [8+esp]
|
||||
mov ebx,DWORD [12+esp]
|
||||
bswap eax
|
||||
bswap ebx
|
||||
mov ecx,DWORD [16+esp]
|
||||
mov edx,DWORD [20+esp]
|
||||
xor ecx,eax
|
||||
xor edx,ebx
|
||||
mov eax,DWORD [esi]
|
||||
mov ebx,DWORD [4+esi]
|
||||
L$016dj7:
|
||||
ror edx,16
|
||||
mov BYTE [6+edi],dl
|
||||
shr edx,16
|
||||
L$017dj6:
|
||||
mov BYTE [5+edi],dh
|
||||
L$018dj5:
|
||||
mov BYTE [4+edi],dl
|
||||
L$019dj4:
|
||||
mov DWORD [edi],ecx
|
||||
jmp NEAR L$020djend
|
||||
L$021dj3:
|
||||
ror ecx,16
|
||||
mov BYTE [2+edi],cl
|
||||
shl ecx,16
|
||||
L$022dj2:
|
||||
mov BYTE [1+esi],ch
|
||||
L$023dj1:
|
||||
mov BYTE [esi],cl
|
||||
L$020djend:
|
||||
jmp NEAR L$003finish
|
||||
L$003finish:
|
||||
mov ecx,DWORD [60+esp]
|
||||
add esp,24
|
||||
mov DWORD [ecx],eax
|
||||
mov DWORD [4+ecx],ebx
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop ebp
|
||||
ret
|
||||
align 64
|
||||
L$005cbc_enc_jmp_table:
|
||||
dd 0
|
||||
dd L$013ej1-L$004PIC_point
|
||||
dd L$012ej2-L$004PIC_point
|
||||
dd L$011ej3-L$004PIC_point
|
||||
dd L$009ej4-L$004PIC_point
|
||||
dd L$008ej5-L$004PIC_point
|
||||
dd L$007ej6-L$004PIC_point
|
||||
dd L$006ej7-L$004PIC_point
|
||||
align 64
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,345 @@
|
||||
%ifidn __OUTPUT_FORMAT__,obj
|
||||
section code use32 class=code align=64
|
||||
%elifidn __OUTPUT_FORMAT__,win32
|
||||
$@feat.00 equ 1
|
||||
section .text code align=64
|
||||
%else
|
||||
section .text code
|
||||
%endif
|
||||
;extern _OPENSSL_ia32cap_P
|
||||
align 16
|
||||
__mul_1x1_mmx:
|
||||
sub esp,36
|
||||
mov ecx,eax
|
||||
lea edx,[eax*1+eax]
|
||||
and ecx,1073741823
|
||||
lea ebp,[edx*1+edx]
|
||||
mov DWORD [esp],0
|
||||
and edx,2147483647
|
||||
movd mm2,eax
|
||||
movd mm3,ebx
|
||||
mov DWORD [4+esp],ecx
|
||||
xor ecx,edx
|
||||
pxor mm5,mm5
|
||||
pxor mm4,mm4
|
||||
mov DWORD [8+esp],edx
|
||||
xor edx,ebp
|
||||
mov DWORD [12+esp],ecx
|
||||
pcmpgtd mm5,mm2
|
||||
paddd mm2,mm2
|
||||
xor ecx,edx
|
||||
mov DWORD [16+esp],ebp
|
||||
xor ebp,edx
|
||||
pand mm5,mm3
|
||||
pcmpgtd mm4,mm2
|
||||
mov DWORD [20+esp],ecx
|
||||
xor ebp,ecx
|
||||
psllq mm5,31
|
||||
pand mm4,mm3
|
||||
mov DWORD [24+esp],edx
|
||||
mov esi,7
|
||||
mov DWORD [28+esp],ebp
|
||||
mov ebp,esi
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
mov edi,ebp
|
||||
psllq mm4,30
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
movd mm0,DWORD [esi*4+esp]
|
||||
mov esi,ebp
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
movd mm2,DWORD [edi*4+esp]
|
||||
mov edi,ebp
|
||||
psllq mm2,3
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm2
|
||||
movd mm1,DWORD [esi*4+esp]
|
||||
mov esi,ebp
|
||||
psllq mm1,6
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm1
|
||||
movd mm2,DWORD [edi*4+esp]
|
||||
mov edi,ebp
|
||||
psllq mm2,9
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm2
|
||||
movd mm1,DWORD [esi*4+esp]
|
||||
mov esi,ebp
|
||||
psllq mm1,12
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm1
|
||||
movd mm2,DWORD [edi*4+esp]
|
||||
mov edi,ebp
|
||||
psllq mm2,15
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm2
|
||||
movd mm1,DWORD [esi*4+esp]
|
||||
mov esi,ebp
|
||||
psllq mm1,18
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm1
|
||||
movd mm2,DWORD [edi*4+esp]
|
||||
mov edi,ebp
|
||||
psllq mm2,21
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm2
|
||||
movd mm1,DWORD [esi*4+esp]
|
||||
mov esi,ebp
|
||||
psllq mm1,24
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
pxor mm0,mm1
|
||||
movd mm2,DWORD [edi*4+esp]
|
||||
pxor mm0,mm4
|
||||
psllq mm2,27
|
||||
pxor mm0,mm2
|
||||
movd mm1,DWORD [esi*4+esp]
|
||||
pxor mm0,mm5
|
||||
psllq mm1,30
|
||||
add esp,36
|
||||
pxor mm0,mm1
|
||||
ret
|
||||
align 16
|
||||
__mul_1x1_ialu:
|
||||
sub esp,36
|
||||
mov ecx,eax
|
||||
lea edx,[eax*1+eax]
|
||||
lea ebp,[eax*4]
|
||||
and ecx,1073741823
|
||||
lea edi,[eax*1+eax]
|
||||
sar eax,31
|
||||
mov DWORD [esp],0
|
||||
and edx,2147483647
|
||||
mov DWORD [4+esp],ecx
|
||||
xor ecx,edx
|
||||
mov DWORD [8+esp],edx
|
||||
xor edx,ebp
|
||||
mov DWORD [12+esp],ecx
|
||||
xor ecx,edx
|
||||
mov DWORD [16+esp],ebp
|
||||
xor ebp,edx
|
||||
mov DWORD [20+esp],ecx
|
||||
xor ebp,ecx
|
||||
sar edi,31
|
||||
and eax,ebx
|
||||
mov DWORD [24+esp],edx
|
||||
and edi,ebx
|
||||
mov DWORD [28+esp],ebp
|
||||
mov edx,eax
|
||||
shl eax,31
|
||||
mov ecx,edi
|
||||
shr edx,1
|
||||
mov esi,7
|
||||
shl edi,30
|
||||
and esi,ebx
|
||||
shr ecx,2
|
||||
xor eax,edi
|
||||
shr ebx,3
|
||||
mov edi,7
|
||||
and edi,ebx
|
||||
shr ebx,3
|
||||
xor edx,ecx
|
||||
xor eax,DWORD [esi*4+esp]
|
||||
mov esi,7
|
||||
and esi,ebx
|
||||
shr ebx,3
|
||||
mov ebp,DWORD [edi*4+esp]
|
||||
mov edi,7
|
||||
mov ecx,ebp
|
||||
shl ebp,3
|
||||
and edi,ebx
|
||||
shr ecx,29
|
||||
xor eax,ebp
|
||||
shr ebx,3
|
||||
xor edx,ecx
|
||||
mov ecx,DWORD [esi*4+esp]
|
||||
mov esi,7
|
||||
mov ebp,ecx
|
||||
shl ecx,6
|
||||
and esi,ebx
|
||||
shr ebp,26
|
||||
xor eax,ecx
|
||||
shr ebx,3
|
||||
xor edx,ebp
|
||||
mov ebp,DWORD [edi*4+esp]
|
||||
mov edi,7
|
||||
mov ecx,ebp
|
||||
shl ebp,9
|
||||
and edi,ebx
|
||||
shr ecx,23
|
||||
xor eax,ebp
|
||||
shr ebx,3
|
||||
xor edx,ecx
|
||||
mov ecx,DWORD [esi*4+esp]
|
||||
mov esi,7
|
||||
mov ebp,ecx
|
||||
shl ecx,12
|
||||
and esi,ebx
|
||||
shr ebp,20
|
||||
xor eax,ecx
|
||||
shr ebx,3
|
||||
xor edx,ebp
|
||||
mov ebp,DWORD [edi*4+esp]
|
||||
mov edi,7
|
||||
mov ecx,ebp
|
||||
shl ebp,15
|
||||
and edi,ebx
|
||||
shr ecx,17
|
||||
xor eax,ebp
|
||||
shr ebx,3
|
||||
xor edx,ecx
|
||||
mov ecx,DWORD [esi*4+esp]
|
||||
mov esi,7
|
||||
mov ebp,ecx
|
||||
shl ecx,18
|
||||
and esi,ebx
|
||||
shr ebp,14
|
||||
xor eax,ecx
|
||||
shr ebx,3
|
||||
xor edx,ebp
|
||||
mov ebp,DWORD [edi*4+esp]
|
||||
mov edi,7
|
||||
mov ecx,ebp
|
||||
shl ebp,21
|
||||
and edi,ebx
|
||||
shr ecx,11
|
||||
xor eax,ebp
|
||||
shr ebx,3
|
||||
xor edx,ecx
|
||||
mov ecx,DWORD [esi*4+esp]
|
||||
mov esi,7
|
||||
mov ebp,ecx
|
||||
shl ecx,24
|
||||
and esi,ebx
|
||||
shr ebp,8
|
||||
xor eax,ecx
|
||||
shr ebx,3
|
||||
xor edx,ebp
|
||||
mov ebp,DWORD [edi*4+esp]
|
||||
mov ecx,ebp
|
||||
shl ebp,27
|
||||
mov edi,DWORD [esi*4+esp]
|
||||
shr ecx,5
|
||||
mov esi,edi
|
||||
xor eax,ebp
|
||||
shl edi,30
|
||||
xor edx,ecx
|
||||
shr esi,2
|
||||
xor eax,edi
|
||||
xor edx,esi
|
||||
add esp,36
|
||||
ret
|
||||
global _bn_GF2m_mul_2x2
|
||||
align 16
|
||||
_bn_GF2m_mul_2x2:
|
||||
L$_bn_GF2m_mul_2x2_begin:
|
||||
lea edx,[_OPENSSL_ia32cap_P]
|
||||
mov eax,DWORD [edx]
|
||||
mov edx,DWORD [4+edx]
|
||||
test eax,8388608
|
||||
jz NEAR L$000ialu
|
||||
test eax,16777216
|
||||
jz NEAR L$001mmx
|
||||
test edx,2
|
||||
jz NEAR L$001mmx
|
||||
movups xmm0,[8+esp]
|
||||
shufps xmm0,xmm0,177
|
||||
db 102,15,58,68,192,1
|
||||
mov eax,DWORD [4+esp]
|
||||
movups [eax],xmm0
|
||||
ret
|
||||
align 16
|
||||
L$001mmx:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
mov eax,DWORD [24+esp]
|
||||
mov ebx,DWORD [32+esp]
|
||||
call __mul_1x1_mmx
|
||||
movq mm7,mm0
|
||||
mov eax,DWORD [28+esp]
|
||||
mov ebx,DWORD [36+esp]
|
||||
call __mul_1x1_mmx
|
||||
movq mm6,mm0
|
||||
mov eax,DWORD [24+esp]
|
||||
mov ebx,DWORD [32+esp]
|
||||
xor eax,DWORD [28+esp]
|
||||
xor ebx,DWORD [36+esp]
|
||||
call __mul_1x1_mmx
|
||||
pxor mm0,mm7
|
||||
mov eax,DWORD [20+esp]
|
||||
pxor mm0,mm6
|
||||
movq mm2,mm0
|
||||
psllq mm0,32
|
||||
pop edi
|
||||
psrlq mm2,32
|
||||
pop esi
|
||||
pxor mm0,mm6
|
||||
pop ebx
|
||||
pxor mm2,mm7
|
||||
movq [eax],mm0
|
||||
pop ebp
|
||||
movq [8+eax],mm2
|
||||
emms
|
||||
ret
|
||||
align 16
|
||||
L$000ialu:
|
||||
push ebp
|
||||
push ebx
|
||||
push esi
|
||||
push edi
|
||||
sub esp,20
|
||||
mov eax,DWORD [44+esp]
|
||||
mov ebx,DWORD [52+esp]
|
||||
call __mul_1x1_ialu
|
||||
mov DWORD [8+esp],eax
|
||||
mov DWORD [12+esp],edx
|
||||
mov eax,DWORD [48+esp]
|
||||
mov ebx,DWORD [56+esp]
|
||||
call __mul_1x1_ialu
|
||||
mov DWORD [esp],eax
|
||||
mov DWORD [4+esp],edx
|
||||
mov eax,DWORD [44+esp]
|
||||
mov ebx,DWORD [52+esp]
|
||||
xor eax,DWORD [48+esp]
|
||||
xor ebx,DWORD [56+esp]
|
||||
call __mul_1x1_ialu
|
||||
mov ebp,DWORD [40+esp]
|
||||
mov ebx,DWORD [esp]
|
||||
mov ecx,DWORD [4+esp]
|
||||
mov edi,DWORD [8+esp]
|
||||
mov esi,DWORD [12+esp]
|
||||
xor eax,edx
|
||||
xor edx,ecx
|
||||
xor eax,ebx
|
||||
mov DWORD [ebp],ebx
|
||||
xor edx,edi
|
||||
mov DWORD [12+ebp],esi
|
||||
xor eax,esi
|
||||
add esp,20
|
||||
xor edx,esi
|
||||
pop edi
|
||||
xor eax,edx
|
||||
pop esi
|
||||
mov DWORD [8+ebp],edx
|
||||
pop ebx
|
||||
mov DWORD [4+ebp],eax
|
||||
pop ebp
|
||||
ret
|
||||
db 71,70,40,50,94,109,41,32,77,117,108,116,105,112,108,105
|
||||
db 99,97,116,105,111,110,32,102,111,114,32,120,56,54,44,32
|
||||
db 67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97
|
||||
db 112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103
|
||||
db 62,0
|
||||
segment .bss
|
||||
common _OPENSSL_ia32cap_P 16
|
||||
Loaded 100 of 1192 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user