Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
dd616752
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,发现更多精彩内容 >>
提交
dd616752
编写于
1月 19, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
oops, revert mistakenly committed EC changes
上级
198ce9a6
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
35 deletion
+5
-35
crypto/ec/ec2_smpl.c
crypto/ec/ec2_smpl.c
+1
-18
crypto/ec/ec_key.c
crypto/ec/ec_key.c
+1
-7
crypto/ec/ec_lcl.h
crypto/ec/ec_lcl.h
+0
-2
crypto/ec/ecp_smpl.c
crypto/ec/ecp_smpl.c
+3
-8
未找到文件。
crypto/ec/ec2_smpl.c
浏览文件 @
dd616752
...
...
@@ -363,11 +363,6 @@ int ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP *group, EC_POINT
if
(
!
BN_copy
(
&
point
->
Z
,
BN_value_one
()))
goto
err
;
BN_set_negative
(
&
point
->
Z
,
0
);
point
->
Z_is_one
=
1
;
if
(
BN_num_bits
(
x
)
>
BN_num_bits
(
&
group
->
field
))
ret
=
2
;
else
if
(
BN_num_bits
(
y
)
>
BN_num_bits
(
&
group
->
field
))
ret
=
2
;
else
ret
=
1
;
err:
...
...
@@ -943,9 +938,6 @@ int ec_GF2m_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT
return
EC_POINT_is_at_infinity
(
group
,
b
)
?
0
:
1
;
}
if
(
EC_POINT_is_at_infinity
(
group
,
b
))
return
1
;
if
(
a
->
Z_is_one
&&
b
->
Z_is_one
)
{
return
((
BN_cmp
(
&
a
->
X
,
&
b
->
X
)
==
0
)
&&
BN_cmp
(
&
a
->
Y
,
&
b
->
Y
)
==
0
)
?
0
:
1
;
...
...
@@ -975,15 +967,6 @@ int ec_GF2m_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT
return
ret
;
}
int
ec_GF2m_simple_range
(
const
EC_GROUP
*
group
,
const
EC_POINT
*
a
)
{
if
(
BN_num_bits
(
&
a
->
X
)
>
BN_num_bits
(
&
group
->
field
))
return
0
;
if
(
BN_num_bits
(
&
a
->
Y
)
>
BN_num_bits
(
&
group
->
field
))
return
0
;
return
1
;
}
/* Forces the given EC_POINT to internally use affine coordinates. */
int
ec_GF2m_simple_make_affine
(
const
EC_GROUP
*
group
,
EC_POINT
*
point
,
BN_CTX
*
ctx
)
...
...
crypto/ec/ec_key.c
浏览文件 @
dd616752
...
...
@@ -305,12 +305,6 @@ int EC_KEY_check_key(const EC_KEY *eckey)
return
0
;
}
if
(
EC_POINT_is_at_infinity
(
eckey
->
group
,
eckey
->
pub_key
))
{
ECerr
(
EC_F_EC_KEY_CHECK_KEY
,
EC_R_POINT_AT_INFINITY
);
goto
err
;
}
if
((
ctx
=
BN_CTX_new
())
==
NULL
)
goto
err
;
if
((
point
=
EC_POINT_new
(
eckey
->
group
))
==
NULL
)
...
...
crypto/ec/ec_lcl.h
浏览文件 @
dd616752
...
...
@@ -323,7 +323,6 @@ int ec_GFp_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);
int
ec_GFp_simple_is_at_infinity
(
const
EC_GROUP
*
,
const
EC_POINT
*
);
int
ec_GFp_simple_is_on_curve
(
const
EC_GROUP
*
,
const
EC_POINT
*
,
BN_CTX
*
);
int
ec_GFp_simple_cmp
(
const
EC_GROUP
*
,
const
EC_POINT
*
a
,
const
EC_POINT
*
b
,
BN_CTX
*
);
int
ec_GFp_simple_range
(
const
EC_GROUP
*
group
,
const
EC_POINT
*
a
);
int
ec_GFp_simple_make_affine
(
const
EC_GROUP
*
,
EC_POINT
*
,
BN_CTX
*
);
int
ec_GFp_simple_points_make_affine
(
const
EC_GROUP
*
,
size_t
num
,
EC_POINT
*
[],
BN_CTX
*
);
int
ec_GFp_simple_field_mul
(
const
EC_GROUP
*
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
);
...
...
@@ -380,7 +379,6 @@ int ec_GF2m_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);
int
ec_GF2m_simple_is_at_infinity
(
const
EC_GROUP
*
,
const
EC_POINT
*
);
int
ec_GF2m_simple_is_on_curve
(
const
EC_GROUP
*
,
const
EC_POINT
*
,
BN_CTX
*
);
int
ec_GF2m_simple_cmp
(
const
EC_GROUP
*
,
const
EC_POINT
*
a
,
const
EC_POINT
*
b
,
BN_CTX
*
);
int
ec_GF2m_simple_range
(
const
EC_GROUP
*
group
,
const
EC_POINT
*
a
);
int
ec_GF2m_simple_make_affine
(
const
EC_GROUP
*
,
EC_POINT
*
,
BN_CTX
*
);
int
ec_GF2m_simple_points_make_affine
(
const
EC_GROUP
*
,
size_t
num
,
EC_POINT
*
[],
BN_CTX
*
);
int
ec_GF2m_simple_field_mul
(
const
EC_GROUP
*
,
BIGNUM
*
r
,
const
BIGNUM
*
a
,
const
BIGNUM
*
b
,
BN_CTX
*
);
...
...
crypto/ec/ecp_smpl.c
浏览文件 @
dd616752
...
...
@@ -442,9 +442,6 @@ int ec_GFp_simple_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POIN
point
->
Z_is_one
=
Z_is_one
;
}
if
(
BN_cmp
(
&
point
->
X
,
x
)
||
BN_cmp
(
&
point
->
Y
,
y
))
ret
=
2
;
else
ret
=
1
;
err:
...
...
@@ -1410,9 +1407,6 @@ int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *
return
EC_POINT_is_at_infinity
(
group
,
b
)
?
0
:
1
;
}
if
(
EC_POINT_is_at_infinity
(
group
,
b
))
return
1
;
if
(
a
->
Z_is_one
&&
b
->
Z_is_one
)
{
return
((
BN_cmp
(
&
a
->
X
,
&
b
->
X
)
==
0
)
&&
BN_cmp
(
&
a
->
Y
,
&
b
->
Y
)
==
0
)
?
0
:
1
;
...
...
@@ -1500,6 +1494,7 @@ int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *
return
ret
;
}
int
ec_GFp_simple_make_affine
(
const
EC_GROUP
*
group
,
EC_POINT
*
point
,
BN_CTX
*
ctx
)
{
BN_CTX
*
new_ctx
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录