Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
90ba3a28
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
90ba3a28
编写于
9月 18, 2010
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
s390x assembler pack: extend OPENSSL_s390xcap_P to 128 bits.
上级
bc9092f7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
14 deletion
+18
-14
crypto/aes/asm/aes-s390x.pl
crypto/aes/asm/aes-s390x.pl
+1
-1
crypto/s390xcap.c
crypto/s390xcap.c
+6
-6
crypto/s390xcpuid.S
crypto/s390xcpuid.S
+9
-5
crypto/sha/asm/sha1-s390x.pl
crypto/sha/asm/sha1-s390x.pl
+1
-1
crypto/sha/asm/sha512-s390x.pl
crypto/sha/asm/sha512-s390x.pl
+1
-1
未找到文件。
crypto/aes/asm/aes-s390x.pl
浏览文件 @
90ba3a28
...
...
@@ -1485,7 +1485,7 @@ $code.=<<___;
___
}
$code
.=
<<___;
.comm OPENSSL_s390xcap_P,
8
,8
.comm OPENSSL_s390xcap_P,
16
,8
.string "AES for s390x, CRYPTOGAMS by <appro\@openssl.org>"
___
...
...
crypto/s390xcap.c
浏览文件 @
90ba3a28
...
...
@@ -4,7 +4,7 @@
#include <setjmp.h>
#include <signal.h>
extern
unsigned
long
OPENSSL_s390xcap_P
;
extern
unsigned
long
OPENSSL_s390xcap_P
[]
;
static
sigjmp_buf
ill_jmp
;
static
void
ill_handler
(
int
sig
)
{
siglongjmp
(
ill_jmp
,
sig
);
}
...
...
@@ -16,7 +16,9 @@ void OPENSSL_cpuid_setup(void)
sigset_t
oset
;
struct
sigaction
ill_act
,
oact
;
if
(
OPENSSL_s390xcap_P
)
return
;
if
(
OPENSSL_s390xcap_P
[
0
])
return
;
OPENSSL_s390xcap_P
[
0
]
=
1UL
<<
(
8
*
sizeof
(
unsigned
long
)
-
1
);
memset
(
&
ill_act
,
0
,
sizeof
(
ill_act
));
ill_act
.
sa_handler
=
ill_handler
;
...
...
@@ -27,10 +29,8 @@ void OPENSSL_cpuid_setup(void)
sigaction
(
SIGILL
,
&
ill_act
,
&
oact
);
/* protection against missing store-facility-list-extended */
if
(
sigsetjmp
(
ill_jmp
,
0
)
==
0
)
OPENSSL_s390xcap_P
=
OPENSSL_s390x_facilities
();
else
OPENSSL_s390xcap_P
=
1UL
<<
63
;
if
(
sigsetjmp
(
ill_jmp
,
1
)
==
0
)
OPENSSL_s390x_facilities
();
sigaction
(
SIGILL
,
&
oact
,
NULL
);
sigprocmask
(
SIG_SETMASK
,
&
oset
,
NULL
);
...
...
crypto/s390xcpuid.S
浏览文件 @
90ba3a28
...
...
@@ -5,10 +5,14 @@
.
align
16
OPENSSL_s390x_facilities
:
lghi
%
r0
,
0
.
long
0xb2b0f010
#
stfle
16
(%
r15
)
lg
%
r2
,
16
(%
r15
)
larl
%
r1
,
OPENSSL_s390xcap_P
stg
%
r2
,
0
(%
r1
)
larl
%
r2
,
OPENSSL_s390xcap_P
stg
%
r0
,
8
(%
r2
)
.
long
0xb2b02000
#
stfle
0
(%
r2
)
brc
8
,
.
Ldone
lghi
%
r0
,
1
.
long
0xb2b02000
#
stfle
0
(%
r2
)
.
Ldone
:
lg
%
r2
,
0
(%
r2
)
br
%
r14
.
size
OPENSSL_s390x_facilities
,.-
OPENSSL_s390x_facilities
...
...
@@ -89,4 +93,4 @@ OPENSSL_cleanse:
.
section
.
init
brasl
%
r14
,
OPENSSL_cpuid_setup
.
comm
OPENSSL_s390xcap_P
,
8
,8
.
comm
OPENSSL_s390xcap_P
,
16
,8
crypto/sha/asm/sha1-s390x.pl
浏览文件 @
90ba3a28
...
...
@@ -217,7 +217,7 @@ $code.=<<___;
br %r14
.size sha1_block_data_order,.-sha1_block_data_order
.string "SHA1 block transform for s390x, CRYPTOGAMS by <appro\@openssl.org>"
.comm OPENSSL_s390xcap_P,
8
,8
.comm OPENSSL_s390xcap_P,
16
,8
___
$code
=~
s/\`([^\`]*)\`/eval $1/g
em
;
...
...
crypto/sha/asm/sha512-s390x.pl
浏览文件 @
90ba3a28
...
...
@@ -290,7 +290,7 @@ $code.=<<___;
br %r14
.size $Func,.-$Func
.string "SHA${label} block transform for s390x, CRYPTOGAMS by <appro\@openssl.org>"
.comm OPENSSL_s390xcap_P,
8
,8
.comm OPENSSL_s390xcap_P,
16
,8
___
$code
=~
s/\`([^\`]*)\`/eval $1/g
em
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录