Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
1631d5f9
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看板
提交
1631d5f9
编写于
5月 17, 2006
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
HMAC OIDs from RFC4231.
上级
98c82b89
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
68 addition
and
23 deletion
+68
-23
apps/privkey.pem
apps/privkey.pem
+8
-18
crypto/evp/evp_pbe.c
crypto/evp/evp_pbe.c
+4
-0
crypto/objects/obj_dat.h
crypto/objects/obj_dat.h
+29
-5
crypto/objects/obj_mac.h
crypto/objects/obj_mac.h
+16
-0
crypto/objects/obj_mac.num
crypto/objects/obj_mac.num
+4
-0
crypto/objects/objects.txt
crypto/objects/objects.txt
+7
-0
未找到文件。
apps/privkey.pem
浏览文件 @
1631d5f9
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,BA26229A1653B7FF
6nhWG8PKhTPO/s3ZvjUa6226NlKdvPDZFsNXOOoSUs9ejxpb/aj5huhs6qRYzsz9
Year47uaAZYhGD0vAagnNiBnYmjWEpN9G/wQxG7pgZThK1ZxDi63qn8aQ8UjuGHo
F6RpnnBQIAnWTWqr/Qsybtc5EoNkrj/Cpx0OfbSr6gZsFBC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p_pbe.c
浏览文件 @
1631d5f9
...
...
@@ -113,6 +113,10 @@ EVP_PBE_CTL builtin_pbe[] =
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithSHA1
,
-
1
,
NID_sha1
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_id_HMACGostR3411_94
,
-
1
,
NID_id_GostR3411_94
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithMD5
,
-
1
,
NID_md5
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithSHA224
,
-
1
,
NID_sha224
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithSHA256
,
-
1
,
NID_sha256
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithSHA384
,
-
1
,
NID_sha384
,
0
},
{
EVP_PBE_TYPE_PRF
,
NID_hmacWithSHA512
,
-
1
,
NID_sha512
,
0
},
};
#ifdef TEST
...
...
crypto/objects/obj_dat.h
浏览文件 @
1631d5f9
...
...
@@ -62,12 +62,12 @@
* [including the GNU Public Licence.]
*/
#define NUM_NID 80
3
#define NUM_SN
799
#define NUM_LN
799
#define NUM_OBJ 76
1
#define NUM_NID 80
7
#define NUM_SN
803
#define NUM_LN
803
#define NUM_OBJ 76
5
static
unsigned
char
lvalues
[
53
53
]
=
{
static
unsigned
char
lvalues
[
53
85
]
=
{
0x00
,
/* [ 0] OBJ_undef */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
/* [ 1] OBJ_rsadsi */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x01
,
/* [ 7] OBJ_pkcs */
...
...
@@ -829,6 +829,10 @@ static unsigned char lvalues[5353]={
0x2A
,
0x85
,
0x03
,
0x02
,
0x09
,
0x01
,
0x03
,
0x04
,
/* [5328] OBJ_id_GostR3411_94_with_GostR3410_2001_cc */
0x2A
,
0x85
,
0x03
,
0x02
,
0x09
,
0x01
,
0x08
,
0x01
,
/* [5336] OBJ_id_GostR3410_2001_ParamSet_cc */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x02
,
0x06
,
/* [5344] OBJ_hmacWithMD5 */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x02
,
0x08
,
/* [5352] OBJ_hmacWithSHA224 */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x02
,
0x09
,
/* [5360] OBJ_hmacWithSHA256 */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x02
,
0x0A
,
/* [5368] OBJ_hmacWithSHA384 */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x02
,
0x0B
,
/* [5376] OBJ_hmacWithSHA512 */
};
static
ASN1_OBJECT
nid_objs
[
NUM_NID
]
=
{
...
...
@@ -2124,6 +2128,14 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
"GOST R 3410-2001 Parameter Set Cryptocom"
,
NID_id_GostR3410_2001_ParamSet_cc
,
8
,
&
(
lvalues
[
5336
]),
0
},
{
"hmacWithMD5"
,
"hmacWithMD5"
,
NID_hmacWithMD5
,
8
,
&
(
lvalues
[
5344
]),
0
},
{
"hmacWithSHA224"
,
"hmacWithSHA224"
,
NID_hmacWithSHA224
,
8
,
&
(
lvalues
[
5352
]),
0
},
{
"hmacWithSHA256"
,
"hmacWithSHA256"
,
NID_hmacWithSHA256
,
8
,
&
(
lvalues
[
5360
]),
0
},
{
"hmacWithSHA384"
,
"hmacWithSHA384"
,
NID_hmacWithSHA384
,
8
,
&
(
lvalues
[
5368
]),
0
},
{
"hmacWithSHA512"
,
"hmacWithSHA512"
,
NID_hmacWithSHA512
,
8
,
&
(
lvalues
[
5376
]),
0
},
};
static
ASN1_OBJECT
*
sn_objs
[
NUM_SN
]
=
{
...
...
@@ -2376,6 +2388,10 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
797
]),
/* "gost94cc" */
&
(
nid_objs
[
802
]),
/* "hmacWithMD5" */
&
(
nid_objs
[
163
]),
/* "hmacWithSHA1" */
&
(
nid_objs
[
803
]),
/* "hmacWithSHA224" */
&
(
nid_objs
[
804
]),
/* "hmacWithSHA256" */
&
(
nid_objs
[
805
]),
/* "hmacWithSHA384" */
&
(
nid_objs
[
806
]),
/* "hmacWithSHA512" */
&
(
nid_objs
[
432
]),
/* "holdInstructionCallIssuer" */
&
(
nid_objs
[
430
]),
/* "holdInstructionCode" */
&
(
nid_objs
[
431
]),
/* "holdInstructionNone" */
...
...
@@ -3191,6 +3207,10 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
99
]),
/* "givenName" */
&
(
nid_objs
[
802
]),
/* "hmacWithMD5" */
&
(
nid_objs
[
163
]),
/* "hmacWithSHA1" */
&
(
nid_objs
[
803
]),
/* "hmacWithSHA224" */
&
(
nid_objs
[
804
]),
/* "hmacWithSHA256" */
&
(
nid_objs
[
805
]),
/* "hmacWithSHA384" */
&
(
nid_objs
[
806
]),
/* "hmacWithSHA512" */
&
(
nid_objs
[
486
]),
/* "homePostalAddress" */
&
(
nid_objs
[
473
]),
/* "homeTelephoneNumber" */
&
(
nid_objs
[
466
]),
/* "host" */
...
...
@@ -4100,6 +4120,10 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
&
(
nid_objs
[
4
]),
/* OBJ_md5 1 2 840 113549 2 5 */
&
(
nid_objs
[
802
]),
/* OBJ_hmacWithMD5 1 2 840 113549 2 6 */
&
(
nid_objs
[
163
]),
/* OBJ_hmacWithSHA1 1 2 840 113549 2 7 */
&
(
nid_objs
[
803
]),
/* OBJ_hmacWithSHA224 1 2 840 113549 2 8 */
&
(
nid_objs
[
804
]),
/* OBJ_hmacWithSHA256 1 2 840 113549 2 9 */
&
(
nid_objs
[
805
]),
/* OBJ_hmacWithSHA384 1 2 840 113549 2 10 */
&
(
nid_objs
[
806
]),
/* OBJ_hmacWithSHA512 1 2 840 113549 2 11 */
&
(
nid_objs
[
37
]),
/* OBJ_rc2_cbc 1 2 840 113549 3 2 */
&
(
nid_objs
[
5
]),
/* OBJ_rc4 1 2 840 113549 3 4 */
&
(
nid_objs
[
44
]),
/* OBJ_des_ede3_cbc 1 2 840 113549 3 7 */
...
...
crypto/objects/obj_mac.h
浏览文件 @
1631d5f9
...
...
@@ -1083,6 +1083,22 @@
#define NID_hmacWithSHA1 163
#define OBJ_hmacWithSHA1 OBJ_rsadsi,2L,7L
#define LN_hmacWithSHA224 "hmacWithSHA224"
#define NID_hmacWithSHA224 803
#define OBJ_hmacWithSHA224 OBJ_rsadsi,2L,8L
#define LN_hmacWithSHA256 "hmacWithSHA256"
#define NID_hmacWithSHA256 804
#define OBJ_hmacWithSHA256 OBJ_rsadsi,2L,9L
#define LN_hmacWithSHA384 "hmacWithSHA384"
#define NID_hmacWithSHA384 805
#define OBJ_hmacWithSHA384 OBJ_rsadsi,2L,10L
#define LN_hmacWithSHA512 "hmacWithSHA512"
#define NID_hmacWithSHA512 806
#define OBJ_hmacWithSHA512 OBJ_rsadsi,2L,11L
#define SN_rc2_cbc "RC2-CBC"
#define LN_rc2_cbc "rc2-cbc"
#define NID_rc2_cbc 37
...
...
crypto/objects/obj_mac.num
浏览文件 @
1631d5f9
...
...
@@ -800,3 +800,7 @@ id_GostR3411_94_with_GostR3410_94_cc 799
id_GostR3411_94_with_GostR3410_2001_cc 800
id_GostR3410_2001_ParamSet_cc 801
hmacWithMD5 802
hmacWithSHA224 803
hmacWithSHA256 804
hmacWithSHA384 805
hmacWithSHA512 806
crypto/objects/objects.txt
浏览文件 @
1631d5f9
...
...
@@ -340,6 +340,13 @@ rsadsi 2 5 : MD5 : md5
: MD5-SHA1 : md5-sha1
rsadsi 2 6 : : hmacWithMD5
rsadsi 2 7 : : hmacWithSHA1
# From RFC4231
rsadsi 2 8 : : hmacWithSHA224
rsadsi 2 9 : : hmacWithSHA256
rsadsi 2 10 : : hmacWithSHA384
rsadsi 2 11 : : hmacWithSHA512
rsadsi 3 2 : RC2-CBC : rc2-cbc
: RC2-ECB : rc2-ecb
!Cname rc2-cfb64
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录