Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
c8fa2356
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c8fa2356
编写于
2月 02, 2015
作者:
R
Rich Salz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Dead code cleanup: crypto/ec,ecdh,ecdsa
Reviewed-by:
N
Andy Polyakov
<
appro@openssl.org
>
上级
f16a64d1
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
0 addition
and
59 deletion
+0
-59
crypto/ec/ec_curve.c
crypto/ec/ec_curve.c
+0
-20
crypto/ecdh/ech_lib.c
crypto/ecdh/ech_lib.c
+0
-16
crypto/ecdh/ech_locl.h
crypto/ecdh/ech_locl.h
+0
-4
crypto/ecdh/ech_ossl.c
crypto/ecdh/ech_ossl.c
+0
-4
crypto/ecdsa/ecs_lib.c
crypto/ecdsa/ecs_lib.c
+0
-7
crypto/ecdsa/ecs_locl.h
crypto/ecdsa/ecs_locl.h
+0
-4
crypto/ecdsa/ecs_ossl.c
crypto/ecdsa/ecs_ossl.c
+0
-4
未找到文件。
crypto/ec/ec_curve.c
浏览文件 @
c8fa2356
...
...
@@ -1061,16 +1061,6 @@ static const struct {
NID_X9_62_characteristic_two_field
,
0
,
21
,
2
},
{
/* no seed */
# if 0
/*
* The algorithm used to derive the curve parameters from the seed
* used here is slightly different than the algorithm described in
* X9.62 .
*/
0x24
,
0xB7
,
0xB1
,
0x37
,
0xC8
,
0xA1
,
0x4D
,
0x69
,
0x6E
,
0x67
,
0x68
,
0x75
,
0x61
,
0x51
,
0x75
,
0x6F
,
0xD0
,
0xDA
,
0x2E
,
0x5C
,
# endif
/* p */
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xC9
,
...
...
@@ -1100,16 +1090,6 @@ static const struct {
NID_X9_62_characteristic_two_field
,
0
,
21
,
2
},
{
/* no seed */
# if 0
/*
* The seed here was used to created the curve parameters in normal
* basis representation (and not the polynomial representation used
* here)
*/
0x85
,
0xE2
,
0x5B
,
0xFE
,
0x5C
,
0x86
,
0x22
,
0x6C
,
0xDB
,
0x12
,
0x01
,
0x6F
,
0x75
,
0x53
,
0xF9
,
0xD0
,
0xE6
,
0x93
,
0xA2
,
0x68
,
# endif
/* p */
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xC9
,
...
...
crypto/ecdh/ech_lib.c
浏览文件 @
c8fa2356
...
...
@@ -103,11 +103,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
if
(
ecdh
==
NULL
)
return
0
;
#if 0
mtmp = ecdh->meth;
if (mtmp->finish)
mtmp->finish(eckey);
#endif
#ifndef OPENSSL_NO_ENGINE
if
(
ecdh
->
engine
)
{
ENGINE_finish
(
ecdh
->
engine
);
...
...
@@ -115,10 +110,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
}
#endif
ecdh
->
meth
=
meth
;
#if 0
if (meth->init)
meth->init(eckey);
#endif
return
1
;
}
...
...
@@ -152,13 +143,6 @@ static ECDH_DATA *ECDH_DATA_new_method(ENGINE *engine)
ret
->
flags
=
ret
->
meth
->
flags
;
CRYPTO_new_ex_data
(
CRYPTO_EX_INDEX_ECDH
,
ret
,
&
ret
->
ex_data
);
#if 0
if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data);
OPENSSL_free(ret);
ret = NULL;
}
#endif
return
(
ret
);
}
...
...
crypto/ecdh/ech_locl.h
浏览文件 @
c8fa2356
...
...
@@ -68,10 +68,6 @@ struct ecdh_method {
EC_KEY
*
ecdh
,
void
*
(
*
KDF
)
(
const
void
*
in
,
size_t
inlen
,
void
*
out
,
size_t
*
outlen
));
# if 0
int
(
*
init
)
(
EC_KEY
*
eckey
);
int
(
*
finish
)
(
EC_KEY
*
eckey
);
# endif
int
flags
;
char
*
app_data
;
};
...
...
crypto/ecdh/ech_ossl.c
浏览文件 @
c8fa2356
...
...
@@ -86,10 +86,6 @@ static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key,
static
ECDH_METHOD
openssl_ecdh_meth
=
{
"OpenSSL ECDH method"
,
ecdh_compute_key
,
#if 0
NULL, /* init */
NULL, /* finish */
#endif
ECDH_FLAG_FIPS_METHOD
,
/* flags */
NULL
/* app_data */
};
...
...
crypto/ecdsa/ecs_lib.c
浏览文件 @
c8fa2356
...
...
@@ -131,13 +131,6 @@ static ECDSA_DATA *ECDSA_DATA_new_method(ENGINE *engine)
ret
->
flags
=
ret
->
meth
->
flags
;
CRYPTO_new_ex_data
(
CRYPTO_EX_INDEX_ECDSA
,
ret
,
&
ret
->
ex_data
);
#if 0
if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDSA, ret, &ret->ex_data);
OPENSSL_free(ret);
ret = NULL;
}
#endif
return
(
ret
);
}
...
...
crypto/ecdsa/ecs_locl.h
浏览文件 @
c8fa2356
...
...
@@ -74,10 +74,6 @@ struct ecdsa_method {
BIGNUM
**
r
);
int
(
*
ecdsa_do_verify
)
(
const
unsigned
char
*
dgst
,
int
dgst_len
,
const
ECDSA_SIG
*
sig
,
EC_KEY
*
eckey
);
# if 0
int
(
*
init
)
(
EC_KEY
*
eckey
);
int
(
*
finish
)
(
EC_KEY
*
eckey
);
# endif
int
flags
;
void
*
app_data
;
};
...
...
crypto/ecdsa/ecs_ossl.c
浏览文件 @
c8fa2356
...
...
@@ -77,10 +77,6 @@ static ECDSA_METHOD openssl_ecdsa_meth = {
ecdsa_do_sign
,
ecdsa_sign_setup_no_digest
,
ecdsa_do_verify
,
#if 0
NULL, /* init */
NULL, /* finish */
#endif
ECDSA_FLAG_FIPS_METHOD
,
/* flags */
NULL
/* app_data */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录