Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8b5bf52a
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8b5bf52a
编写于
5月 03, 2005
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cvs missed adapted module itself, here it goes...
上级
73a94850
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
13 deletion
+9
-13
crypto/md5/asm/md5-x86_64.pl
crypto/md5/asm/md5-x86_64.pl
+9
-13
未找到文件。
crypto/md5/asm/md5-x86_64.pl
浏览文件 @
8b5bf52a
...
...
@@ -105,19 +105,17 @@ EOF
}
my
$output
=
shift
;
open
STDOUT
,"
>
$output
"
or
die
"
can't open
$output
: $!
";
open
STDOUT
,"
| $^X ../perlasm/x86_64-xlate.pl
$output
";
$code
.=
<<EOF;
.text
.align 16
.globl md5_block_asm_host_order
.type md5_block_asm_host_order,\@function
.type md5_block_asm_host_order,\@function
,3
md5_block_asm_host_order:
push %rbp
push %rbx
push %r12
push %r13
push %r14
push %r15
...
...
@@ -131,7 +129,6 @@ md5_block_asm_host_order:
mov 1*4(%rbp), %ebx # ebx = ctx->B
mov 2*4(%rbp), %ecx # ecx = ctx->C
mov 3*4(%rbp), %edx # edx = ctx->D
push %rbp # save ctx
# end is 'rdi'
# ptr is 'rsi'
# A is 'eax'
...
...
@@ -140,10 +137,10 @@ md5_block_asm_host_order:
# D is 'edx'
cmp %rdi, %rsi # cmp end with ptr
je
1f
# jmp if ptr == end
je
.Lend
# jmp if ptr == end
# BEGIN of loop over 16-word blocks
2
: # save old values of A, B, C, D
.Lloop
: # save old values of A, B, C, D
mov %eax, %r8d
mov %ebx, %r9d
mov %ecx, %r14d
...
...
@@ -226,10 +223,10 @@ $code .= <<EOF;
# loop control
add \$64, %rsi # ptr += 64
cmp %rdi, %rsi # cmp end with ptr
jb
2b
# jmp if ptr < end
jb
.Lloop
# jmp if ptr < end
# END of loop over 16-word blocks
1: pop %rbp # restore ctx
.Lend:
mov %eax, 0*4(%rbp) # ctx->A = A
mov %ebx, 1*4(%rbp) # ctx->B = B
mov %ecx, 2*4(%rbp) # ctx->C = C
...
...
@@ -237,13 +234,12 @@ $code .= <<EOF;
pop %r15
pop %r14
pop %r13
pop %r12
pop %rbx
pop %rbp
ret
.L_md5_block_asm_host_order_end:
.size md5_block_asm_host_order,.L_md5_block_asm_host_order_end-md5_block_asm_host_order
.size md5_block_asm_host_order,.-md5_block_asm_host_order
EOF
print
$code
;
close
STDOUT
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录