Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
41fdcfa7
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看板
提交
41fdcfa7
编写于
8月 09, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix warnings
上级
60cc56b1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
6 deletion
+22
-6
apps/speed.c
apps/speed.c
+7
-6
crypto/ec/ectest.c
crypto/ec/ectest.c
+3
-0
crypto/ecdh/ecdhtest.c
crypto/ecdh/ecdhtest.c
+1
-0
crypto/ecdsa/ecdsatest.c
crypto/ecdsa/ecdsatest.c
+9
-0
ssl/ssl_locl.h
ssl/ssl_locl.h
+2
-0
未找到文件。
apps/speed.c
浏览文件 @
41fdcfa7
...
...
@@ -616,7 +616,7 @@ int MAIN(int argc, char **argv)
EC_KEY
*
ecdh_a
[
EC_NUM
],
*
ecdh_b
[
EC_NUM
];
unsigned
char
secret_a
[
MAX_ECDH_SIZE
],
secret_b
[
MAX_ECDH_SIZE
];
int
secret_size_a
,
secret_size_b
;
int
ecdh_check
=
0
;
int
ecdh_check
s
=
0
;
int
secret_idx
=
0
;
long
ecdh_c
[
EC_NUM
][
2
];
#endif
...
...
@@ -2065,19 +2065,20 @@ int MAIN(int argc, char **argv)
ecdh_a
[
j
]
->
pub_key
,
ecdh_b
[
j
]);
if
(
secret_size_a
!=
secret_size_b
)
ecdh_check
=
0
;
ecdh_check
s
=
0
;
else
ecdh_check
=
1
;
ecdh_check
s
=
1
;
for
(
secret_idx
=
0
;
(
secret_idx
<
secret_size_a
)
&&
(
ecdh_check
==
1
);
(
secret_idx
<
secret_size_a
)
&&
(
ecdh_checks
==
1
);
secret_idx
++
)
{
if
(
secret_a
[
secret_idx
]
!=
secret_b
[
secret_idx
])
ecdh_check
=
0
;
ecdh_check
s
=
0
;
}
if
(
ecdh_check
==
0
)
if
(
ecdh_check
s
==
0
)
{
BIO_printf
(
bio_err
,
"ECDH computations don't match.
\n
"
);
ERR_print_errors
(
bio_err
);
...
...
crypto/ec/ectest.c
浏览文件 @
41fdcfa7
...
...
@@ -105,6 +105,9 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur
exit(1); \
} while (0)
void
prime_field_tests
(
void
);
void
char2_field_tests
(
void
);
#if 0
static void timings(EC_GROUP *group, int multi, BN_CTX *ctx)
{
...
...
crypto/ecdh/ecdhtest.c
浏览文件 @
41fdcfa7
...
...
@@ -117,6 +117,7 @@ static void MS_CALLBACK cb(int p, int n, void *arg);
static
const
char
rnd_seed
[]
=
"string to make the random number generator think it has entropy"
;
int
test_ecdh_curve
(
int
,
char
*
,
BN_CTX
*
,
BIO
*
);
int
test_ecdh_curve
(
int
nid
,
char
*
text
,
BN_CTX
*
ctx
,
BIO
*
out
)
{
...
...
crypto/ecdsa/ecdsatest.c
浏览文件 @
41fdcfa7
...
...
@@ -116,6 +116,15 @@ static const char rnd_seed[] = "string to make the random number generator think
ECDSA_SIG
*
signatures
[
ECDSA_NIST_TESTS
];
unsigned
char
digest
[
ECDSA_NIST_TESTS
][
20
];
/* some declarations */
void
clear_ecdsa
(
EC_KEY
*
);
int
set_p192_param
(
EC_KEY
*
);
int
set_p239_param
(
EC_KEY
*
);
int
test_sig_vrf
(
EC_KEY
*
,
const
unsigned
char
*
);
int
test_x962_sig_vrf
(
EC_KEY
*
,
const
unsigned
char
*
,
const
char
*
,
const
char
*
,
const
char
*
);
int
ecdsa_cmp
(
const
EC_KEY
*
,
const
EC_KEY
*
);
void
clear_ecdsa
(
EC_KEY
*
ecdsa
)
{
if
(
!
ecdsa
)
...
...
ssl/ssl_locl.h
浏览文件 @
41fdcfa7
...
...
@@ -640,6 +640,8 @@ int tls1_alert_code(int code);
int
ssl3_alert_code
(
int
code
);
int
ssl_ok
(
SSL
*
s
);
int
check_srvr_ecc_cert_and_alg
(
X509
*
x
,
SSL_CIPHER
*
cs
);
SSL_COMP
*
ssl3_comp_find
(
STACK_OF
(
SSL_COMP
)
*
sk
,
int
n
);
STACK_OF
(
SSL_COMP
)
*
SSL_COMP_get_compression_methods
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录