Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
44181ea8
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看板
提交
44181ea8
编写于
9月 21, 2006
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add missing prototype. Fix various warnings (C++ comments, ; outside function).
上级
c80c7bf9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
15 deletion
+18
-15
crypto/engine/engine.h
crypto/engine/engine.h
+1
-0
engines/ccgost/gost_asn1.c
engines/ccgost/gost_asn1.c
+6
-6
engines/ccgost/gost_crypt.c
engines/ccgost/gost_crypt.c
+2
-0
engines/ccgost/gost_eng.c
engines/ccgost/gost_eng.c
+6
-6
engines/ccgost/gost_lcl.h
engines/ccgost/gost_lcl.h
+1
-1
engines/ccgost/gost_pmeth.c
engines/ccgost/gost_pmeth.c
+2
-2
未找到文件。
crypto/engine/engine.h
浏览文件 @
44181ea8
...
@@ -336,6 +336,7 @@ void ENGINE_load_ubsec(void);
...
@@ -336,6 +336,7 @@ void ENGINE_load_ubsec(void);
#endif
#endif
void
ENGINE_load_cryptodev
(
void
);
void
ENGINE_load_cryptodev
(
void
);
void
ENGINE_load_padlock
(
void
);
void
ENGINE_load_padlock
(
void
);
void
ENGINE_load_gost
(
void
);
void
ENGINE_load_builtin_engines
(
void
);
void
ENGINE_load_builtin_engines
(
void
);
/* Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation
/* Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation
...
...
engines/ccgost/gost_asn1.c
浏览文件 @
44181ea8
...
@@ -37,19 +37,19 @@ ASN1_NDEF_SEQUENCE(GOST_KEY_PARAMS) = {
...
@@ -37,19 +37,19 @@ ASN1_NDEF_SEQUENCE(GOST_KEY_PARAMS) = {
ASN1_SIMPLE
(
GOST_KEY_PARAMS
,
key_params
,
ASN1_OBJECT
),
ASN1_SIMPLE
(
GOST_KEY_PARAMS
,
key_params
,
ASN1_OBJECT
),
ASN1_SIMPLE
(
GOST_KEY_PARAMS
,
hash_params
,
ASN1_OBJECT
),
ASN1_SIMPLE
(
GOST_KEY_PARAMS
,
hash_params
,
ASN1_OBJECT
),
ASN1_OPT
(
GOST_KEY_PARAMS
,
cipher_params
,
ASN1_OBJECT
),
ASN1_OPT
(
GOST_KEY_PARAMS
,
cipher_params
,
ASN1_OBJECT
),
}
ASN1_NDEF_SEQUENCE_END
(
GOST_KEY_PARAMS
)
;
}
ASN1_NDEF_SEQUENCE_END
(
GOST_KEY_PARAMS
)
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_KEY_PARAMS
)
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_KEY_PARAMS
)
ASN1_NDEF_SEQUENCE
(
GOST_CIPHER_PARAMS
)
=
{
ASN1_NDEF_SEQUENCE
(
GOST_CIPHER_PARAMS
)
=
{
ASN1_SIMPLE
(
GOST_CIPHER_PARAMS
,
iv
,
ASN1_OCTET_STRING
),
ASN1_SIMPLE
(
GOST_CIPHER_PARAMS
,
iv
,
ASN1_OCTET_STRING
),
ASN1_SIMPLE
(
GOST_CIPHER_PARAMS
,
enc_param_set
,
ASN1_OBJECT
),
ASN1_SIMPLE
(
GOST_CIPHER_PARAMS
,
enc_param_set
,
ASN1_OBJECT
),
}
ASN1_NDEF_SEQUENCE_END
(
GOST_CIPHER_PARAMS
)
;
}
ASN1_NDEF_SEQUENCE_END
(
GOST_CIPHER_PARAMS
)
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_CIPHER_PARAMS
)
;
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_CIPHER_PARAMS
)
ASN1_NDEF_SEQUENCE
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
=
{
/
/FIXME incomplete
ASN1_NDEF_SEQUENCE
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
=
{
/
*FIXME incomplete*/
ASN1_SIMPLE
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
,
gkt
,
GOST_KEY_TRANSPORT
)
ASN1_SIMPLE
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
,
gkt
,
GOST_KEY_TRANSPORT
)
}
ASN1_NDEF_SEQUENCE_END
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
;
}
ASN1_NDEF_SEQUENCE_END
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
;
IMPLEMENT_ASN1_FUNCTIONS
(
GOST_CLIENT_KEY_EXCHANGE_PARAMS
)
engines/ccgost/gost_crypt.c
浏览文件 @
44181ea8
...
@@ -23,9 +23,11 @@ static int gost_cipher_init_cpa(EVP_CIPHER_CTX *ctx, const unsigned char *key,
...
@@ -23,9 +23,11 @@ static int gost_cipher_init_cpa(EVP_CIPHER_CTX *ctx, const unsigned char *key,
/* Handles block of data in CFB mode */
/* Handles block of data in CFB mode */
static
int
gost_cipher_do_cfb
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
static
int
gost_cipher_do_cfb
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
const
unsigned
char
*
in
,
unsigned
int
inl
);
const
unsigned
char
*
in
,
unsigned
int
inl
);
#if 0
/* Handles block of data in CNT mode */
/* Handles block of data in CNT mode */
static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out,
static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out,
const unsigned char *in, unsigned int inl);
const unsigned char *in, unsigned int inl);
#endif
/* Cleanup function */
/* Cleanup function */
static
int
gost_cipher_cleanup
(
EVP_CIPHER_CTX
*
);
static
int
gost_cipher_cleanup
(
EVP_CIPHER_CTX
*
);
/* set/get cipher parameters */
/* set/get cipher parameters */
...
...
engines/ccgost/gost_eng.c
浏览文件 @
44181ea8
...
@@ -145,16 +145,16 @@ static int bind_gost (ENGINE *e,const char *id)
...
@@ -145,16 +145,16 @@ static int bind_gost (ENGINE *e,const char *id)
extern
__declspec
(
dllexport
)
extern
__declspec
(
dllexport
)
#endif
#endif
/
/#ifndef OPENSSL_NO_DYNAMIC_ENGINE
/
*#ifndef OPENSSL_NO_DYNAMIC_ENGINE*/
IMPLEMENT_DYNAMIC_BIND_FN
(
bind_gost
)
;
IMPLEMENT_DYNAMIC_BIND_FN
(
bind_gost
)
#ifdef _WIN32
#ifdef _WIN32
extern
__declspec
(
dllexport
)
extern
__declspec
(
dllexport
)
#endif
#endif
IMPLEMENT_DYNAMIC_CHECK_FN
()
;
IMPLEMENT_DYNAMIC_CHECK_FN
()
/
/#else
/
*#else*/
/
/#endif /*
OPENSSL_NO_DYNAMIC_ENGINE */
/
*#endif
OPENSSL_NO_DYNAMIC_ENGINE */
static
int
gost_digests
(
ENGINE
*
e
,
const
EVP_MD
**
digest
,
static
int
gost_digests
(
ENGINE
*
e
,
const
EVP_MD
**
digest
,
const
int
**
nids
,
int
nid
)
const
int
**
nids
,
int
nid
)
...
@@ -165,7 +165,7 @@ static int gost_digests(ENGINE *e, const EVP_MD **digest,
...
@@ -165,7 +165,7 @@ static int gost_digests(ENGINE *e, const EVP_MD **digest,
*
nids
=
gost_digest_nids
;
*
nids
=
gost_digest_nids
;
return
1
;
return
1
;
}
}
/
/printf("Digest no %d requested\n",nid);
/
*printf("Digest no %d requested\n",nid);*/
if
(
nid
==
NID_id_GostR3411_94
)
if
(
nid
==
NID_id_GostR3411_94
)
{
{
*
digest
=
&
digest_gost
;
*
digest
=
&
digest_gost
;
...
...
engines/ccgost/gost_lcl.h
浏览文件 @
44181ea8
...
@@ -68,7 +68,7 @@ typedef struct {
...
@@ -68,7 +68,7 @@ typedef struct {
DECLARE_ASN1_FUNCTIONS
(
GOST_KEY_TRANSPORT
)
DECLARE_ASN1_FUNCTIONS
(
GOST_KEY_TRANSPORT
)
typedef
struct
{
/
/FIXME incomplete
typedef
struct
{
/
* FIXME incomplete */
GOST_KEY_TRANSPORT
*
gkt
;
GOST_KEY_TRANSPORT
*
gkt
;
}
GOST_CLIENT_KEY_EXCHANGE_PARAMS
;
}
GOST_CLIENT_KEY_EXCHANGE_PARAMS
;
...
...
engines/ccgost/gost_pmeth.c
浏览文件 @
44181ea8
...
@@ -555,14 +555,14 @@ int register_pmeth_gost(int id, EVP_PKEY_METHOD **pmeth,int flags)
...
@@ -555,14 +555,14 @@ int register_pmeth_gost(int id, EVP_PKEY_METHOD **pmeth,int flags)
pkey_gost_encrypt_init
,
pkey_GOST01cp_encrypt
);
pkey_gost_encrypt_init
,
pkey_GOST01cp_encrypt
);
EVP_PKEY_meth_set_decrypt
(
*
pmeth
,
NULL
,
pkey_GOST01cp_decrypt
);
EVP_PKEY_meth_set_decrypt
(
*
pmeth
,
NULL
,
pkey_GOST01cp_decrypt
);
break
;
break
;
default:
/
/Unsupported method
default:
/
*Unsupported method*/
return
0
;
return
0
;
}
}
EVP_PKEY_meth_set_init
(
*
pmeth
,
pkey_gost_init
);
EVP_PKEY_meth_set_init
(
*
pmeth
,
pkey_gost_init
);
EVP_PKEY_meth_set_cleanup
(
*
pmeth
,
pkey_gost_cleanup
);
EVP_PKEY_meth_set_cleanup
(
*
pmeth
,
pkey_gost_cleanup
);
EVP_PKEY_meth_set_copy
(
*
pmeth
,
pkey_gost_copy
);
EVP_PKEY_meth_set_copy
(
*
pmeth
,
pkey_gost_copy
);
/
/FIXME derive etc...
/
*FIXME derive etc...*/
return
1
;
return
1
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录