Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
59b6836a
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看板
提交
59b6836a
编写于
19年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Ensure (SSL_RANDOM_BYTES - 4) of pseudo random data is used for server and
client random values.
上级
9fc9b552
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
2 deletion
+24
-2
CHANGES
CHANGES
+22
-0
ssl/s3_clnt.c
ssl/s3_clnt.c
+1
-1
ssl/s3_srvr.c
ssl/s3_srvr.c
+1
-1
未找到文件。
CHANGES
浏览文件 @
59b6836a
...
...
@@ -763,6 +763,28 @@
Changes between 0.9.7e and 0.9.7f [XX xxx XXXX]
*) Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating
server and client random values. Previously
(SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in
less random data when sizeof(time_t) > 4 (some 64 bit platforms).
This change has negligible security impact because:
1. Server and client random values still have 24 bytes of pseudo random
data.
2. Server and client random values are sent in the clear in the initial
handshake.
3. The master secret is derived using the premaster secret (48 bytes in
size for static RSA ciphersuites) as well as client server and random
values.
The OpenSSL team would like to thank the UK NISCC for bringing this issue
to our attention.
[Stephen Henson, reported by UK NISCC]
*) Use Windows randomness collection on Cygwin.
[Ulf Möller]
...
...
This diff is collapsed.
Click to expand it.
ssl/s3_clnt.c
浏览文件 @
59b6836a
...
...
@@ -562,7 +562,7 @@ static int ssl3_client_hello(SSL *s)
p
=
s
->
s3
->
client_random
;
Time
=
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
sizeof
(
Time
)
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
4
);
/* Do the message type and length last */
d
=
p
=
&
(
buf
[
4
]);
...
...
This diff is collapsed.
Click to expand it.
ssl/s3_srvr.c
浏览文件 @
59b6836a
...
...
@@ -996,7 +996,7 @@ static int ssl3_send_server_hello(SSL *s)
p
=
s
->
s3
->
server_random
;
Time
=
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
sizeof
(
Time
)
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
4
);
/* Do the message type and length last */
d
=
p
=
&
(
buf
[
4
]);
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部