Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4e28f132
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
9 个月 前同步成功
通知
8
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4e28f132
编写于
7月 01, 2005
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pedantic polish to aes-586.pl:-)
上级
53a20bfd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
16 deletion
+8
-16
crypto/aes/asm/aes-586.pl
crypto/aes/asm/aes-586.pl
+8
-16
未找到文件。
crypto/aes/asm/aes-586.pl
浏览文件 @
4e28f132
...
...
@@ -890,7 +890,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&align
(
4
);
&set_label
("
do_ecopy
");
&mov
(
$_key
,"
edi
");
&data_word
(
0x
F689A5F3
);
# rep movsd
&data_word
(
0x
A5F3F689
);
# rep movsd
&set_label
("
skip_ecopy
");
&mov
(
$acc
,
$s0
);
...
...
@@ -961,15 +961,11 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&mov
("
edi
",
$_key
);
&mov
("
esp
",
$_esp
);
&je
(
&label
("
skip_ezero
"));
if
(
$compromise
)
{
&cmp
(
&wparam
(
2
),
$compromise
);
&jb
(
&label
("
skip_ezero
"));
}
# zero copy of key schedule
&mov
("
ecx
",
240
/
4
);
&xor
("
eax
","
eax
");
&align
(
4
);
&data_word
(
0x
F689ABF3
);
# rep stosd
&data_word
(
0x
ABF3F689
);
# rep stosd
&set_label
("
skip_ezero
")
&popf
();
&set_label
("
enc_out
");
...
...
@@ -985,7 +981,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&cmp
(
$key
,
$acc
);
# compare with inp
&je
(
&label
("
enc_in_place
"));
&align
(
4
);
&data_word
(
0x
F689A4F3
);
# rep movsb # copy input
&data_word
(
0x
A4F3F689
);
# rep movsb # copy input
&jmp
(
&label
("
enc_skip_in_place
"));
&set_label
("
enc_in_place
");
&lea
(
$key
,
&DWP
(
0
,
$key
,
$s2
));
...
...
@@ -993,7 +989,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&mov
(
$s2
,
$s1
);
&xor
(
$s0
,
$s0
);
&align
(
4
);
&data_word
(
0x
F689AAF3
);
# rep stosb # zero tail
&data_word
(
0x
AAF3F689
);
# rep stosb # zero tail
&pop
(
$key
);
# pop ivp
&mov
(
$acc
,
$_out
);
# output as input
...
...
@@ -1066,7 +1062,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&align
(
4
);
&set_label
("
do_dcopy
");
&mov
(
$_key
,"
edi
");
&data_word
(
0x
F689A5F3
);
# rep movsd
&data_word
(
0x
A5F3F689
);
# rep movsd
&set_label
("
skip_dcopy
");
&mov
(
$acc
,
$s0
);
...
...
@@ -1147,7 +1143,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&lea
(
$s2
eq
"
ecx
"
?
$s2
:
"",
&DWP
(
16
,
$acc
));
&mov
(
$acc
eq
"
esi
"
?
$acc
:
"",
$key
);
&mov
(
$key
eq
"
edi
"
?
$key
:
"",
$_out
);
# load out
&data_word
(
0x
F689A4F3
);
# rep movsb # copy output
&data_word
(
0x
A4F3F689
);
# rep movsb # copy output
&mov
(
$key
,
$_inp
);
# use inp as temp ivp
&jmp
(
&label
("
dec_end
"));
...
...
@@ -1214,7 +1210,7 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&lea
(
$key
,
&DWP
(
0
,
$key
,
$s2
));
&lea
(
$acc
,
&DWP
(
16
,
$acc
,
$s2
));
&neg
(
$s2
eq
"
ecx
"
?
$s2
:
"");
&data_word
(
0x
F689A4F3
);
# rep movsb # restore tail
&data_word
(
0x
A4F3F689
);
# rep movsb # restore tail
&align
(
4
);
&set_label
("
dec_out
");
...
...
@@ -1222,15 +1218,11 @@ my $mark=&DWP(60+240,"esp"); #copy of aes_key->rounds
&mov
("
edi
",
$_key
);
&mov
("
esp
",
$_esp
);
&je
(
&label
("
skip_dzero
"));
if
(
$compromise
)
{
&cmp
(
&wparam
(
2
),
$compromise
);
&jb
(
&label
("
skip_dzero
"));
}
# zero copy of key schedule
&mov
("
ecx
",
240
/
4
);
&xor
("
eax
","
eax
");
&align
(
4
);
&data_word
(
0x
F689ABF3
);
# rep stosd
&data_word
(
0x
ABF3F689
);
# rep stosd
&set_label
("
skip_dzero
")
&popf
();
&function_end
("
AES_cbc_encrypt
");
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录