Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
9024b84b
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
9024b84b
编写于
6月 16, 2014
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
aesni-sha[1|256]-x86_64.pl: fix logical error and MacOS X build.
上级
764fe518
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
6 deletion
+8
-6
crypto/aes/asm/aesni-sha1-x86_64.pl
crypto/aes/asm/aesni-sha1-x86_64.pl
+3
-3
crypto/aes/asm/aesni-sha256-x86_64.pl
crypto/aes/asm/aesni-sha256-x86_64.pl
+5
-3
未找到文件。
crypto/aes/asm/aesni-sha1-x86_64.pl
浏览文件 @
9024b84b
...
...
@@ -726,7 +726,7 @@ ___
if
(
$stitched_decrypt
)
{{{
# reset
(
$in0
,
$out
,
$len
,
$key
,
$ivp
,
$ctx
,
$inp
)
=
("
%rdi
","
%rsi
","
%rdx
","
%rcx
","
%r8
","
%r9
","
%r10
");
$j
=
$jj
=
$r
=
$
sn
=
$
rx
=
0
;
$j
=
$jj
=
$r
=
$rx
=
0
;
$Xi
=
4
;
# reassign for Atom Silvermont (see above)
...
...
@@ -994,7 +994,7 @@ $code.=<<___;
.size aesni256_cbc_sha1_dec_ssse3,.-aesni256_cbc_sha1_dec_ssse3
___
}}}
$j
=
$jj
=
$r
=
$
sn
=
$
rx
=
0
;
$j
=
$jj
=
$r
=
$rx
=
0
;
if
(
$avx
)
{
my
(
$in0
,
$out
,
$len
,
$key
,
$ivp
,
$ctx
,
$inp
)
=
("
%rdi
","
%rsi
","
%rdx
","
%rcx
","
%r8
","
%r9
","
%r10
");
...
...
@@ -1440,7 +1440,7 @@ ___
# reset
(
$in0
,
$out
,
$len
,
$key
,
$ivp
,
$ctx
,
$inp
)
=
("
%rdi
","
%rsi
","
%rdx
","
%rcx
","
%r8
","
%r9
","
%r10
");
$j
=
$jj
=
$r
=
$
sn
=
$
rx
=
0
;
$j
=
$jj
=
$r
=
$rx
=
0
;
$Xi
=
4
;
@aes256_dec
=
(
...
...
crypto/aes/asm/aesni-sha256-x86_64.pl
浏览文件 @
9024b84b
...
...
@@ -59,7 +59,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx
=
(
$
1
>=
10
)
+
(
$
1
>=
11
);
}
$shaext
=
1
;
### set to zero if compiling for 1.0.1
$shaext
=
$avx
;
### set to zero if compiling for 1.0.1
$avx
=
1
if
(
!
$shaext
&&
$avx
);
open
OUT
,"
|
\"
$^X
\"
$xlate
$flavour
$output
";
...
...
@@ -109,7 +109,8 @@ $code=<<___;
.align 16
$func:
___
$code
.=<<
___
if
(
$avx
);
if
(
$avx
)
{
$code
.=
<<___;
lea OPENSSL_ia32cap_P(%rip),%r11
mov \$1,%eax
cmp \$0,`$win64?"%rcx":"%rdi"`
...
...
@@ -133,7 +134,7 @@ $code.=<<___ if ($avx>1);
cmp
\
$
`
1<<8|1<<5|1<<3
`,
%r11d
je
$
{
func
}
_avx2
___
$code
.=<<
___
if
(
$avx
)
;
$code
.=
<<___;
and \$`1<<30`,%eax # mask "Intel CPU" bit
and \$`1<<28|1<<9`,%r10d # mask AVX+SSSE3 bits
or %eax,%r10d
...
...
@@ -141,6 +142,7 @@ $code.=<<___ if ($avx);
je ${func}_avx
ud2
___
}
$code
.=
<<___;
xor %eax,%eax
cmp \$0,`$win64?"%rcx":"%rdi"`
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录