Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6f8f4431
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看板
提交
6f8f4431
编写于
3月 10, 2001
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
comment and error code update
上级
d18af3f3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
8 deletion
+8
-8
CHANGES
CHANGES
+4
-4
crypto/ec/ec.h
crypto/ec/ec.h
+1
-1
crypto/ec/ec_err.c
crypto/ec/ec_err.c
+1
-1
crypto/ec/ec_mult.c
crypto/ec/ec_mult.c
+2
-2
未找到文件。
CHANGES
浏览文件 @
6f8f4431
...
...
@@ -23,14 +23,14 @@
*) Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h,
crypto/ec/ec_lib.c):
Curves are EC_GROUP objects (with an optional g
enerator) based
on EC_METHODs that are built into the library.
Curves are EC_GROUP objects (with an optional g
roup generator)
based
on EC_METHODs that are built into the library.
Points are EC_POINT objects based on EC_GROUP objects.
Most of the framework would be able to handle curves over arbitrary
finite fields, but as there are no obvious types for
GF(2^n),
some functions are limited to GF(p)
for now.
finite fields, but as there are no obvious types for
fields other
than GF(p), some functions are limited to that
for now.
[Bodo Moeller]
*) Add the -HTTP option to s_server. It is similar to -WWW, but requires
...
...
crypto/ec/ec.h
浏览文件 @
6f8f4431
...
...
@@ -226,11 +226,11 @@ void ERR_load_EC_strings(void);
#define EC_R_INVALID_FIELD 103
#define EC_R_INVALID_FORM 104
#define EC_R_NOT_INITIALIZED 111
#define EC_R_NO_GENERATOR_SET 113
#define EC_R_NO_SUCH_EXTRA_DATA 105
#define EC_R_POINT_AT_INFINITY 106
#define EC_R_POINT_IS_NOT_ON_CURVE 107
#define EC_R_SLOT_FULL 108
#define EC_R_UNDEFINED_GENERATOR 113
#ifdef __cplusplus
}
...
...
crypto/ec/ec_err.c
浏览文件 @
6f8f4431
...
...
@@ -122,11 +122,11 @@ static ERR_STRING_DATA EC_str_reasons[]=
{
EC_R_INVALID_FIELD
,
"invalid field"
},
{
EC_R_INVALID_FORM
,
"invalid form"
},
{
EC_R_NOT_INITIALIZED
,
"not initialized"
},
{
EC_R_NO_GENERATOR_SET
,
"no generator set"
},
{
EC_R_NO_SUCH_EXTRA_DATA
,
"no such extra data"
},
{
EC_R_POINT_AT_INFINITY
,
"point at infinity"
},
{
EC_R_POINT_IS_NOT_ON_CURVE
,
"point is not on curve"
},
{
EC_R_SLOT_FULL
,
"slot full"
},
{
EC_R_UNDEFINED_GENERATOR
,
"undefined generator"
},
{
0
,
NULL
}
};
...
...
crypto/ec/ec_mult.c
浏览文件 @
6f8f4431
...
...
@@ -72,7 +72,7 @@
(b) > 23 ? 3 : 1)
/* Compute
* \sum scalar[i]*points[i]
* \sum scalar
s
[i]*points[i]
* where
* scalar*generator
* is included in the addition if scalar != NULL
...
...
@@ -103,7 +103,7 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, BIGNUM *scalar,
generator
=
EC_GROUP_get0_generator
(
group
);
if
(
generator
==
NULL
)
{
ECerr
(
EC_F_EC_POINTS_MUL
,
EC_R_
NO_GENERATOR_SET
);
ECerr
(
EC_F_EC_POINTS_MUL
,
EC_R_
UNDEFINED_GENERATOR
);
return
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录