Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
125cc35b
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看板
提交
125cc35b
编写于
3月 22, 2002
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge in DES changed from 0.9.7-stable.
上级
7e58aa7d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
apps/passwd.c
apps/passwd.c
+2
-2
apps/speed.c
apps/speed.c
+6
-6
apps/version.c
apps/version.c
+2
-2
未找到文件。
apps/passwd.c
浏览文件 @
125cc35b
...
...
@@ -16,7 +16,7 @@
#include <openssl/evp.h>
#include <openssl/rand.h>
#ifndef OPENSSL_NO_DES
# include <openssl/des
_old
.h>
# include <openssl/des.h>
#endif
#ifndef NO_MD5CRYPT_1
# include <openssl/evp.h>
...
...
@@ -482,7 +482,7 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
/* now compute password hash */
#ifndef OPENSSL_NO_DES
if
(
usecrypt
)
hash
=
des
_crypt
(
passwd
,
*
salt_p
);
hash
=
DES
_crypt
(
passwd
,
*
salt_p
);
#endif
#ifndef NO_MD5CRYPT_1
if
(
use1
||
useapr1
)
...
...
apps/speed.c
浏览文件 @
125cc35b
...
...
@@ -131,7 +131,7 @@
#endif
#ifndef OPENSSL_NO_DES
#include <openssl/des
_old
.h>
#include <openssl/des.h>
#endif
#ifndef OPENSSL_NO_AES
#include <openssl/aes.h>
...
...
@@ -439,9 +439,9 @@ int MAIN(int argc, char **argv)
unsigned
char
iv
[
MAX_BLOCK_SIZE
/
8
];
#ifndef OPENSSL_NO_DES
DES_cblock
*
buf_as_des_cblock
=
NULL
;
static
des
_cblock
key
=
{
0x12
,
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
};
static
des
_cblock
key2
=
{
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
};
static
des
_cblock
key3
=
{
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
,
0x34
};
static
DES
_cblock
key
=
{
0x12
,
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
};
static
DES
_cblock
key2
=
{
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
};
static
DES
_cblock
key3
=
{
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
,
0x34
};
DES_key_schedule
sch
;
DES_key_schedule
sch2
;
DES_key_schedule
sch3
;
...
...
@@ -532,7 +532,7 @@ int MAIN(int argc, char **argv)
goto
end
;
}
#ifndef OPENSSL_NO_DES
buf_as_des_cblock
=
(
des
_cblock
*
)
buf
;
buf_as_des_cblock
=
(
DES
_cblock
*
)
buf
;
#endif
if
((
buf2
=
(
unsigned
char
*
)
OPENSSL_malloc
((
int
)
BUFSIZE
))
==
NULL
)
{
...
...
@@ -1603,7 +1603,7 @@ show_res:
printf
(
"%s "
,
RC4_options
());
#endif
#ifndef OPENSSL_NO_DES
printf
(
"%s "
,
des
_options
());
printf
(
"%s "
,
DES
_options
());
#endif
#ifndef OPENSSL_NO_AES
printf
(
"%s "
,
AES_options
());
...
...
apps/version.c
浏览文件 @
125cc35b
...
...
@@ -122,7 +122,7 @@
# include <openssl/rc4.h>
#endif
#ifndef OPENSSL_NO_DES
# include <openssl/des
_old
.h>
# include <openssl/des.h>
#endif
#ifndef OPENSSL_NO_IDEA
# include <openssl/idea.h>
...
...
@@ -186,7 +186,7 @@ int MAIN(int argc, char **argv)
printf
(
"%s "
,
RC4_options
());
#endif
#ifndef OPENSSL_NO_DES
printf
(
"%s "
,
des
_options
());
printf
(
"%s "
,
DES
_options
());
#endif
#ifndef OPENSSL_NO_IDEA
printf
(
"%s "
,
idea_options
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录