Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
0ab8fd58
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看板
提交
0ab8fd58
编写于
3月 04, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
s390x assembler pack: tune-up and support for new z196 hardware.
上级
8aa6cff4
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
779 addition
and
31 deletion
+779
-31
crypto/aes/asm/aes-s390x.pl
crypto/aes/asm/aes-s390x.pl
+764
-25
crypto/bn/asm/s390x-mont.pl
crypto/bn/asm/s390x-mont.pl
+4
-4
crypto/modes/asm/ghash-s390x.pl
crypto/modes/asm/ghash-s390x.pl
+11
-2
未找到文件。
crypto/aes/asm/aes-s390x.pl
浏览文件 @
0ab8fd58
此差异已折叠。
点击以展开。
crypto/bn/asm/s390x-mont.pl
浏览文件 @
0ab8fd58
...
...
@@ -41,8 +41,8 @@
# processor, as long as it's "z-CPU". Latter implies that the code
# remains z/Architecture specific. Compatibility with 32-bit BN_ULONG
# is achieved by swapping words after 64-bit loads, follow _dswap-s.
# On z990 it was measured to perform 2.6-2.2 times better
, less for
# longer keys...
# On z990 it was measured to perform 2.6-2.2 times better
than
#
compiler-generated code, less for
longer keys...
$flavour
=
shift
;
...
...
@@ -102,8 +102,8 @@ $code.=<<___ if ($flavour =~ /3[12]/);
bnzr
%r14
# if ($num&1) return 0;
___
$code
.=<<
___
if
(
$flavour
!~
/3[12]/
);
cghi
$num
,
128
#
bhr
%r14
# if($num>
128
) return 0;
cghi
$num
,
96
#
bhr
%r14
# if($num>
96
) return 0;
___
$code
.=
<<___;
stm${g} %r3,%r15,3*$SIZE_T($sp)
...
...
crypto/modes/asm/ghash-s390x.pl
浏览文件 @
0ab8fd58
...
...
@@ -28,6 +28,15 @@
# remains z/Architecture specific. On z990 it was measured to perform
# 2.8x better than 32-bit code generated by gcc 4.3.
# March 2011.
#
# Support for hardware KIMD-GHASH is verified to produce correct
# result and therefore is engaged. On z196 it was measured to process
# 8KB buffer ~7 faster than software implementation. It's not as
# impressive for smaller buffer sizes and for smallest 16-bytes buffer
# it's actually almost 2 times slower. Which is the reason why
# KIMD-GHASH is not used in gcm_gmult_4bit.
$flavour
=
shift
;
if
(
$flavour
=~
/3[12]/
)
{
...
...
@@ -41,7 +50,7 @@ if ($flavour =~ /3[12]/) {
while
((
$output
=
shift
)
&&
(
$output
!~
/^\w[\w\-]*\.\w+$/
))
{}
open
STDOUT
,"
>
$output
";
$softonly
=
1
;
# disable hardware support for now
$softonly
=
0
;
$Zhi
=
"
%r0
";
$Zlo
=
"
%r1
";
...
...
@@ -70,7 +79,7 @@ $code.=<<___;
.align 32
gcm_gmult_4bit:
___
$code
.=<<
___
if
(
!
$softonly
);
$code
.=<<
___
if
(
!
$softonly
&&
0
);
# hardware is slow for single block...
larl
%r1
,
OPENSSL_s390xcap_P
lg
%r0
,
0
(
%r1
)
tmhl
%r0
,
0x4000
# check for message-security-assist
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录