Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a2dbcf36
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,发现更多精彩内容 >>
提交
a2dbcf36
编写于
11月 18, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove redundant functions
上级
46633554
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
49 deletion
+6
-49
crypto/ec/ec_lcl.h
crypto/ec/ec_lcl.h
+0
-4
crypto/ec/ecp_nist.c
crypto/ec/ecp_nist.c
+6
-45
未找到文件。
crypto/ec/ec_lcl.h
浏览文件 @
a2dbcf36
...
...
@@ -317,11 +317,7 @@ int ec_GFp_recp_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *
/* method functions in ecp_nist.c */
int
ec_GFp_nist_group_init
(
EC_GROUP
*
);
int
ec_GFp_nist_group_set_curve
(
EC_GROUP
*
,
const
BIGNUM
*
p
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
);
void
ec_GFp_nist_group_finish
(
EC_GROUP
*
);
void
ec_GFp_nist_group_clear_finish
(
EC_GROUP
*
);
int
ec_GFp_nist_group_copy
(
EC_GROUP
*
,
const
EC_GROUP
*
);
int
ec_GFp_nist_field_mul
(
const
EC_GROUP
*
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
);
int
ec_GFp_nist_field_sqr
(
const
EC_GROUP
*
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
BN_CTX
*
);
...
...
crypto/ec/ecp_nist.c
浏览文件 @
a2dbcf36
...
...
@@ -69,10 +69,10 @@ const EC_METHOD *EC_GFp_nist_method(void)
{
static
const
EC_METHOD
ret
=
{
NID_X9_62_prime_field
,
ec_GFp_
nist
_group_init
,
ec_GFp_
nist
_group_finish
,
ec_GFp_
nist
_group_clear_finish
,
ec_GFp_
nist
_group_copy
,
ec_GFp_
simple
_group_init
,
ec_GFp_
simple
_group_finish
,
ec_GFp_
simple
_group_clear_finish
,
ec_GFp_
simple
_group_copy
,
ec_GFp_nist_group_set_curve
,
ec_GFp_simple_group_get_curve
,
ec_GFp_simple_group_get_degree
,
...
...
@@ -113,47 +113,6 @@ const EC_METHOD *EC_GFp_nist_method(void)
#define NO_32_BIT_TYPE
#endif
int
ec_GFp_nist_group_init
(
EC_GROUP
*
group
)
{
int
ok
;
ok
=
ec_GFp_simple_group_init
(
group
);
return
ok
;
}
void
ec_GFp_nist_group_finish
(
EC_GROUP
*
group
)
{
BN_free
(
&
group
->
field
);
BN_free
(
&
group
->
a
);
BN_free
(
&
group
->
b
);
}
void
ec_GFp_nist_group_clear_finish
(
EC_GROUP
*
group
)
{
BN_clear_free
(
&
group
->
field
);
BN_clear_free
(
&
group
->
a
);
BN_clear_free
(
&
group
->
b
);
}
int
ec_GFp_nist_group_copy
(
EC_GROUP
*
dest
,
const
EC_GROUP
*
src
)
{
if
(
dest
==
NULL
||
src
==
NULL
)
return
0
;
if
(
!
BN_copy
(
&
dest
->
field
,
&
src
->
field
))
return
0
;
if
(
!
BN_copy
(
&
dest
->
a
,
&
src
->
a
))
return
0
;
if
(
!
BN_copy
(
&
dest
->
b
,
&
src
->
b
))
return
0
;
dest
->
curve_name
=
src
->
curve_name
;
dest
->
a_is_minus3
=
src
->
a_is_minus3
;
return
1
;
}
int
ec_GFp_nist_group_set_curve
(
EC_GROUP
*
group
,
const
BIGNUM
*
p
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
ctx
)
...
...
@@ -229,6 +188,7 @@ int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
return
ret
;
}
int
ec_GFp_nist_field_mul
(
const
EC_GROUP
*
group
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
ctx
)
{
...
...
@@ -254,6 +214,7 @@ err:
return
ret
;
}
int
ec_GFp_nist_field_sqr
(
const
EC_GROUP
*
group
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
BN_CTX
*
ctx
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录