Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4664eb52
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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,发现更多精彩内容 >>
提交
4664eb52
编写于
1月 04, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update WIN32 nasm build to use new asm files.
上级
744ecaa5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
18 deletion
+33
-18
ms/do_nasm.bat
ms/do_nasm.bat
+22
-12
util/mk1mf.pl
util/mk1mf.pl
+1
-0
util/pl/VC-32.pl
util/pl/VC-32.pl
+10
-6
未找到文件。
ms/do_nasm.bat
浏览文件 @
4664eb52
@echo
off
@echo
off
SET
ASMOPTS
=
-DOPENSSL
_IA32_SSE2
echo
Generating
x86
for
NASM
assember
echo
Generating
x86
for
NASM
assember
echo
Bignum
echo
Bignum
cd
crypto
\bn\asm
cd
crypto
\bn\asm
perl
x86
.pl
win32n
>
bn_win32
.asm
perl
bn
-
586
.pl
win32n
%ASMOPTS%
>
bn_win32
.asm
perl
co
-
586
.pl
win32n
%ASMOPTS%
>
co_win32
.asm
cd
..\..\..
echo
AES
cd
crypto
\aes\asm
perl
aes
-
586
.pl
win32n
%ASMOPTS%
>
a_win32
.asm
cd
..\..\..
cd
..\..\..
echo
DES
echo
DES
cd
crypto
\des\asm
cd
crypto
\des\asm
perl
des
-
586
.pl
win32n
>
d_win32
.asm
perl
des
-
586
.pl
win32n
%ASMOPTS%
>
d_win32
.asm
cd
..\..\..
cd
..\..\..
echo
"crypt(3)"
echo
"crypt(3)"
cd
crypto
\des\asm
cd
crypto
\des\asm
perl
crypt586
.pl
win32n
>
y_win32
.asm
perl
crypt586
.pl
win32n
%ASMOPTS%
>
y_win32
.asm
cd
..\..\..
cd
..\..\..
echo
Blowfish
echo
Blowfish
cd
crypto
\bf\asm
cd
crypto
\bf\asm
perl
bf
-
586
.pl
win32n
>
b_win32
.asm
perl
bf
-
586
.pl
win32n
%ASMOPTS%
>
b_win32
.asm
cd
..\..\..
cd
..\..\..
echo
CAST5
echo
CAST5
cd
crypto
\cast\asm
cd
crypto
\cast\asm
perl
cast
-
586
.pl
win32n
>
c_win32
.asm
perl
cast
-
586
.pl
win32n
%ASMOPTS%
>
c_win32
.asm
cd
..\..\..
cd
..\..\..
echo
RC4
echo
RC4
cd
crypto
\rc4\asm
cd
crypto
\rc4\asm
perl
rc4
-
586
.pl
win32n
>
r4_win32
.asm
perl
rc4
-
586
.pl
win32n
%ASMOPTS%
>
r4_win32
.asm
cd
..\..\..
cd
..\..\..
echo
MD5
echo
MD5
cd
crypto
\md5\asm
cd
crypto
\md5\asm
perl
md5
-
586
.pl
win32n
>
m5_win32
.asm
perl
md5
-
586
.pl
win32n
%ASMOPTS%
>
m5_win32
.asm
cd
..\..\..
cd
..\..\..
echo
SHA1
echo
SHA1
cd
crypto
\sha\asm
cd
crypto
\sha\asm
perl
sha1
-
586
.pl
win32n
>
s1_win32
.asm
perl
sha1
-
586
.pl
win32n
%ASMOPTS%
>
s1_win32
.asm
perl
sha256
-
586
.pl
win32n
%ASMOPTS%
>
sha256_win32
.asm
perl
sha512
-
586
.pl
win32n
%ASMOPTS%
>
sha512_win32
.asm
cd
..\..\..
cd
..\..\..
echo
RIPEMD160
echo
RIPEMD160
cd
crypto
\ripemd\asm
cd
crypto
\ripemd\asm
perl
rmd
-
586
.pl
win32n
>
rm_win32
.asm
perl
rmd
-
586
.pl
win32n
%ASMOPTS%
>
rm_win32
.asm
cd
..\..\..
cd
..\..\..
echo
RC5
\32
echo
RC5
\32
cd
crypto
\rc5\asm
cd
crypto
\rc5\asm
perl
rc5
-
586
.pl
win32n
>
r5_win32
.asm
perl
rc5
-
586
.pl
win32n
%ASMOPTS%
>
r5_win32
.asm
cd
..\..\..
cd
..\..\..
echo
Whirlpool
echo
Whirlpool
cd
crypto
\whrlpool\asm
cd
crypto
\whrlpool\asm
perl
wp
-mmx
.pl
win32n
>
wp_win32
.asm
perl
wp
-mmx
.pl
win32n
%ASMOPTS%
>
wp_win32
.asm
cd
..\..\..
cd
..\..\..
echo
CPU
-ID
echo
CPU
-ID
cd
crypto
cd
crypto
perl
x86cpuid
.pl
win32n
>
cpu_win32
.asm
perl
x86cpuid
.pl
win32n
%ASMOPTS%
>
cpu_win32
.asm
cd
..
cd
..
echo
on
echo
on
...
...
util/mk1mf.pl
浏览文件 @
4664eb52
...
@@ -868,6 +868,7 @@ sub do_defs
...
@@ -868,6 +868,7 @@ sub do_defs
else
{
$pf
=
$postfix
;
}
else
{
$pf
=
$postfix
;
}
if
(
$_
=~
/BN_ASM/
)
{
$t
=
"
$_
";
}
if
(
$_
=~
/BN_ASM/
)
{
$t
=
"
$_
";
}
elsif
(
$_
=~
/BNCO_ASM/
){
$t
=
"
$_
";
}
elsif
(
$_
=~
/BNCO_ASM/
){
$t
=
"
$_
";
}
elsif
(
$_
=~
/AES_ASM/
){
$t
=
"
$_
";
}
elsif
(
$_
=~
/DES_ENC/
)
{
$t
=
"
$_
";
}
elsif
(
$_
=~
/DES_ENC/
)
{
$t
=
"
$_
";
}
elsif
(
$_
=~
/BF_ENC/
)
{
$t
=
"
$_
";
}
elsif
(
$_
=~
/BF_ENC/
)
{
$t
=
"
$_
";
}
elsif
(
$_
=~
/CAST_ENC/
){
$t
=
"
$_
";
}
elsif
(
$_
=~
/CAST_ENC/
){
$t
=
"
$_
";
}
...
...
util/pl/VC-32.pl
浏览文件 @
4664eb52
...
@@ -9,7 +9,7 @@ $crypto="libeay32";
...
@@ -9,7 +9,7 @@ $crypto="libeay32";
$o
=
'
\\
';
$o
=
'
\\
';
$cp
=
'
$(PERL) util/copy.pl
';
$cp
=
'
$(PERL) util/copy.pl
';
$mkdir
=
'
$(PERL) util/mkdir-p.pl
';
$mkdir
=
'
$(PERL) util/mkdir-p.pl
';
$rm
=
'
del
';
$rm
=
'
del
/Q
';
$zlib_lib
=
"
zlib1.lib
";
$zlib_lib
=
"
zlib1.lib
";
...
@@ -163,8 +163,8 @@ $lfile='/out:';
...
@@ -163,8 +163,8 @@ $lfile='/out:';
$shlib_ex_obj
=
"";
$shlib_ex_obj
=
"";
$app_ex_obj
=
"
setargv.obj
"
if
(
$FLAVOR
!~
/CE/
);
$app_ex_obj
=
"
setargv.obj
"
if
(
$FLAVOR
!~
/CE/
);
if
(
$nasm
)
{
if
(
$nasm
)
{
my
$ver
=
`
nasm -v
`;
my
$ver
=
`
nasm -v
2>NUL
`;
my
$vew
=
`
nasmw -v
`;
my
$vew
=
`
nasmw -v
2>NUL
`;
# pick newest version
# pick newest version
$asm
=
(
$ver
gt
$vew
?"
nasm
":"
nasmw
")
.
"
-f win32
";
$asm
=
(
$ver
gt
$vew
?"
nasm
":"
nasmw
")
.
"
-f win32
";
$afile
=
'
-o
';
$afile
=
'
-o
';
...
@@ -183,8 +183,12 @@ $bf_enc_src='';
...
@@ -183,8 +183,12 @@ $bf_enc_src='';
if
(
!
$no_asm
)
if
(
!
$no_asm
)
{
{
$aes_asm_obj
=
'
crypto\aes\asm\a_win32.obj
';
$aes_asm_src
=
'
crypto\aes\asm\a_win32.asm
';
$bn_asm_obj
=
'
crypto\bn\asm\bn_win32.obj
';
$bn_asm_obj
=
'
crypto\bn\asm\bn_win32.obj
';
$bn_asm_src
=
'
crypto\bn\asm\bn_win32.asm
';
$bn_asm_src
=
'
crypto\bn\asm\bn_win32.asm
';
$bnco_asm_obj
=
'
crypto\bn\asm\co_win32.obj
';
$bnco_asm_src
=
'
crypto\bn\asm\co_win32.asm
';
$des_enc_obj
=
'
crypto\des\asm\d_win32.obj crypto\des\asm\y_win32.obj
';
$des_enc_obj
=
'
crypto\des\asm\d_win32.obj crypto\des\asm\y_win32.obj
';
$des_enc_src
=
'
crypto\des\asm\d_win32.asm crypto\des\asm\y_win32.asm
';
$des_enc_src
=
'
crypto\des\asm\d_win32.asm crypto\des\asm\y_win32.asm
';
$bf_enc_obj
=
'
crypto\bf\asm\b_win32.obj
';
$bf_enc_obj
=
'
crypto\bf\asm\b_win32.obj
';
...
@@ -197,15 +201,15 @@ if (!$no_asm)
...
@@ -197,15 +201,15 @@ if (!$no_asm)
$rc5_enc_src
=
'
crypto\rc5\asm\r5_win32.asm
';
$rc5_enc_src
=
'
crypto\rc5\asm\r5_win32.asm
';
$md5_asm_obj
=
'
crypto\md5\asm\m5_win32.obj
';
$md5_asm_obj
=
'
crypto\md5\asm\m5_win32.obj
';
$md5_asm_src
=
'
crypto\md5\asm\m5_win32.asm
';
$md5_asm_src
=
'
crypto\md5\asm\m5_win32.asm
';
$sha1_asm_obj
=
'
crypto\sha\asm\s1_win32.obj
';
$sha1_asm_obj
=
'
crypto\sha\asm\s1_win32.obj
crypto\sha\asm\sha256_win32.obj crypto\sha\asm\sha512_win32.obj
';
$sha1_asm_src
=
'
crypto\sha\asm\s1_win32.asm
';
$sha1_asm_src
=
'
crypto\sha\asm\s1_win32.asm
crypto\sha\asm\sha256_win32.asm crypto\sha\asm\sha512_win32.asm
';
$rmd160_asm_obj
=
'
crypto\ripemd\asm\rm_win32.obj
';
$rmd160_asm_obj
=
'
crypto\ripemd\asm\rm_win32.obj
';
$rmd160_asm_src
=
'
crypto\ripemd\asm\rm_win32.asm
';
$rmd160_asm_src
=
'
crypto\ripemd\asm\rm_win32.asm
';
$whirlpool_asm_obj
=
'
crypto\whrlpool\asm\wp_win32.obj
';
$whirlpool_asm_obj
=
'
crypto\whrlpool\asm\wp_win32.obj
';
$whirlpool_asm_src
=
'
crypto\whrlpool\asm\wp_win32.asm
';
$whirlpool_asm_src
=
'
crypto\whrlpool\asm\wp_win32.asm
';
$cpuid_asm_obj
=
'
crypto\cpu_win32.obj
';
$cpuid_asm_obj
=
'
crypto\cpu_win32.obj
';
$cpuid_asm_src
=
'
crypto\cpu_win32.asm
';
$cpuid_asm_src
=
'
crypto\cpu_win32.asm
';
$cflags
.=
"
-DOPENSSL_CPUID_OBJ -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DWHIRLPOOL_ASM
";
$cflags
.=
"
-DOPENSSL_CPUID_OBJ -D
OPENSSL_IA32_SSE2 -DAES_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
BN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DWHIRLPOOL_ASM
";
}
}
if
(
$shlib
&&
$FLAVOR
!~
/CE/
)
if
(
$shlib
&&
$FLAVOR
!~
/CE/
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录