Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
5676d8cb
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看板
提交
5676d8cb
编写于
6月 29, 1999
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix no-hmac and no-ripemd.
上级
ce8b2574
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
3 deletion
+11
-3
apps/speed.c
apps/speed.c
+3
-1
config
config
+1
-1
crypto/evp/m_ripemd.c
crypto/evp/m_ripemd.c
+3
-0
crypto/evp/p5_crpt2.c
crypto/evp/p5_crpt2.c
+2
-1
crypto/pkcs12/p12_mutl.c
crypto/pkcs12/p12_mutl.c
+2
-0
未找到文件。
apps/speed.c
浏览文件 @
5676d8cb
...
@@ -239,7 +239,6 @@ static double Time_F(int s)
...
@@ -239,7 +239,6 @@ static double Time_F(int s)
int
MAIN
(
int
argc
,
char
**
argv
)
int
MAIN
(
int
argc
,
char
**
argv
)
{
{
unsigned
char
*
buf
=
NULL
,
*
buf2
=
NULL
;
unsigned
char
*
buf
=
NULL
,
*
buf2
=
NULL
;
des_cblock
*
buf_as_des_cblock
=
NULL
;
int
ret
=
1
;
int
ret
=
1
;
#define ALGOR_NUM 14
#define ALGOR_NUM 14
#define SIZE_NUM 5
#define SIZE_NUM 5
...
@@ -286,6 +285,7 @@ int MAIN(int argc, char **argv)
...
@@ -286,6 +285,7 @@ int MAIN(int argc, char **argv)
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
};
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
};
unsigned
char
iv
[
8
];
unsigned
char
iv
[
8
];
#ifndef NO_DES
#ifndef NO_DES
des_cblock
*
buf_as_des_cblock
=
NULL
;
static
des_cblock
key
=
{
0x12
,
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
};
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
key2
=
{
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
};
static
des_cblock
key3
=
{
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
,
0x34
};
static
des_cblock
key3
=
{
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
,
0x12
,
0x34
};
...
@@ -361,7 +361,9 @@ int MAIN(int argc, char **argv)
...
@@ -361,7 +361,9 @@ int MAIN(int argc, char **argv)
BIO_printf
(
bio_err
,
"out of memory
\n
"
);
BIO_printf
(
bio_err
,
"out of memory
\n
"
);
goto
end
;
goto
end
;
}
}
#ifndef NO_DES
buf_as_des_cblock
=
(
des_cblock
*
)
buf
;
buf_as_des_cblock
=
(
des_cblock
*
)
buf
;
#endif
if
((
buf2
=
(
unsigned
char
*
)
Malloc
((
int
)
BUFSIZE
))
==
NULL
)
if
((
buf2
=
(
unsigned
char
*
)
Malloc
((
int
)
BUFSIZE
))
==
NULL
)
{
{
BIO_printf
(
bio_err
,
"out of memory
\n
"
);
BIO_printf
(
bio_err
,
"out of memory
\n
"
);
...
...
config
浏览文件 @
5676d8cb
...
@@ -365,7 +365,7 @@ case "$GUESSOS" in
...
@@ -365,7 +365,7 @@ case "$GUESSOS" in
i386-
*
)
options
=
"
$options
386"
;;
i386-
*
)
options
=
"
$options
386"
;;
esac
esac
for
i
in
bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 rsa sha
for
i
in
bf cast des dh dsa hmac md2 md5 mdc2 rc2 rc4 rc5 r
ipemd r
sa sha
do
do
if
[
!
-d
crypto/
$i
]
if
[
!
-d
crypto/
$i
]
then
then
...
...
crypto/evp/m_ripemd.c
浏览文件 @
5676d8cb
...
@@ -56,8 +56,10 @@
...
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#ifndef NO_RIPEMD
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/ripemd.h>
#include <openssl/evp.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/x509.h>
...
@@ -79,3 +81,4 @@ EVP_MD *EVP_ripemd160(void)
...
@@ -79,3 +81,4 @@ EVP_MD *EVP_ripemd160(void)
{
{
return
(
&
ripemd160_md
);
return
(
&
ripemd160_md
);
}
}
#endif
crypto/evp/p5_crpt2.c
浏览文件 @
5676d8cb
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
* Hudson (tjh@cryptsoft.com).
* Hudson (tjh@cryptsoft.com).
*
*
*/
*/
#if !defined(NO_HMAC) && !defined(NO_SHA)
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <openssl/x509.h>
#include <openssl/x509.h>
...
@@ -218,4 +219,4 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
...
@@ -218,4 +219,4 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
PBKDF2PARAM_free
(
kdf
);
PBKDF2PARAM_free
(
kdf
);
return
0
;
return
0
;
}
}
#endif
crypto/pkcs12/p12_mutl.c
浏览文件 @
5676d8cb
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
*
*
*/
*/
#ifndef NO_HMAC
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/hmac.h>
#include <openssl/hmac.h>
...
@@ -166,3 +167,4 @@ int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
...
@@ -166,3 +167,4 @@ int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen,
return
1
;
return
1
;
}
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录