Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
227a822a
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看板
提交
227a822a
编写于
10月 19, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
vxworks-mips: unify and add assembler.
上级
a9cf0b81
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
36 addition
and
55 deletion
+36
-55
Configure
Configure
+1
-2
TABLE
TABLE
+7
-40
crypto/aes/Makefile
crypto/aes/Makefile
+1
-1
crypto/aes/asm/aes-mips.pl
crypto/aes/asm/aes-mips.pl
+8
-3
crypto/sha/Makefile
crypto/sha/Makefile
+3
-3
crypto/sha/asm/sha1-mips.pl
crypto/sha/asm/sha1-mips.pl
+7
-3
crypto/sha/asm/sha512-mips.pl
crypto/sha/asm/sha512-mips.pl
+9
-3
未找到文件。
Configure
浏览文件 @
227a822a
...
@@ -598,9 +598,8 @@ my %table=(
...
@@ -598,9 +598,8 @@ my %table=(
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
"vxworks-ppc860","ccppc:-nostdinc -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
"vxworks-ppc860","ccppc:-nostdinc -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
"vxworks-mipsle","ccmips:-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -DL_ENDIAN -EL -Wl,-EL -mips2 -mno-branch-likely -G 0 -fno-builtin -msoft-float -DCPU=MIPS32 -DMIPSEL -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r::${no_asm}::::::ranlibmips:",
"vxworks-simlinux","ccpentium:-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\" -DL_ENDIAN -DCPU=SIMLINUX -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I\$(WIND_BASE)/target/h -I\$(WIND_BASE)/target/h/wrn/coreip -DOPENSSL_NO_HW_PADLOCK:::VXWORKS:-r::${no_asm}::::::ranlibpentium:",
"vxworks-simlinux","ccpentium:-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\" -DL_ENDIAN -DCPU=SIMLINUX -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I\$(WIND_BASE)/target/h -I\$(WIND_BASE)/target/h/wrn/coreip -DOPENSSL_NO_HW_PADLOCK:::VXWORKS:-r::${no_asm}::::::ranlibpentium:",
"vxworks-mips","ccmips:-
B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\" -DB_ENDIAN -DCPU=MIPS32 -G 0 -mips2 -EB -Wl,-EB -msoft-float -mno-branch-likely -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I\$(WIND_BASE)/target/h -I\$(WIND_BASE)/target/h/wrn/coreip:::VXWORKS:-r::${no_asm}
::::::ranlibmips:",
"vxworks-mips","ccmips:-
mrtp -mips2 -O -G 0 -B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\" -DCPU=MIPS32 -msoft-float -mno-branch-likely -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/h/wrn/coreip::-D_REENTRANT:VXWORKS:-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon::${mips32_asm}:o32
::::::ranlibmips:",
##### Compaq Non-Stop Kernel (Tandem)
##### Compaq Non-Stop Kernel (Tandem)
"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::",
"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::",
...
...
TABLE
浏览文件 @
227a822a
...
@@ -5843,52 +5843,19 @@ $multilib =
...
@@ -5843,52 +5843,19 @@ $multilib =
*** vxworks-mips
*** vxworks-mips
$cc = ccmips
$cc = ccmips
$cflags = -
B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE="$(WIND_BASE)/target/lib/h/config/vsbConfig.h" -DB_ENDIAN -DCPU=MIPS32 -G 0 -mips2 -EB -Wl,-EB -msoft-float -mno-branch-likely -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I$(WIND_BASE)/target
/h -I$(WIND_BASE)/target/h/wrn/coreip
$cflags = -
mrtp -mips2 -O -G 0 -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -D_VSB_CONFIG_FILE="$(WIND_BASE)/target/lib/h/config/vsbConfig.h" -DCPU=MIPS32 -msoft-float -mno-branch-likely -DTOOL_FAMILY=gnu -DTOOL=gnu -fno-builtin -fno-defer-pop -DNO_STRINGS_H -I$(WIND_BASE)/target/usr
/h -I$(WIND_BASE)/target/h/wrn/coreip
$unistd =
$unistd =
$thread_cflag =
$thread_cflag = -D_REENTRANT
$sys_id = VXWORKS
$lflags = -r
$bn_ops =
$cpuid_obj =
$bn_obj =
$des_obj =
$aes_obj =
$bf_obj =
$md5_obj =
$sha1_obj =
$cast_obj =
$rc4_obj =
$rmd160_obj =
$rc5_obj =
$wp_obj =
$cmll_obj =
$modes_obj =
$engines_obj =
$perlasm_scheme = void
$dso_scheme =
$shared_target=
$shared_cflag =
$shared_ldflag =
$shared_extension =
$ranlib = ranlibmips
$arflags =
$multilib =
*** vxworks-mipsle
$cc = ccmips
$cflags = -B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ -DL_ENDIAN -EL -Wl,-EL -mips2 -mno-branch-likely -G 0 -fno-builtin -msoft-float -DCPU=MIPS32 -DMIPSEL -DNO_STRINGS_H -I$(WIND_BASE)/target/h
$unistd =
$thread_cflag =
$sys_id = VXWORKS
$sys_id = VXWORKS
$lflags = -
r
$lflags = -
Wl,--defsym,__wrs_rtp_base=0xe0000000 -L $(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon
$bn_ops =
$bn_ops =
$cpuid_obj =
$cpuid_obj =
$bn_obj =
$bn_obj =
bn-mips.o
$des_obj =
$des_obj =
$aes_obj =
$aes_obj =
aes_cbc.o aes-mips.o
$bf_obj =
$bf_obj =
$md5_obj =
$md5_obj =
$sha1_obj =
$sha1_obj =
sha1-mips.o sha256-mips.o
$cast_obj =
$cast_obj =
$rc4_obj =
$rc4_obj =
$rmd160_obj =
$rmd160_obj =
...
@@ -5897,7 +5864,7 @@ $wp_obj =
...
@@ -5897,7 +5864,7 @@ $wp_obj =
$cmll_obj =
$cmll_obj =
$modes_obj =
$modes_obj =
$engines_obj =
$engines_obj =
$perlasm_scheme =
void
$perlasm_scheme =
o32
$dso_scheme =
$dso_scheme =
$shared_target=
$shared_target=
$shared_cflag =
$shared_cflag =
...
...
crypto/aes/Makefile
浏览文件 @
227a822a
...
@@ -75,7 +75,7 @@ aes-ppc.s: asm/aes-ppc.pl
...
@@ -75,7 +75,7 @@ aes-ppc.s: asm/aes-ppc.pl
aes-parisc.s
:
asm/aes-parisc.pl
aes-parisc.s
:
asm/aes-parisc.pl
$(PERL)
asm/aes-parisc.pl
$(PERLASM_SCHEME)
$@
$(PERL)
asm/aes-parisc.pl
$(PERLASM_SCHEME)
$@
aes-mips.
s
:
asm/aes-mips.pl
aes-mips.
S
:
asm/aes-mips.pl
$(PERL)
asm/aes-mips.pl
$(PERLASM_SCHEME)
$@
$(PERL)
asm/aes-mips.pl
$(PERLASM_SCHEME)
$@
# GNU make "catch all"
# GNU make "catch all"
...
...
crypto/aes/asm/aes-mips.pl
浏览文件 @
227a822a
...
@@ -70,9 +70,9 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2;
...
@@ -70,9 +70,9 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2;
#
#
######################################################################
######################################################################
for
(
@ARGV
)
{
$big_endian
=
1
if
(
/\-DB_ENDIAN/
)
;
$big_endian
=
(`
echo MIPSEL |
$ENV
{CC} -E -P -
`
=~
/MIPSEL/
)?
1
:
0
;
$big_endian
=
0
if
(
/\-DL_ENDIAN/
);
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
for
(
@ARGV
)
{
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
open
STDOUT
,"
>
$output
";
open
STDOUT
,"
>
$output
";
if
(
!
defined
(
$big_endian
))
if
(
!
defined
(
$big_endian
))
...
@@ -85,8 +85,13 @@ my ($MSB,$LSB)=(0,3); # automatically converted to little-endian
...
@@ -85,8 +85,13 @@ my ($MSB,$LSB)=(0,3); # automatically converted to little-endian
$code
.=
<<___;
$code
.=
<<___;
.text
.text
#ifdef OPENSSL_FIPSCANISTER
# include <openssl/fipssyms.h>
#endif
#if !defined(__vxworks) || defined(__pic__)
.option pic2
.option pic2
#endif
.set noat
.set noat
___
___
...
...
crypto/sha/Makefile
浏览文件 @
227a822a
...
@@ -78,9 +78,9 @@ sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME)
...
@@ -78,9 +78,9 @@ sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME)
sha256-parisc.s
:
asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
sha256-parisc.s
:
asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
sha512-parisc.s
:
asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
sha512-parisc.s
:
asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
sha1-mips.
s
:
asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@
sha1-mips.
S
:
asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@
sha256-mips.
s
:
asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
sha256-mips.
S
:
asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
sha512-mips.
s
:
asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
sha512-mips.
S
:
asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
# GNU make "catch all"
# GNU make "catch all"
sha1-%.S
:
asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
sha1-%.S
:
asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
...
...
crypto/sha/asm/sha1-mips.pl
浏览文件 @
227a822a
...
@@ -64,9 +64,9 @@ if ($flavour =~ /64|n32/i) {
...
@@ -64,9 +64,9 @@ if ($flavour =~ /64|n32/i) {
#
#
######################################################################
######################################################################
for
(
@ARGV
)
{
$big_endian
=
1
if
(
/\-DB_ENDIAN/
)
;
$big_endian
=
(`
echo MIPSEL |
$ENV
{CC} -E -P -
`
=~
/MIPSEL/
)?
1
:
0
;
$big_endian
=
0
if
(
/\-DL_ENDIAN/
);
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
for
(
@ARGV
)
{
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
open
STDOUT
,"
>
$output
";
open
STDOUT
,"
>
$output
";
if
(
!
defined
(
$big_endian
))
if
(
!
defined
(
$big_endian
))
...
@@ -237,6 +237,10 @@ $FRAMESIZE=16; # large enough to accomodate NUBI saved registers
...
@@ -237,6 +237,10 @@ $FRAMESIZE=16; # large enough to accomodate NUBI saved registers
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$code
=
<<___;
$code
=
<<___;
ifdef OPENSSL_FIPSCANISTER
# include <openssl/fipssyms.h>
#endif
.text
.text
.set noat
.set noat
...
...
crypto/sha/asm/sha512-mips.pl
浏览文件 @
227a822a
...
@@ -68,9 +68,9 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2;
...
@@ -68,9 +68,9 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2;
#
#
######################################################################
######################################################################
for
(
@ARGV
)
{
$big_endian
=
1
if
(
/\-DB_ENDIAN/
)
;
$big_endian
=
(`
echo MIPSEL |
$ENV
{CC} -E -P -
`
=~
/MIPSEL/
)?
1
:
0
;
$big_endian
=
0
if
(
/\-DL_ENDIAN/
);
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
for
(
@ARGV
)
{
$output
=
$_
if
(
/^\w[\w\-]*\.\w+$/
);
}
open
STDOUT
,"
>
$output
";
open
STDOUT
,"
>
$output
";
if
(
!
defined
(
$big_endian
))
{
$big_endian
=
(
unpack
('
L
',
pack
('
N
',
1
))
==
1
);
}
if
(
!
defined
(
$big_endian
))
{
$big_endian
=
(
unpack
('
L
',
pack
('
N
',
1
))
==
1
);
}
...
@@ -238,9 +238,15 @@ $FRAMESIZE=16*$SZ+16*$SZREG;
...
@@ -238,9 +238,15 @@ $FRAMESIZE=16*$SZ+16*$SZREG;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$SAVED_REGS_MASK
=
(
$flavour
=~
/nubi/i
)
?
0xc0fff008
:
0xc0ff0000
;
$code
.=
<<___;
$code
.=
<<___;
#ifdef OPENSSL_FIPSCANISTER
# include <openssl/fipssyms.h>
#endif
.text
.text
.set noat
.set noat
#if !defined(__vxworks) || defined(__pic__)
.option pic2
.option pic2
#endif
.align 5
.align 5
.globl sha${label}_block_data_order
.globl sha${label}_block_data_order
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录