Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
c94f7f65
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
c94f7f65
编写于
8月 26, 2010
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ECC library bugfixes.
Submitted by: Emilia Kasper (Google)
上级
173350bc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
6 deletion
+25
-6
CHANGES
CHANGES
+12
-0
crypto/ec/ec2_mult.c
crypto/ec/ec2_mult.c
+9
-4
crypto/ec/ec_mult.c
crypto/ec/ec_mult.c
+4
-2
未找到文件。
CHANGES
浏览文件 @
c94f7f65
...
...
@@ -978,6 +978,18 @@
*) Change 'Configure' script to enable Camellia by default.
[NTT]
Changes between 0.9.8o and 0.9.8p [xx XXX xxxx]
*) ec2_GF2m_simple_mul bugfix: compute correct result if the output EC_POINT
is also one of the inputs.
[Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)]
*) Don't repeatedly append PBE algorithms to table if they already exist.
Sort table on each new add. This effectively makes the table read only
after all algorithms are added and subsequent calls to PKCS12_pbe_add
etc are non-op.
[Steve Henson]
Changes between 0.9.8n and 0.9.8o [01 Jun 2010]
[NB: OpenSSL 0.9.8o and later 0.9.8 patch levels were released after
...
...
crypto/ec/ec2_mult.c
浏览文件 @
c94f7f65
...
...
@@ -319,6 +319,7 @@ int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
int
ret
=
0
;
size_t
i
;
EC_POINT
*
p
=
NULL
;
EC_POINT
*
acc
=
NULL
;
if
(
ctx
==
NULL
)
{
...
...
@@ -338,15 +339,16 @@ int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
}
if
((
p
=
EC_POINT_new
(
group
))
==
NULL
)
goto
err
;
if
((
acc
=
EC_POINT_new
(
group
))
==
NULL
)
goto
err
;
if
(
!
EC_POINT_set_to_infinity
(
group
,
r
))
goto
err
;
if
(
!
EC_POINT_set_to_infinity
(
group
,
acc
))
goto
err
;
if
(
scalar
)
{
if
(
!
ec_GF2m_montgomery_point_multiply
(
group
,
p
,
scalar
,
group
->
generator
,
ctx
))
goto
err
;
if
(
BN_is_negative
(
scalar
))
if
(
BN_is_negative
(
scalar
))
if
(
!
group
->
meth
->
invert
(
group
,
p
,
ctx
))
goto
err
;
if
(
!
group
->
meth
->
add
(
group
,
r
,
r
,
p
,
ctx
))
goto
err
;
if
(
!
group
->
meth
->
add
(
group
,
acc
,
acc
,
p
,
ctx
))
goto
err
;
}
for
(
i
=
0
;
i
<
num
;
i
++
)
...
...
@@ -354,13 +356,16 @@ int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
if
(
!
ec_GF2m_montgomery_point_multiply
(
group
,
p
,
scalars
[
i
],
points
[
i
],
ctx
))
goto
err
;
if
(
BN_is_negative
(
scalars
[
i
]))
if
(
!
group
->
meth
->
invert
(
group
,
p
,
ctx
))
goto
err
;
if
(
!
group
->
meth
->
add
(
group
,
r
,
r
,
p
,
ctx
))
goto
err
;
if
(
!
group
->
meth
->
add
(
group
,
acc
,
acc
,
p
,
ctx
))
goto
err
;
}
if
(
!
EC_POINT_copy
(
r
,
acc
))
goto
err
;
ret
=
1
;
err:
if
(
p
)
EC_POINT_free
(
p
);
if
(
acc
)
EC_POINT_free
(
acc
);
if
(
new_ctx
!=
NULL
)
BN_CTX_free
(
new_ctx
);
return
ret
;
...
...
crypto/ec/ec_mult.c
浏览文件 @
c94f7f65
...
...
@@ -169,11 +169,13 @@ static void ec_pre_comp_clear_free(void *pre_)
EC_POINT
**
p
;
for
(
p
=
pre
->
points
;
*
p
!=
NULL
;
p
++
)
{
EC_POINT_clear_free
(
*
p
);
OPENSSL_cleanse
(
pre
->
points
,
sizeof
pre
->
points
);
OPENSSL_cleanse
(
p
,
sizeof
*
p
);
}
OPENSSL_free
(
pre
->
points
);
}
OPENSSL_cleanse
(
pre
,
sizeof
pre
);
OPENSSL_cleanse
(
pre
,
sizeof
*
pre
);
OPENSSL_free
(
pre
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录