Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
f7dc4a3b
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
f7dc4a3b
编写于
5月 03, 2016
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS assembly pack: fix MIPS64 assembler warnings.
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
39199fb3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
9 deletion
+13
-9
crypto/aes/asm/aes-mips.pl
crypto/aes/asm/aes-mips.pl
+8
-6
crypto/sha/asm/sha1-mips.pl
crypto/sha/asm/sha1-mips.pl
+1
-1
crypto/sha/asm/sha512-mips.pl
crypto/sha/asm/sha512-mips.pl
+4
-2
未找到文件。
crypto/aes/asm/aes-mips.pl
浏览文件 @
f7dc4a3b
...
...
@@ -57,6 +57,7 @@
$flavour
=
shift
||
"
o32
";
# supported flavours are o32,n32,64,nubi32,nubi64
if
(
$flavour
=~
/64|n32/i
)
{
$PTR_LA
=
"
dla
";
$PTR_ADD
=
"
dadd
";
# incidentally works even on n32
$PTR_SUB
=
"
dsub
";
# incidentally works even on n32
$PTR_INS
=
"
dins
";
...
...
@@ -65,6 +66,7 @@ if ($flavour =~ /64|n32/i) {
$PTR_SLL
=
"
dsll
";
# incidentally works even on n32
$SZREG
=
8
;
}
else
{
$PTR_LA
=
"
la
";
$PTR_ADD
=
"
add
";
$PTR_SUB
=
"
sub
";
$PTR_INS
=
"
ins
";
...
...
@@ -110,7 +112,7 @@ ___
{{{
my
$FRAMESIZE
=
16
*$SZREG
;
my
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
my
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
"
0xc0fff008
"
:
"
0xc0ff0000
"
;
my
(
$inp
,
$out
,
$key
,
$Tbl
,
$s0
,
$s1
,
$s2
,
$s3
)
=
(
$a0
,
$a1
,
$a2
,
$a3
,
$a4
,
$a5
,
$a6
,
$a7
);
my
(
$i0
,
$i1
,
$i2
,
$i3
)
=
(
$at
,
$t0
,
$t1
,
$t2
);
...
...
@@ -646,7 +648,7 @@ $code.=<<___ if ($flavour !~ /o32/i); # non-o32 PIC-ification
___
$code
.=
<<___;
.set reorder
la
$Tbl,AES_Te # PIC-ified 'load address'
$PTR_LA
$Tbl,AES_Te # PIC-ified 'load address'
lwl $s0,0+$MSB($inp)
lwl $s1,4+$MSB($inp)
...
...
@@ -1217,7 +1219,7 @@ $code.=<<___ if ($flavour !~ /o32/i); # non-o32 PIC-ification
___
$code
.=
<<___;
.set reorder
la
$Tbl,AES_Td # PIC-ified 'load address'
$PTR_LA
$Tbl,AES_Td # PIC-ified 'load address'
lwl $s0,0+$MSB($inp)
lwl $s1,4+$MSB($inp)
...
...
@@ -1267,7 +1269,7 @@ ___
{{{
my
$FRAMESIZE
=
8
*$SZREG
;
my
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc000f008
:
0xc0000000
;
my
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
"
0xc000f008
"
:
"
0xc0000000
"
;
my
(
$inp
,
$bits
,
$key
,
$Tbl
)
=
(
$a0
,
$a1
,
$a2
,
$a3
);
my
(
$rk0
,
$rk1
,
$rk2
,
$rk3
,
$rk4
,
$rk5
,
$rk6
,
$rk7
)
=
(
$a4
,
$a5
,
$a6
,
$a7
,
$s0
,
$s1
,
$s2
,
$s3
);
...
...
@@ -1556,7 +1558,7 @@ $code.=<<___ if ($flavour !~ /o32/i); # non-o32 PIC-ification
___
$code
.=
<<___;
.set reorder
la
$Tbl,AES_Te4 # PIC-ified 'load address'
$PTR_LA
$Tbl,AES_Te4 # PIC-ified 'load address'
bal _mips_AES_set_encrypt_key
...
...
@@ -1611,7 +1613,7 @@ $code.=<<___ if ($flavour !~ /o32/i); # non-o32 PIC-ification
___
$code
.=
<<___;
.set reorder
la
$Tbl,AES_Te4 # PIC-ified 'load address'
$PTR_LA
$Tbl,AES_Te4 # PIC-ified 'load address'
bal _mips_AES_set_encrypt_key
...
...
crypto/sha/asm/sha1-mips.pl
浏览文件 @
f7dc4a3b
...
...
@@ -326,7 +326,7 @@ ___
}
$FRAMESIZE
=
16
;
# large enough to accommodate NUBI saved registers
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
"
0xc0fff008
"
:
"
0xc0ff0000
"
;
$code
=
<<___;
#ifdef OPENSSL_FIPSCANISTER
...
...
crypto/sha/asm/sha512-mips.pl
浏览文件 @
f7dc4a3b
...
...
@@ -52,6 +52,7 @@
$flavour
=
shift
||
"
o32
";
# supported flavours are o32,n32,64,nubi32,nubi64
if
(
$flavour
=~
/64|n32/i
)
{
$PTR_LA
=
"
dla
";
$PTR_ADD
=
"
dadd
";
# incidentally works even on n32
$PTR_SUB
=
"
dsub
";
# incidentally works even on n32
$REG_S
=
"
sd
";
...
...
@@ -59,6 +60,7 @@ if ($flavour =~ /64|n32/i) {
$PTR_SLL
=
"
dsll
";
# incidentally works even on n32
$SZREG
=
8
;
}
else
{
$PTR_LA
=
"
la
";
$PTR_ADD
=
"
add
";
$PTR_SUB
=
"
sub
";
$REG_S
=
"
sw
";
...
...
@@ -286,7 +288,7 @@ ___
}
$FRAMESIZE
=
16
*$SZ
+
16
*$SZREG
;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
"
0xc0fff008
"
:
"
0xc0ff0000
"
;
$code
.=
<<___;
#ifdef OPENSSL_FIPSCANISTER
...
...
@@ -343,7 +345,7 @@ $code.=<<___ if ($flavour !~ /o32/i); # non-o32 PIC-ification
___
$code
.=
<<___;
.set reorder
la
$Ktbl,K${label} # PIC-ified 'load address'
$PTR_LA
$Ktbl,K${label} # PIC-ified 'load address'
$LD $A,0*$SZ($ctx) # load context
$LD $B,1*$SZ($ctx)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录