Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
44411db8
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
44411db8
编写于
2月 14, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix '-C'
上级
23ac7a14
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
11 deletion
+5
-11
apps/ecdsaparam.c
apps/ecdsaparam.c
+5
-11
未找到文件。
apps/ecdsaparam.c
浏览文件 @
44411db8
...
@@ -376,7 +376,7 @@ bad:
...
@@ -376,7 +376,7 @@ bad:
if
(
C
)
if
(
C
)
{
// TODO : characteristic two
{
// TODO : characteristic two
int
l
,
len
,
bits_p
,
bits_a
,
bits_b
,
bits_x
,
bits_y
,
bits_o
,
bits_c
;
int
l
,
len
,
bits_p
;
if
((
tmp_1
=
BN_new
())
==
NULL
||
(
tmp_2
=
BN_new
())
==
NULL
||
if
((
tmp_1
=
BN_new
())
==
NULL
||
(
tmp_2
=
BN_new
())
==
NULL
||
(
tmp_3
=
BN_new
())
==
NULL
||
(
tmp_4
=
BN_new
())
==
NULL
||
(
tmp_3
=
BN_new
())
==
NULL
||
(
tmp_4
=
BN_new
())
==
NULL
||
(
tmp_5
=
BN_new
())
==
NULL
||
(
tmp_6
=
BN_new
())
==
NULL
||
(
tmp_5
=
BN_new
())
==
NULL
||
(
tmp_6
=
BN_new
())
==
NULL
||
...
@@ -398,12 +398,6 @@ bad:
...
@@ -398,12 +398,6 @@ bad:
len
=
BN_num_bytes
(
tmp_1
);
len
=
BN_num_bytes
(
tmp_1
);
bits_p
=
BN_num_bits
(
tmp_1
);
bits_p
=
BN_num_bits
(
tmp_1
);
bits_a
=
BN_num_bits
(
tmp_2
);
bits_b
=
BN_num_bits
(
tmp_3
);
bits_x
=
BN_num_bits
(
tmp_4
);
bits_y
=
BN_num_bits
(
tmp_5
);
bits_o
=
BN_num_bits
(
tmp_6
);
bits_c
=
BN_num_bits
(
tmp_7
);
data
=
(
unsigned
char
*
)
OPENSSL_malloc
(
len
+
20
);
data
=
(
unsigned
char
*
)
OPENSSL_malloc
(
len
+
20
);
if
(
data
==
NULL
)
if
(
data
==
NULL
)
{
{
...
@@ -438,7 +432,7 @@ bad:
...
@@ -438,7 +432,7 @@ bad:
printf
(
"
\n\t
};
\n\n
"
);
printf
(
"
\n\t
};
\n\n
"
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
printf
(
"static unsigned char ecdsa%d_x[]={"
,
bits_
x
);
printf
(
"static unsigned char ecdsa%d_x[]={"
,
bits_
p
);
for
(
i
=
0
;
i
<
l
;
i
++
)
for
(
i
=
0
;
i
<
l
;
i
++
)
{
{
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
...
@@ -447,7 +441,7 @@ bad:
...
@@ -447,7 +441,7 @@ bad:
printf
(
"
\n\t
};
\n\n
"
);
printf
(
"
\n\t
};
\n\n
"
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
printf
(
"static unsigned char ecdsa%d_y[]={"
,
bits_
y
);
printf
(
"static unsigned char ecdsa%d_y[]={"
,
bits_
p
);
for
(
i
=
0
;
i
<
l
;
i
++
)
for
(
i
=
0
;
i
<
l
;
i
++
)
{
{
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
...
@@ -456,7 +450,7 @@ bad:
...
@@ -456,7 +450,7 @@ bad:
printf
(
"
\n\t
};
\n\n
"
);
printf
(
"
\n\t
};
\n\n
"
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
printf
(
"static unsigned char ecdsa%d_o[]={"
,
bits_
o
);
printf
(
"static unsigned char ecdsa%d_o[]={"
,
bits_
p
);
for
(
i
=
0
;
i
<
l
;
i
++
)
for
(
i
=
0
;
i
<
l
;
i
++
)
{
{
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
...
@@ -465,7 +459,7 @@ bad:
...
@@ -465,7 +459,7 @@ bad:
printf
(
"
\n\t
};
\n\n
"
);
printf
(
"
\n\t
};
\n\n
"
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
l
=
BN_bn2bin
(
tmp_3
,
data
);
printf
(
"static unsigned char ecdsa%d_c[]={"
,
bits_
c
);
printf
(
"static unsigned char ecdsa%d_c[]={"
,
bits_
p
);
for
(
i
=
0
;
i
<
l
;
i
++
)
for
(
i
=
0
;
i
<
l
;
i
++
)
{
{
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
if
((
i
%
12
)
==
0
)
printf
(
"
\n\t
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录