Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d02f751c
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看板
提交
d02f751c
编写于
4月 27, 1999
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Message digest stuff.
上级
79df9d62
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
67 addition
and
24 deletion
+67
-24
crypto/dsa/dsa_gen.c
crypto/dsa/dsa_gen.c
+2
-1
crypto/dsa/dsa_key.c
crypto/dsa/dsa_key.c
+2
-1
crypto/evp/e_cbc_3d.c
crypto/evp/e_cbc_3d.c
+2
-0
crypto/evp/e_cbc_d.c
crypto/evp/e_cbc_d.c
+2
-0
crypto/evp/e_cfb_3d.c
crypto/evp/e_cfb_3d.c
+2
-0
crypto/evp/e_cfb_d.c
crypto/evp/e_cfb_d.c
+2
-0
crypto/evp/e_ecb_3d.c
crypto/evp/e_ecb_3d.c
+2
-0
crypto/evp/e_ecb_d.c
crypto/evp/e_ecb_d.c
+2
-0
crypto/evp/e_ofb_3d.c
crypto/evp/e_ofb_3d.c
+2
-0
crypto/evp/e_ofb_d.c
crypto/evp/e_ofb_d.c
+2
-0
crypto/evp/e_xcbc_d.c
crypto/evp/e_xcbc_d.c
+2
-0
crypto/evp/evp_key.c
crypto/evp/evp_key.c
+1
-1
crypto/evp/m_dss.c
crypto/evp/m_dss.c
+2
-1
crypto/evp/m_dss1.c
crypto/evp/m_dss1.c
+2
-0
crypto/evp/m_md2.c
crypto/evp/m_md2.c
+2
-1
crypto/evp/m_md5.c
crypto/evp/m_md5.c
+2
-0
crypto/evp/m_mdc2.c
crypto/evp/m_mdc2.c
+2
-0
crypto/evp/m_sha.c
crypto/evp/m_sha.c
+2
-1
crypto/evp/m_sha1.c
crypto/evp/m_sha1.c
+2
-0
crypto/rand/Makefile.ssl
crypto/rand/Makefile.ssl
+2
-2
crypto/rand/md_rand.c
crypto/rand/md_rand.c
+5
-5
crypto/rsa/rsa_oaep.c
crypto/rsa/rsa_oaep.c
+1
-1
crypto/sha/sha.h
crypto/sha/sha.h
+4
-4
crypto/sha/sha1_one.c
crypto/sha/sha1_one.c
+1
-1
crypto/sha/sha1dgst.c
crypto/sha/sha1dgst.c
+1
-1
crypto/sha/sha_dgst.c
crypto/sha/sha_dgst.c
+2
-1
crypto/sha/sha_one.c
crypto/sha/sha_one.c
+1
-1
ssl/s2_lib.c
ssl/s2_lib.c
+1
-0
ssl/s3_clnt.c
ssl/s3_clnt.c
+2
-0
ssl/s3_enc.c
ssl/s3_enc.c
+2
-0
ssl/s3_lib.c
ssl/s3_lib.c
+2
-0
ssl/s3_srvr.c
ssl/s3_srvr.c
+2
-0
ssl/ssl_algs.c
ssl/ssl_algs.c
+2
-2
ssl/t1_enc.c
ssl/t1_enc.c
+2
-0
未找到文件。
crypto/dsa/dsa_gen.c
浏览文件 @
d02f751c
...
...
@@ -64,6 +64,7 @@
#define HASH SHA1
#endif
#ifndef NO_SHA
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
...
...
@@ -328,4 +329,4 @@ err:
return
(
ok
);
}
#endif
crypto/dsa/dsa_key.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_SHA
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
...
...
@@ -108,4 +109,4 @@ err:
if
(
ctx
!=
NULL
)
BN_CTX_free
(
ctx
);
return
(
ok
);
}
#endif
crypto/evp/e_cbc_3d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -143,3 +144,4 @@ static void des_cbc_ede_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
&
(
ctx
->
iv
[
0
]),
ctx
->
encrypt
);
}
#endif
crypto/evp/e_cbc_d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -98,3 +99,4 @@ static void des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
{
des_ncbc_encrypt
(
in
,
out
,
inl
,
ctx
->
c
.
des_ks
,
&
(
ctx
->
iv
[
0
]),
ctx
->
encrypt
);
}
#endif
crypto/evp/e_cfb_3d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -146,3 +147,4 @@ static void des_ede_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
ctx
->
c
.
des_ede
.
ks3
,
&
(
ctx
->
iv
[
0
]),
&
ctx
->
num
,
ctx
->
encrypt
);
}
#endif
crypto/evp/e_cfb_d.c
浏览文件 @
d02f751c
...
...
@@ -61,6 +61,7 @@
#include <openssl/evp.h>
#include <openssl/objects.h>
#ifndef NO_DES
static
void
des_cfb_init_key
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
key
,
unsigned
char
*
iv
,
int
enc
);
static
void
des_cfb_cipher
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
...
...
@@ -104,3 +105,4 @@ static void des_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
&
(
ctx
->
iv
[
0
]),
&
ctx
->
num
,
ctx
->
encrypt
);
}
#endif
crypto/evp/e_ecb_3d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -142,3 +143,4 @@ static void des_ede_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
ctx
->
encrypt
);
}
}
#endif
crypto/evp/e_ecb_d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -102,3 +103,4 @@ static void des_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
des_ecb_encrypt
(
&
(
in
[
i
]),
&
(
out
[
i
]),
ctx
->
c
.
des_ks
,
ctx
->
encrypt
);
}
}
#endif
crypto/evp/e_ofb_3d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -144,3 +145,4 @@ static void des_ede_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
ctx
->
c
.
des_ede
.
ks2
,
ctx
->
c
.
des_ede
.
ks3
,
&
(
ctx
->
iv
[
0
]),
&
ctx
->
num
);
}
#endif
crypto/evp/e_ofb_d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -100,3 +101,4 @@ static void des_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
{
des_ofb64_encrypt
(
in
,
out
,
inl
,
ctx
->
c
.
des_ks
,
&
(
ctx
->
iv
[
0
]),
&
ctx
->
num
);
}
#endif
crypto/evp/e_xcbc_d.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_DES
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -106,3 +107,4 @@ static void desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
&
(
ctx
->
c
.
desx_cbc
.
outw
[
0
]),
ctx
->
encrypt
);
}
#endif
crypto/evp/evp_key.c
浏览文件 @
d02f751c
...
...
@@ -82,7 +82,7 @@ char *EVP_get_pw_prompt(void)
}
#ifdef NO_DES
int
des_read_pw_string
(
char
*
buf
,
int
len
,
char
*
prompt
,
int
verify
);
int
des_read_pw_string
(
char
*
buf
,
int
len
,
c
onst
c
har
*
prompt
,
int
verify
);
#endif
int
EVP_read_pw_string
(
char
*
buf
,
int
len
,
const
char
*
prompt
,
int
verify
)
...
...
crypto/evp/m_dss.c
浏览文件 @
d02f751c
...
...
@@ -62,6 +62,7 @@
#include <openssl/objects.h>
#include <openssl/x509.h>
#ifndef NO_SHA
static
EVP_MD
dsa_md
=
{
NID_dsaWithSHA
,
...
...
@@ -79,4 +80,4 @@ EVP_MD *EVP_dss(void)
{
return
(
&
dsa_md
);
}
#endif
crypto/evp/m_dss1.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_SHA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,3 +80,4 @@ EVP_MD *EVP_dss1(void)
{
return
(
&
dss1_md
);
}
#endif
crypto/evp/m_md2.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_MD2
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,4 +80,4 @@ EVP_MD *EVP_md2(void)
{
return
(
&
md2_md
);
}
#endif
crypto/evp/m_md5.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_MD5
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,3 +80,4 @@ EVP_MD *EVP_md5(void)
{
return
(
&
md5_md
);
}
#endif
crypto/evp/m_mdc2.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_MDC2
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,3 +80,4 @@ EVP_MD *EVP_mdc2(void)
{
return
(
&
mdc2_md
);
}
#endif
crypto/evp/m_sha.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_SHA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,4 +80,4 @@ EVP_MD *EVP_sha(void)
{
return
(
&
sha_md
);
}
#endif
crypto/evp/m_sha1.c
浏览文件 @
d02f751c
...
...
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_SHA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
...
...
@@ -79,3 +80,4 @@ EVP_MD *EVP_sha1(void)
{
return
(
&
sha1_md
);
}
#endif
crypto/rand/Makefile.ssl
浏览文件 @
d02f751c
...
...
@@ -77,7 +77,7 @@ clean:
# DO NOT DELETE THIS LINE -- make depend depends on it.
md_rand.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os.h
md_rand.o
:
../../include/openssl/
md5.h ../../include/openssl/opensslv
.h
md_rand.o
:
../../include/openssl/
rand
.h ../../include/openssl/stack.h
md_rand.o
:
../../include/openssl/
opensslv.h ../../include/openssl/rand
.h
md_rand.o
:
../../include/openssl/
sha
.h ../../include/openssl/stack.h
rand_lib.o
:
../../include/openssl/rand.h
randfile.o
:
../../include/openssl/e_os.h ../../include/openssl/rand.h
crypto/rand/md_rand.c
浏览文件 @
d02f751c
...
...
@@ -64,16 +64,16 @@
#include <openssl/crypto.h>
#if !defined(USE_MD5_RAND) && !defined(USE_SHA1_RAND) && !defined(USE_MDC2_RAND) && !defined(USE_MD2_RAND)
#ifndef NO_MD5
#define USE_MD5_RAND
#elif !defined(NO_SHA1)
#if !defined(NO_SHA) && !defined(NO_SHA1)
#define USE_SHA1_RAND
#elif !defined(NO_MDC2)
#elif !defined(NO_MD5)
#define USE_MD5_RAND
#elif !defined(NO_MDC2) && !defined(NO_DES)
#define USE_MDC2_RAND
#elif !defined(NO_MD2)
#define USE_MD2_RAND
#else
We
need
a
message
digest
of
some
type
#error No message digest algorithm available
#endif
#endif
...
...
crypto/rsa/rsa_oaep.c
浏览文件 @
d02f751c
...
...
@@ -4,7 +4,7 @@
/* EME_OAEP as defined in RFC 2437 (PKCS #1 v2.0) */
#if
ndef NO_SHA
#if
!defined(NO_SHA) && !defined(NO_SHA1)
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
...
...
crypto/sha/sha.h
浏览文件 @
d02f751c
...
...
@@ -90,16 +90,16 @@ typedef struct SHAstate_st
#ifndef NO_SHA0
void
SHA_Init
(
SHA_CTX
*
c
);
void
SHA_Update
(
SHA_CTX
*
c
,
unsigned
char
*
data
,
unsigned
long
len
);
void
SHA_Update
(
SHA_CTX
*
c
,
const
unsigned
char
*
data
,
unsigned
long
len
);
void
SHA_Final
(
unsigned
char
*
md
,
SHA_CTX
*
c
);
unsigned
char
*
SHA
(
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
);
unsigned
char
*
SHA
(
const
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
);
void
SHA_Transform
(
SHA_CTX
*
c
,
unsigned
char
*
data
);
#endif
#ifndef NO_SHA1
void
SHA1_Init
(
SHA_CTX
*
c
);
void
SHA1_Update
(
SHA_CTX
*
c
,
unsigned
char
*
data
,
unsigned
long
len
);
void
SHA1_Update
(
SHA_CTX
*
c
,
const
unsigned
char
*
data
,
unsigned
long
len
);
void
SHA1_Final
(
unsigned
char
*
md
,
SHA_CTX
*
c
);
unsigned
char
*
SHA1
(
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
);
unsigned
char
*
SHA1
(
const
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
);
void
SHA1_Transform
(
SHA_CTX
*
c
,
unsigned
char
*
data
);
#endif
#ifdef __cplusplus
...
...
crypto/sha/sha1_one.c
浏览文件 @
d02f751c
...
...
@@ -61,7 +61,7 @@
#include <openssl/sha.h>
#ifndef NO_SHA1
unsigned
char
*
SHA1
(
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
)
unsigned
char
*
SHA1
(
const
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
)
{
SHA_CTX
c
;
static
unsigned
char
m
[
SHA_DIGEST_LENGTH
];
...
...
crypto/sha/sha1dgst.c
浏览文件 @
d02f751c
...
...
@@ -114,7 +114,7 @@ void SHA1_Init(SHA_CTX *c)
c
->
num
=
0
;
}
void
SHA1_Update
(
SHA_CTX
*
c
,
register
unsigned
char
*
data
,
void
SHA1_Update
(
SHA_CTX
*
c
,
const
register
unsigned
char
*
data
,
unsigned
long
len
)
{
register
SHA_LONG
*
p
;
...
...
crypto/sha/sha_dgst.c
浏览文件 @
d02f751c
...
...
@@ -100,7 +100,8 @@ void SHA_Init(SHA_CTX *c)
c
->
num
=
0
;
}
void
SHA_Update
(
SHA_CTX
*
c
,
register
unsigned
char
*
data
,
unsigned
long
len
)
void
SHA_Update
(
SHA_CTX
*
c
,
const
register
unsigned
char
*
data
,
unsigned
long
len
)
{
register
SHA_LONG
*
p
;
int
ew
,
ec
,
sw
,
sc
;
...
...
crypto/sha/sha_one.c
浏览文件 @
d02f751c
...
...
@@ -61,7 +61,7 @@
#include <openssl/sha.h>
#ifndef NO_SHA0
unsigned
char
*
SHA
(
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
)
unsigned
char
*
SHA
(
const
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
)
{
SHA_CTX
c
;
static
unsigned
char
m
[
SHA_DIGEST_LENGTH
];
...
...
ssl/s2_lib.c
浏览文件 @
d02f751c
...
...
@@ -60,6 +60,7 @@
#include <stdio.h>
#include <openssl/rsa.h>
#include <openssl/objects.h>
#include <openssl/md5.h>
#include "ssl_locl.h"
static
long
ssl2_default_timeout
(
void
);
...
...
ssl/s3_clnt.c
浏览文件 @
d02f751c
...
...
@@ -60,6 +60,8 @@
#include <openssl/buffer.h>
#include <openssl/rand.h>
#include <openssl/objects.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
#include "ssl_locl.h"
...
...
ssl/s3_enc.c
浏览文件 @
d02f751c
...
...
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
#include "ssl_locl.h"
...
...
ssl/s3_lib.c
浏览文件 @
d02f751c
...
...
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/objects.h>
#include "ssl_locl.h"
...
...
ssl/s3_srvr.c
浏览文件 @
d02f751c
...
...
@@ -62,6 +62,8 @@
#include <openssl/buffer.h>
#include <openssl/rand.h>
#include <openssl/objects.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include "ssl_locl.h"
...
...
ssl/ssl_algs.c
浏览文件 @
d02f751c
...
...
@@ -85,11 +85,11 @@ int SSL_library_init(void)
EVP_add_digest_alias
(
SN_md5
,
"ssl2-md5"
);
EVP_add_digest_alias
(
SN_md5
,
"ssl3-md5"
);
#endif
#ifndef NO_SHA
1
#ifndef NO_SHA
EVP_add_digest
(
EVP_sha1
());
/* RSA with sha1 */
EVP_add_digest_alias
(
SN_sha1
,
"ssl3-sha1"
);
#endif
#if !defined(NO_SHA
1
) && !defined(NO_DSA)
#if !defined(NO_SHA) && !defined(NO_DSA)
EVP_add_digest
(
EVP_dss1
());
/* DSA with sha1 */
#endif
...
...
ssl/t1_enc.c
浏览文件 @
d02f751c
...
...
@@ -58,6 +58,8 @@
#include <stdio.h>
#include <openssl/comp.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include "ssl_locl.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录