Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d82e2718
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看板
提交
d82e2718
编写于
3月 23, 2006
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add information and pem strings. Update dependencies.
上级
18e377b4
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
221 addition
and
19 deletion
+221
-19
crypto/asn1/Makefile
crypto/asn1/Makefile
+23
-9
crypto/asn1/ameth_lib.c
crypto/asn1/ameth_lib.c
+34
-1
crypto/asn1/asn1_locl.h
crypto/asn1/asn1_locl.h
+3
-0
crypto/dh/Makefile
crypto/dh/Makefile
+23
-0
crypto/dh/dh_ameth.c
crypto/dh/dh_ameth.c
+3
-0
crypto/dsa/Makefile
crypto/dsa/Makefile
+25
-0
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_ameth.c
+3
-0
crypto/ec/Makefile
crypto/ec/Makefile
+24
-0
crypto/ec/ec_ameth.c
crypto/ec/ec_ameth.c
+3
-1
crypto/evp/Makefile
crypto/evp/Makefile
+8
-8
crypto/evp/evp.h
crypto/evp/evp.h
+22
-0
crypto/pem/pem_lib.c
crypto/pem/pem_lib.c
+22
-0
crypto/rsa/Makefile
crypto/rsa/Makefile
+25
-0
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_ameth.c
+3
-0
未找到文件。
crypto/asn1/Makefile
浏览文件 @
d82e2718
...
...
@@ -279,7 +279,8 @@ a_type.o: ../../e_os.h ../../include/openssl/asn1.h
a_type.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
a_type.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
a_type.o
:
../../include/openssl/e_os2.h ../../include/openssl/err.h
a_type.o
:
../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
a_type.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
a_type.o
:
../../include/openssl/objects.h ../../include/openssl/opensslconf.h
a_type.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
a_type.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
a_type.o
:
../../include/openssl/symhacks.h ../cryptlib.h a_type.c
...
...
@@ -311,6 +312,21 @@ a_verify.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
a_verify.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
a_verify.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
a_verify.o
:
../../include/openssl/x509_vfy.h ../cryptlib.h a_verify.c
ameth_lib.o
:
../../e_os.h ../../include/openssl/asn1.h
ameth_lib.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
ameth_lib.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
ameth_lib.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
ameth_lib.o
:
../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
ameth_lib.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
ameth_lib.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
ameth_lib.o
:
../../include/openssl/objects.h
ameth_lib.o
:
../../include/openssl/opensslconf.h
ameth_lib.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
ameth_lib.o
:
../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
ameth_lib.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
ameth_lib.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
ameth_lib.o
:
../../include/openssl/x509_vfy.h ../cryptlib.h ameth_lib.c
ameth_lib.o
:
asn1_locl.h
asn1_err.o
:
../../include/openssl/asn1.h ../../include/openssl/bio.h
asn1_err.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
asn1_err.o
:
../../include/openssl/err.h ../../include/openssl/lhash.h
...
...
@@ -542,13 +558,11 @@ t_crl.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
t_crl.o
:
../cryptlib.h t_crl.c
t_pkey.o
:
../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
t_pkey.o
:
../../include/openssl/bn.h ../../include/openssl/buffer.h
t_pkey.o
:
../../include/openssl/crypto.h ../../include/openssl/dh.h
t_pkey.o
:
../../include/openssl/dsa.h ../../include/openssl/e_os2.h
t_pkey.o
:
../../include/openssl/ec.h ../../include/openssl/err.h
t_pkey.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
t_pkey.o
:
../../include/openssl/objects.h ../../include/openssl/opensslconf.h
t_pkey.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
t_pkey.o
:
../../include/openssl/rsa.h ../../include/openssl/safestack.h
t_pkey.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
t_pkey.o
:
../../include/openssl/err.h ../../include/openssl/lhash.h
t_pkey.o
:
../../include/openssl/obj_mac.h ../../include/openssl/objects.h
t_pkey.o
:
../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
t_pkey.o
:
../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
t_pkey.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
t_pkey.o
:
../cryptlib.h t_pkey.c
t_req.o
:
../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
...
...
@@ -802,7 +816,7 @@ x_pubkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h
x_pubkey.o
:
../../include/openssl/safestack.h ../../include/openssl/sha.h
x_pubkey.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
x_pubkey.o
:
../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
x_pubkey.o
:
../cryptlib.h x_pubkey.c
x_pubkey.o
:
../cryptlib.h
asn1_locl.h
x_pubkey.c
x_req.o
:
../../e_os.h ../../include/openssl/asn1.h
x_req.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
x_req.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
...
...
crypto/asn1/ameth_lib.c
浏览文件 @
d82e2718
...
...
@@ -143,7 +143,8 @@ int EVP_PKEY_asn1_add(const EVP_PKEY_ASN1_METHOD *ameth)
return
1
;
}
EVP_PKEY_ASN1_METHOD
*
EVP_PKEY_asn1_new
(
int
id
)
EVP_PKEY_ASN1_METHOD
*
EVP_PKEY_asn1_new
(
int
id
,
const
char
*
pem_str
,
const
char
*
info
)
{
EVP_PKEY_ASN1_METHOD
*
ameth
;
ameth
=
OPENSSL_malloc
(
sizeof
(
EVP_PKEY_ASN1_METHOD
));
...
...
@@ -153,6 +154,20 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id)
ameth
->
pkey_id
=
id
;
ameth
->
pkey_base_id
=
id
;
ameth
->
pkey_flags
=
ASN1_PKEY_DYNAMIC
;
if
(
info
)
{
ameth
->
info
=
BUF_strdup
(
info
);
if
(
!
ameth
->
info
)
goto
err
;
}
if
(
pem_str
)
{
ameth
->
pem_str
=
BUF_strdup
(
pem_str
);
if
(
!
ameth
->
pem_str
)
goto
err
;
}
ameth
->
pub_decode
=
0
;
ameth
->
pub_encode
=
0
;
...
...
@@ -180,6 +195,24 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id)
ameth
->
pkey_ctrl
=
0
;
return
ameth
;
err:
EVP_PKEY_asn1_free
(
ameth
);
return
NULL
;
}
void
EVP_PKEY_asn1_free
(
EVP_PKEY_ASN1_METHOD
*
ameth
)
{
if
(
ameth
&&
(
ameth
->
pkey_flags
&
ASN1_PKEY_DYNAMIC
))
{
if
(
ameth
->
pem_str
)
OPENSSL_free
(
ameth
->
pem_str
);
if
(
ameth
->
info
)
OPENSSL_free
(
ameth
->
info
);
OPENSSL_free
(
ameth
);
}
}
void
EVP_PKEY_asn1_set_public
(
EVP_PKEY_ASN1_METHOD
*
ameth
,
...
...
crypto/asn1/asn1_locl.h
浏览文件 @
d82e2718
...
...
@@ -80,6 +80,9 @@ struct evp_pkey_asn1_method_st
int
pkey_base_id
;
unsigned
long
pkey_flags
;
char
*
pem_str
;
char
*
info
;
int
(
*
pub_decode
)(
EVP_PKEY
*
pk
,
X509_PUBKEY
*
pub
);
int
(
*
pub_encode
)(
X509_PUBKEY
*
pub
,
const
EVP_PKEY
*
pk
);
int
(
*
pub_cmp
)(
const
EVP_PKEY
*
a
,
const
EVP_PKEY
*
b
);
...
...
crypto/dh/Makefile
浏览文件 @
d82e2718
...
...
@@ -76,6 +76,20 @@ clean:
# DO NOT DELETE THIS LINE -- make depend depends on it.
dh_ameth.o
:
../../e_os.h ../../include/openssl/asn1.h
dh_ameth.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
dh_ameth.o
:
../../include/openssl/crypto.h ../../include/openssl/dh.h
dh_ameth.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
dh_ameth.o
:
../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
dh_ameth.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
dh_ameth.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
dh_ameth.o
:
../../include/openssl/objects.h ../../include/openssl/opensslconf.h
dh_ameth.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
dh_ameth.o
:
../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
dh_ameth.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
dh_ameth.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
dh_ameth.o
:
../../include/openssl/x509_vfy.h ../asn1/asn1_locl.h ../cryptlib.h
dh_ameth.o
:
dh_ameth.c
dh_asn1.o
:
../../e_os.h ../../include/openssl/asn1.h
dh_asn1.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
dh_asn1.o
:
../../include/openssl/bn.h ../../include/openssl/buffer.h
...
...
@@ -133,3 +147,12 @@ dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
dh_lib.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
dh_lib.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
dh_lib.o
:
../../include/openssl/symhacks.h ../cryptlib.h dh_lib.c
dh_prn.o
:
../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
dh_prn.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
dh_prn.o
:
../../include/openssl/dh.h ../../include/openssl/e_os2.h
dh_prn.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
dh_prn.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
dh_prn.o
:
../../include/openssl/objects.h ../../include/openssl/opensslconf.h
dh_prn.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
dh_prn.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
dh_prn.o
:
../../include/openssl/symhacks.h ../cryptlib.h dh_prn.c
crypto/dh/dh_ameth.c
浏览文件 @
d82e2718
...
...
@@ -73,6 +73,9 @@ const EVP_PKEY_ASN1_METHOD dh_asn1_meth =
EVP_PKEY_DH
,
0
,
"dh"
,
"OpenSSL PKCS#3 DH method"
,
0
,
0
,
0
,
...
...
crypto/dsa/Makefile
浏览文件 @
d82e2718
...
...
@@ -76,6 +76,21 @@ clean:
# DO NOT DELETE THIS LINE -- make depend depends on it.
dsa_ameth.o
:
../../e_os.h ../../include/openssl/asn1.h
dsa_ameth.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
dsa_ameth.o
:
../../include/openssl/crypto.h ../../include/openssl/dsa.h
dsa_ameth.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
dsa_ameth.o
:
../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
dsa_ameth.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
dsa_ameth.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
dsa_ameth.o
:
../../include/openssl/objects.h
dsa_ameth.o
:
../../include/openssl/opensslconf.h
dsa_ameth.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
dsa_ameth.o
:
../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
dsa_ameth.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
dsa_ameth.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
dsa_ameth.o
:
../../include/openssl/x509_vfy.h ../asn1/asn1_locl.h ../cryptlib.h
dsa_ameth.o
:
dsa_ameth.c
dsa_asn1.o
:
../../e_os.h ../../include/openssl/asn1.h
dsa_asn1.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
dsa_asn1.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
...
...
@@ -142,6 +157,16 @@ dsa_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
dsa_ossl.o
:
../../include/openssl/rand.h ../../include/openssl/safestack.h
dsa_ossl.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
dsa_ossl.o
:
../cryptlib.h dsa_ossl.c
dsa_prn.o
:
../../e_os.h ../../include/openssl/asn1.h
dsa_prn.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
dsa_prn.o
:
../../include/openssl/crypto.h ../../include/openssl/dsa.h
dsa_prn.o
:
../../include/openssl/e_os2.h ../../include/openssl/err.h
dsa_prn.o
:
../../include/openssl/evp.h ../../include/openssl/lhash.h
dsa_prn.o
:
../../include/openssl/obj_mac.h ../../include/openssl/objects.h
dsa_prn.o
:
../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
dsa_prn.o
:
../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
dsa_prn.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
dsa_prn.o
:
../cryptlib.h dsa_prn.c
dsa_sign.o
:
../../e_os.h ../../include/openssl/asn1.h
dsa_sign.o
:
../../include/openssl/bio.h ../../include/openssl/bn.h
dsa_sign.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
...
...
crypto/dsa/dsa_ameth.c
浏览文件 @
d82e2718
...
...
@@ -526,6 +526,9 @@ const EVP_PKEY_ASN1_METHOD dsa_asn1_meths[] =
EVP_PKEY_DSA
,
0
,
"dsa"
,
"OpenSSL DSA method"
,
dsa_pub_decode
,
dsa_pub_encode
,
dsa_pub_cmp
,
...
...
crypto/ec/Makefile
浏览文件 @
d82e2718
...
...
@@ -95,6 +95,20 @@ ec2_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
ec2_smpl.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
ec2_smpl.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
ec2_smpl.o
:
../../include/openssl/symhacks.h ec2_smpl.c ec_lcl.h
ec_ameth.o
:
../../e_os.h ../../include/openssl/asn1.h
ec_ameth.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
ec_ameth.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
ec_ameth.o
:
../../include/openssl/ec.h ../../include/openssl/ecdh.h
ec_ameth.o
:
../../include/openssl/ecdsa.h ../../include/openssl/err.h
ec_ameth.o
:
../../include/openssl/evp.h ../../include/openssl/lhash.h
ec_ameth.o
:
../../include/openssl/obj_mac.h ../../include/openssl/objects.h
ec_ameth.o
:
../../include/openssl/opensslconf.h
ec_ameth.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
ec_ameth.o
:
../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
ec_ameth.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
ec_ameth.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
ec_ameth.o
:
../../include/openssl/x509_vfy.h ../asn1/asn1_locl.h ../cryptlib.h
ec_ameth.o
:
ec_ameth.c
ec_asn1.o
:
../../include/openssl/asn1.h ../../include/openssl/asn1t.h
ec_asn1.o
:
../../include/openssl/bio.h ../../include/openssl/bn.h
ec_asn1.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
...
...
@@ -166,6 +180,16 @@ ec_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
ec_print.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
ec_print.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
ec_print.o
:
../../include/openssl/symhacks.h ec_lcl.h ec_print.c
eck_prn.o
:
../../e_os.h ../../include/openssl/asn1.h
eck_prn.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
eck_prn.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
eck_prn.o
:
../../include/openssl/ec.h ../../include/openssl/err.h
eck_prn.o
:
../../include/openssl/evp.h ../../include/openssl/lhash.h
eck_prn.o
:
../../include/openssl/obj_mac.h ../../include/openssl/objects.h
eck_prn.o
:
../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
eck_prn.o
:
../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
eck_prn.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
eck_prn.o
:
../cryptlib.h eck_prn.c
ecp_mont.o
:
../../include/openssl/asn1.h ../../include/openssl/bio.h
ecp_mont.o
:
../../include/openssl/bn.h ../../include/openssl/crypto.h
ecp_mont.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
...
...
crypto/ec/ec_ameth.c
浏览文件 @
d82e2718
...
...
@@ -538,8 +538,10 @@ static int eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent,
EVP_PKEY_ASN1_METHOD
eckey_asn1_meth
=
{
EVP_PKEY_EC
,
EVP_PKEY_EC
,
0
,
0
,
"ec"
,
"OpenSSL EC algorithm"
,
eckey_pub_decode
,
eckey_pub_encode
,
...
...
crypto/evp/Makefile
浏览文件 @
d82e2718
...
...
@@ -354,9 +354,8 @@ evp_pbe.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
evp_pbe.o
:
../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
evp_pbe.o
:
../cryptlib.h evp_pbe.c
evp_pkey.o
:
../../e_os.h ../../include/openssl/asn1.h
evp_pkey.o
:
../../include/openssl/bio.h ../../include/openssl/bn.h
evp_pkey.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
evp_pkey.o
:
../../include/openssl/dsa.h ../../include/openssl/e_os2.h
evp_pkey.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
evp_pkey.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
evp_pkey.o
:
../../include/openssl/ec.h ../../include/openssl/ecdh.h
evp_pkey.o
:
../../include/openssl/ecdsa.h ../../include/openssl/err.h
evp_pkey.o
:
../../include/openssl/evp.h ../../include/openssl/lhash.h
...
...
@@ -364,10 +363,10 @@ evp_pkey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
evp_pkey.o
:
../../include/openssl/opensslconf.h
evp_pkey.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
evp_pkey.o
:
../../include/openssl/pkcs7.h ../../include/openssl/rand.h
evp_pkey.o
:
../../include/openssl/
rsa.h ../../include/openssl/safestack
.h
evp_pkey.o
:
../../include/openssl/s
ha.h ../../include/openssl/stack
.h
evp_pkey.o
:
../../include/openssl/
symhacks.h ../../include/openssl/x509
.h
evp_pkey.o
:
../
../include/openssl/x509_vfy
.h ../cryptlib.h evp_pkey.c
evp_pkey.o
:
../../include/openssl/
safestack.h ../../include/openssl/sha
.h
evp_pkey.o
:
../../include/openssl/s
tack.h ../../include/openssl/symhacks
.h
evp_pkey.o
:
../../include/openssl/
x509.h ../../include/openssl/x509_vfy
.h
evp_pkey.o
:
../
asn1/asn1_locl
.h ../cryptlib.h evp_pkey.c
m_dss.o
:
../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
m_dss.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
m_dss.o
:
../../include/openssl/dsa.h ../../include/openssl/e_os2.h
...
...
@@ -596,7 +595,8 @@ p_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
p_lib.o
:
../../include/openssl/rsa.h ../../include/openssl/safestack.h
p_lib.o
:
../../include/openssl/sha.h ../../include/openssl/stack.h
p_lib.o
:
../../include/openssl/symhacks.h ../../include/openssl/x509.h
p_lib.o
:
../../include/openssl/x509_vfy.h ../cryptlib.h p_lib.c
p_lib.o
:
../../include/openssl/x509_vfy.h ../asn1/asn1_locl.h ../cryptlib.h
p_lib.o
:
p_lib.c
p_open.o
:
../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
p_open.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
p_open.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
...
...
crypto/evp/evp.h
浏览文件 @
d82e2718
...
...
@@ -856,6 +856,28 @@ int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
void
EVP_PBE_cleanup
(
void
);
const
EVP_PKEY_ASN1_METHOD
*
EVP_PKEY_asn1_find
(
int
type
);
int
EVP_PKEY_asn1_add
(
const
EVP_PKEY_ASN1_METHOD
*
ameth
);
EVP_PKEY_ASN1_METHOD
*
EVP_PKEY_asn1_new
(
int
id
,
const
char
*
pem_str
,
const
char
*
info
);
void
EVP_PKEY_asn1_free
(
EVP_PKEY_ASN1_METHOD
*
ameth
);
void
EVP_PKEY_asn1_set_private
(
EVP_PKEY_ASN1_METHOD
*
ameth
,
int
(
*
priv_decode
)(
EVP_PKEY
*
pk
,
PKCS8_PRIV_KEY_INFO
*
p8inf
),
int
(
*
priv_encode
)(
PKCS8_PRIV_KEY_INFO
*
p8
,
const
EVP_PKEY
*
pk
),
int
(
*
priv_print
)(
BIO
*
out
,
const
EVP_PKEY
*
pkey
,
int
indent
,
ASN1_PCTX
*
pctx
));
void
EVP_PKEY_asn1_set_param
(
EVP_PKEY_ASN1_METHOD
*
ameth
,
int
(
*
param_decode
)(
const
EVP_PKEY
*
pk
,
X509_PUBKEY
*
pub
),
int
(
*
param_encode
)(
X509_PUBKEY
*
pub
,
const
EVP_PKEY
*
pk
),
int
(
*
param_missing
)(
const
EVP_PKEY
*
pk
),
int
(
*
param_copy
)(
EVP_PKEY
*
to
,
const
EVP_PKEY
*
from
),
int
(
*
param_cmp
)(
const
EVP_PKEY
*
a
,
const
EVP_PKEY
*
b
),
int
(
*
param_print
)(
BIO
*
out
,
const
EVP_PKEY
*
pkey
,
int
indent
,
ASN1_PCTX
*
pctx
));
void
EVP_PKEY_asn1_set_free
(
EVP_PKEY_ASN1_METHOD
*
ameth
,
void
(
*
pkey_free
)(
EVP_PKEY
*
pkey
));
void
EVP_PKEY_asn1_set_ctrl
(
EVP_PKEY_ASN1_METHOD
*
ameth
,
void
(
*
pkey_ctrl
)(
EVP_PKEY
*
pkey
,
int
op
,
long
arg1
,
void
*
arg2
));
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
...
...
crypto/pem/pem_lib.c
浏览文件 @
d82e2718
...
...
@@ -57,6 +57,7 @@
*/
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
...
...
@@ -776,3 +777,24 @@ err:
BUF_MEM_free
(
dataB
);
return
(
0
);
}
/* Check pem string and return prefix length.
* If for example the pem_str == "RSA PRIVATE KEY" and suffix = "PRIVATE KEY"
* the return value is 3 for the string "RSA".
*/
int
pem_check_suffix
(
char
*
pem_str
,
char
*
suffix
)
{
int
pem_len
=
strlen
(
pem_str
);
int
suffix_len
=
strlen
(
suffix
);
char
*
p
;
if
(
suffix_len
+
1
>=
pem_len
)
return
0
;
if
(
strcmp
(
pem_str
-
suffix_len
,
suffix
))
return
0
;
p
=
pem_str
-
suffix_len
-
1
;
if
(
*
p
!=
' '
)
return
0
;
return
p
-
pem_str
;
}
crypto/rsa/Makefile
浏览文件 @
d82e2718
...
...
@@ -78,6 +78,21 @@ clean:
# DO NOT DELETE THIS LINE -- make depend depends on it.
rsa_ameth.o
:
../../e_os.h ../../include/openssl/asn1.h
rsa_ameth.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
rsa_ameth.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
rsa_ameth.o
:
../../include/openssl/e_os2.h ../../include/openssl/ec.h
rsa_ameth.o
:
../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
rsa_ameth.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
rsa_ameth.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
rsa_ameth.o
:
../../include/openssl/objects.h
rsa_ameth.o
:
../../include/openssl/opensslconf.h
rsa_ameth.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
rsa_ameth.o
:
../../include/openssl/pkcs7.h ../../include/openssl/rsa.h
rsa_ameth.o
:
../../include/openssl/safestack.h ../../include/openssl/sha.h
rsa_ameth.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
rsa_ameth.o
:
../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
rsa_ameth.o
:
../asn1/asn1_locl.h ../cryptlib.h rsa_ameth.c
rsa_asn1.o
:
../../e_os.h ../../include/openssl/asn1.h
rsa_asn1.o
:
../../include/openssl/asn1t.h ../../include/openssl/bio.h
rsa_asn1.o
:
../../include/openssl/bn.h ../../include/openssl/buffer.h
...
...
@@ -179,6 +194,16 @@ rsa_pk1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
rsa_pk1.o
:
../../include/openssl/rand.h ../../include/openssl/rsa.h
rsa_pk1.o
:
../../include/openssl/safestack.h ../../include/openssl/stack.h
rsa_pk1.o
:
../../include/openssl/symhacks.h ../cryptlib.h rsa_pk1.c
rsa_prn.o
:
../../e_os.h ../../include/openssl/asn1.h
rsa_prn.o
:
../../include/openssl/bio.h ../../include/openssl/buffer.h
rsa_prn.o
:
../../include/openssl/crypto.h ../../include/openssl/e_os2.h
rsa_prn.o
:
../../include/openssl/err.h ../../include/openssl/evp.h
rsa_prn.o
:
../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
rsa_prn.o
:
../../include/openssl/objects.h ../../include/openssl/opensslconf.h
rsa_prn.o
:
../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
rsa_prn.o
:
../../include/openssl/rsa.h ../../include/openssl/safestack.h
rsa_prn.o
:
../../include/openssl/stack.h ../../include/openssl/symhacks.h
rsa_prn.o
:
../cryptlib.h rsa_prn.c
rsa_pss.o
:
../../e_os.h ../../include/openssl/asn1.h
rsa_pss.o
:
../../include/openssl/bio.h ../../include/openssl/bn.h
rsa_pss.o
:
../../include/openssl/buffer.h ../../include/openssl/crypto.h
...
...
crypto/rsa/rsa_ameth.c
浏览文件 @
d82e2718
...
...
@@ -256,6 +256,9 @@ const EVP_PKEY_ASN1_METHOD rsa_asn1_meths[] =
EVP_PKEY_RSA
,
0
,
"rsa"
,
"OpenSSL RSA method"
,
rsa_pub_decode
,
rsa_pub_encode
,
rsa_pub_cmp
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录