Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
76a8c3b3
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
76a8c3b3
编写于
12月 19, 2017
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
3acb0f58
d5abcbc7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
2 deletion
+26
-2
.hgtags
.hgtags
+1
-0
src/share/classes/sun/security/ssl/HandshakeHash.java
src/share/classes/sun/security/ssl/HandshakeHash.java
+25
-2
未找到文件。
.hgtags
浏览文件 @
76a8c3b3
...
...
@@ -833,6 +833,7 @@ e7c79f48e83772546a1d35d98101853e2ca17947 jdk8u161-b08
2c4e596e0cc3281fe976d9a730677c0a15113153 jdk8u161-b09
3eaad567db074e4d3df7d4088a4a029ef5ad1179 jdk8u161-b10
8d358ca3cfb813af87aa4bed5a1e7fbb678ea6be jdk8u161-b11
76f2c555cccab8df114dd6ebb8ed7634c7ce1896 jdk8u161-b12
e03f9868f7df1e3db537f3b61704658e8a9dafb5 jdk8u162-b00
538bdf24383954cd2356e39e8081c2cb3ac27281 jdk8u162-b01
18e0bc77adafd0e5e459e381b6993bb0625b05be jdk8u162-b02
...
...
src/share/classes/sun/security/ssl/HandshakeHash.java
浏览文件 @
76a8c3b3
...
...
@@ -104,7 +104,29 @@ final class HandshakeHash {
* a hash for the certificate verify message is required.
*/
HandshakeHash
(
boolean
needCertificateVerify
)
{
clonesNeeded
=
needCertificateVerify
?
3
:
2
;
// We may rework the code later, but for now we use hard-coded number
// of clones if the underlying MessageDigests are not cloneable.
//
// The number used here is based on the current handshake protocols and
// implementation. It may be changed if the handshake processe gets
// changed in the future, for example adding a new extension that
// requires handshake hash. Please be careful about the number of
// clones if additional handshak hash is required in the future.
//
// For the current implementation, the handshake hash is required for
// the following items:
// . CertificateVerify handshake message (optional)
// . client Finished handshake message
// . server Finished Handshake message
// . the extended Master Secret extension [RFC 7627]
//
// Note that a late call to server setNeedClientAuth dose not update
// the number of clones. We may address the issue later.
//
// Note for safe, we allocate one more clone for the current
// implementation. We may consider it more carefully in the future
// for the exactly number or rework the code in a different way.
clonesNeeded
=
needCertificateVerify
?
5
:
4
;
}
void
update
(
byte
[]
b
,
int
offset
,
int
len
)
{
...
...
@@ -226,7 +248,8 @@ final class HandshakeHash {
if
(
finMD
!=
null
)
return
;
try
{
finMD
=
CloneableDigest
.
getDigest
(
normalizeAlgName
(
s
),
2
);
// See comment in the contructor.
finMD
=
CloneableDigest
.
getDigest
(
normalizeAlgName
(
s
),
4
);
}
catch
(
NoSuchAlgorithmException
e
)
{
throw
new
Error
(
e
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录