Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
b1fd0ccb
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看板
提交
b1fd0ccb
编写于
4月 09, 2012
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
aes-s390x.pl: fix crash in AES_set_decrypt_key in linux32-s390x build.
上级
b2284ed3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
19 deletion
+15
-19
crypto/aes/asm/aes-s390x.pl
crypto/aes/asm/aes-s390x.pl
+15
-19
未找到文件。
crypto/aes/asm/aes-s390x.pl
浏览文件 @
b1fd0ccb
...
...
@@ -837,7 +837,8 @@ $code.=<<___ if (!$softonly);
je
1
f
lg
%r1
,
24
(
$inp
)
stg
%r1
,
24
(
$key
)
1
:
st
$bits
,
236
(
$key
)
# save bits
1
:
st
$bits
,
236
(
$key
)
# save bits [for debugging purposes]
lgr
$t0
,
%r5
st
%r5
,
240
(
$key
)
# save km code
lghi
%r2
,
0
br
%r14
...
...
@@ -845,7 +846,7 @@ ___
$code
.=
<<___;
.align 16
.Lekey_internal:
stm${g} %r
6,%r13,6*$SIZE_T($sp) # all non-volatile regs
stm${g} %r
4,%r13,4*$SIZE_T($sp) # all non-volatile regs and $key
larl $tbl,AES_Te+2048
...
...
@@ -905,8 +906,9 @@ $code.=<<___;
la $key,16($key) # key+=4
la $t3,4($t3) # i++
brct $rounds,.L128_loop
lghi $t0,10
lghi %r2,0
lm${g} %r
6,%r13,6
*$SIZE_T($sp)
lm${g} %r
4,%r13,4
*$SIZE_T($sp)
br $ra
.align 16
...
...
@@ -953,8 +955,9 @@ $code.=<<___;
st $s2,32($key)
st $s3,36($key)
brct $rounds,.L192_continue
lghi $t0,12
lghi %r2,0
lm${g} %r
6,%r13,6
*$SIZE_T($sp)
lm${g} %r
4,%r13,4
*$SIZE_T($sp)
br $ra
.align 16
...
...
@@ -1015,8 +1018,9 @@ $code.=<<___;
st $s2,40($key)
st $s3,44($key)
brct $rounds,.L256_continue
lghi $t0,14
lghi %r2,0
lm${g} %r
6,%r13,6
*$SIZE_T($sp)
lm${g} %r
4,%r13,4
*$SIZE_T($sp)
br $ra
.align 16
...
...
@@ -1067,34 +1071,26 @@ $code.=<<___;
.type AES_set_decrypt_key,\@function
.align 16
AES_set_decrypt_key:
st${g} $key,4*$SIZE_T($sp) # I rely on AES_set_encrypt_key to
st${g} $ra,14*$SIZE_T($sp) # save non-volatile registers!
#
st${g} $key,4*$SIZE_T($sp) # I rely on AES_set_encrypt_key to
st${g} $ra,14*$SIZE_T($sp) # save non-volatile registers
and $key
!
bras $ra,_s390x_AES_set_encrypt_key
l${g} $key,4*$SIZE_T($sp)
#
l${g} $key,4*$SIZE_T($sp)
l${g} $ra,14*$SIZE_T($sp)
ltgr %r2,%r2
bnzr $ra
___
$code
.=<<
___
if
(
!
$softonly
);
l
$t0
,
240
(
$key
)
#
l $t0,240($key)
lhi
$t1
,
16
cr
$t0
,
$t1
jl
.
Lgo
oill
$t0
,
0x80
# set "decrypt" bit
st
$t0
,
240
(
$key
)
br
$ra
.
align
16
.
Ldkey_internal:
st$
{
g
}
$key
,
4
*$SIZE_T
(
$sp
)
st$
{
g
}
$ra
,
14
*$SIZE_T
(
$sp
)
bras
$ra
,
.
Lekey_internal
l$
{
g
}
$key
,
4
*$SIZE_T
(
$sp
)
l$
{
g
}
$ra
,
14
*$SIZE_T
(
$sp
)
___
$code
.=
<<___;
.Lgo: llgf $rounds,240($key)
.align 16
.Lgo: l
gr $rounds,$t0 #l
lgf $rounds,240($key)
la $i1,0($key)
sllg $i2,$rounds,4
la $i2,0($i2,$key)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录