Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
74d7abc2
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
8 个月 前同步成功
通知
8
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,体验更适合开发者的 AI 搜索 >>
提交
74d7abc2
编写于
2月 27, 1999
作者:
R
Ralf S. Engelschall
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Get rid of remaining C++-style comments which strict C compilers hate.
(Pointed out by Carlos Amengual).
上级
c707fb27
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
17 deletion
+20
-17
CHANGES
CHANGES
+3
-0
crypto/bio/bss_sock.c
crypto/bio/bss_sock.c
+1
-1
crypto/bn/exp.c
crypto/bn/exp.c
+3
-3
crypto/bn/test.c
crypto/bn/test.c
+5
-5
crypto/comp/comp_err.c
crypto/comp/comp_err.c
+1
-1
crypto/rand/md_rand.c
crypto/rand/md_rand.c
+7
-7
未找到文件。
CHANGES
浏览文件 @
74d7abc2
...
...
@@ -4,6 +4,9 @@
Changes between 0.9.1c and 0.9.2
*) Get rid of remaining C++-style comments which strict C compilers hate.
[Ralf S. Engelschall, pointed out by Carlos Amengual]
*) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
compiled in by default: it has problems with large keys.
...
...
crypto/bio/bss_sock.c
浏览文件 @
74d7abc2
...
...
@@ -385,7 +385,7 @@ int i;
err
=
get_last_sys_error
();
#endif
#if defined(WINDOWS) && 0
/* more microsoft stupidity
*//*
perhaps not? Ben 4/1/99 */
#if defined(WINDOWS) && 0
/* more microsoft stupidity
?
perhaps not? Ben 4/1/99 */
if
((
i
==
-
1
)
&&
(
err
==
0
))
return
(
1
);
#endif
...
...
crypto/bn/exp.c
浏览文件 @
74d7abc2
...
...
@@ -43,12 +43,12 @@ char *argv[];
ms_time_get
(
start
);
for
(
i
=
0
;
i
<
num
;
i
++
)
{
/
/bn_mull(&r,&a,&b,&ctx);
/
/BN_sqr(&r,&a,&ctx);
/
* bn_mull(&r,&a,&b,&ctx); */
/
* BN_sqr(&r,&a,&ctx); */
BN_mod_exp_mont
(
&
r
,
&
a
,
&
b
,
&
c
,
&
ctx
,
&
mont
);
}
ms_time_get
(
end
);
d
=
ms_time_diff
(
start
,
end
)
/* *50/33
/*
*/
;
d
=
ms_time_diff
(
start
,
end
)
/* *50/33 */
;
printf
(
"%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)
\n
"
,
size
,
d
,
num
,
d
/
num
,(
int
)((
d
/
num
)
*
mod
),
md
/
10
.
0
);
num
/=
8
;
...
...
crypto/bn/test.c
浏览文件 @
74d7abc2
...
...
@@ -120,18 +120,18 @@ s0.max=bl.top; s1.max=bh.top;
t3.top=(t2.top > words)?words:t2.top;
t3.neg=t2.neg;
t3.max=t3.top;
/
/ BN_print_fp(stdout,&s1); printf(" s1\n");
/
/ BN_print_fp(stdout,&t2); printf(" middle value\n");
/
/ BN_print_fp(stdout,&t3); printf(" low middle value\n");
/
* BN_print_fp(stdout,&s1); printf(" s1\n"); */
/
* BN_print_fp(stdout,&t2); printf(" middle value\n"); */
/
* BN_print_fp(stdout,&t3); printf(" low middle value\n"); */
BN_sub(&t1,&s1,&t3);
if (t1.neg)
{
/
/printf("neg fixup\n"); //BN_print_fp(stdout,&t1); printf(" before\n");
/
*printf("neg fixup\n"); BN_print_fp(stdout,&t1); printf(" before\n"); */
BN_lshift(&t2,BN_value_one(),words*32);
BN_add(&t1,&t2,&t1);
BN_mask_bits(&t1,words*32);
/
/ BN_print_fp(stdout,&t1); printf(" after\n");
/
* BN_print_fp(stdout,&t1); printf(" after\n"); */
}
/* al*bl == high(al*bl)<<words+s0 */
BN_lshift(&t1,&t1,words*32);
...
...
crypto/comp/comp_err.c
浏览文件 @
74d7abc2
/*
lib//
_err.c */
/*
crypto/comp/comp
_err.c */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
...
...
crypto/rand/md_rand.c
浏览文件 @
74d7abc2
...
...
@@ -346,13 +346,13 @@ int num;
* <URL:http://www.microsoft.com/kb/developr/win_dk/q97193.htm>;
* the original copyright message is:
*
//
(C) Copyright Microsoft Corp. 1993. All rights reserved.
//
//
You have a royalty-free right to use, modify, reproduce and
//
distribute the Sample Files (and/or any modified version) in
//
any way you find useful, provided that you agree that
//
Microsoft has no warranty obligations or liability for any
//
Sample Application Files which are modified.
*
(C) Copyright Microsoft Corp. 1993. All rights reserved.
*
*
You have a royalty-free right to use, modify, reproduce and
*
distribute the Sample Files (and/or any modified version) in
*
any way you find useful, provided that you agree that
*
Microsoft has no warranty obligations or liability for any
*
Sample Application Files which are modified.
*/
/*
* I have modified the loading of bytes via RAND_seed() mechanism since
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录