Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
926a5baf
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
926a5baf
编写于
4月 09, 2015
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
f04fa735
81366744
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
25 deletion
+6
-25
.hgtags
.hgtags
+1
-0
src/share/classes/sun/security/provider/DSA.java
src/share/classes/sun/security/provider/DSA.java
+1
-21
src/share/classes/sun/tools/jconsole/resources/messages_ja.properties
...asses/sun/tools/jconsole/resources/messages_ja.properties
+1
-1
src/share/classes/sun/tools/jconsole/resources/messages_zh_CN.properties
...es/sun/tools/jconsole/resources/messages_zh_CN.properties
+1
-1
test/sun/security/provider/DSA/TestDSA2.java
test/sun/security/provider/DSA/TestDSA2.java
+2
-2
未找到文件。
.hgtags
浏览文件 @
926a5baf
...
...
@@ -378,6 +378,7 @@ fc4f5546417071c70cffd89ca83302309f6f7da9 jdk8u40-b17
5c31204d19e5976f025026db3d5c17331e8c44db jdk8u40-b19
7784dab075ed82be2275f4694164bbb9cc1cde3f jdk8u40-b20
564bca490631e4ed4f7993e6633ed9ee62067624 jdk8u40-b21
d168113f9841a77b3cee3a6a45fcd85b7351ac90 jdk8u40-b22
1ecc234bd38950a2bc047aa253a5e803f0836a4e jdk8u45-b00
e0c7864bbca3f76cde680722f2ae58dff2bff61d jdk8u45-b01
9505c0392cddbfb905401e9fccc23262edc3254f jdk8u45-b02
...
...
src/share/classes/sun/security/provider/DSA.java
浏览文件 @
926a5baf
/*
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
5
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -117,7 +117,6 @@ abstract class DSA extends SignatureSpi {
if
(
params
==
null
)
{
throw
new
InvalidKeyException
(
"DSA private key lacks parameters"
);
}
checkKey
(
params
);
this
.
params
=
params
;
this
.
presetX
=
priv
.
getX
();
...
...
@@ -149,7 +148,6 @@ abstract class DSA extends SignatureSpi {
if
(
params
==
null
)
{
throw
new
InvalidKeyException
(
"DSA public key lacks parameters"
);
}
checkKey
(
params
);
this
.
params
=
params
;
this
.
presetY
=
pub
.
getY
();
...
...
@@ -291,16 +289,6 @@ abstract class DSA extends SignatureSpi {
return
null
;
}
protected
void
checkKey
(
DSAParams
params
)
throws
InvalidKeyException
{
// FIPS186-3 states in sec4.2 that a hash function which provides
// a lower security strength than the (L, N) pair ordinarily should
// not be used.
int
valueN
=
params
.
getQ
().
bitLength
();
if
(
valueN
>
md
.
getDigestLength
()*
8
)
{
throw
new
InvalidKeyException
(
"Key is too strong for this signature algorithm"
);
}
}
private
BigInteger
generateR
(
BigInteger
p
,
BigInteger
q
,
BigInteger
g
,
BigInteger
k
)
{
BigInteger
temp
=
g
.
modPow
(
k
,
p
);
...
...
@@ -480,14 +468,6 @@ abstract class DSA extends SignatureSpi {
}
}
@Override
protected
void
checkKey
(
DSAParams
params
)
throws
InvalidKeyException
{
int
valueL
=
params
.
getP
().
bitLength
();
if
(
valueL
>
1024
)
{
throw
new
InvalidKeyException
(
"Key is too long for this algorithm"
);
}
}
/*
* Please read bug report 4044247 for an alternative, faster,
* NON-FIPS approved method to generate K
...
...
src/share/classes/sun/tools/jconsole/resources/messages_ja.properties
浏览文件 @
926a5baf
...
...
@@ -104,7 +104,7 @@ HELP_ABOUT_DIALOG_JAVA_VERSION=Java VM\u30D0\u30FC\u30B8\u30E7\u30F3:<br>{0}
HELP_ABOUT_DIALOG_MASTHEAD_ACCESSIBLE_NAME
=
\u
30DE
\u
30B9
\u
30C8
\u
30D8
\u
30C3
\u
30C9
\u
56F3
\u
5F62
HELP_ABOUT_DIALOG_MASTHEAD_TITLE
=
JConsole
\u
306B
\u3064\u3044\u3066
HELP_ABOUT_DIALOG_TITLE
=
JConsole:
\u
60C5
\u5831
HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL
=
http://docs.oracle.com/javase/{0}/docs/technotes/guides/management/jconsole.html
HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL
=
http
s
://docs.oracle.com/javase/{0}/docs/technotes/guides/management/jconsole.html
HELP_MENU_ABOUT_TITLE
=
JConsole
\u
306B
\u3064\u3044\u3066
(&A)
HELP_MENU_USER_GUIDE_TITLE
=
\u
30AA
\u
30F3
\u
30E9
\u
30A4
\u
30F3
\u
30FB
\u
30E6
\u
30FC
\u
30B6
\u
30FC
\u
30FB
\u
30AC
\u
30A4
\u
30C9(&U)
HELP_MENU_TITLE
=
\u
30D8
\u
30EB
\u
30D7(&H)
...
...
src/share/classes/sun/tools/jconsole/resources/messages_zh_CN.properties
浏览文件 @
926a5baf
...
...
@@ -104,7 +104,7 @@ HELP_ABOUT_DIALOG_JAVA_VERSION=Java VM \u7248\u672C:<br>{0}
HELP_ABOUT_DIALOG_MASTHEAD_ACCESSIBLE_NAME
=
\u
62A5
\u5934\u
56FE
HELP_ABOUT_DIALOG_MASTHEAD_TITLE
=
\u5173\u
4E8E JConsole
HELP_ABOUT_DIALOG_TITLE
=
JConsole:
\u5173\u
4E8E
HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL
=
http://docs.oracle.com/javase/{0}/docs/technotes/guides/management/jconsole.html
HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL
=
http
s
://docs.oracle.com/javase/{0}/docs/technotes/guides/management/jconsole.html
HELP_MENU_ABOUT_TITLE
=
\u5173\u
4E8E JConsole(&A)
HELP_MENU_USER_GUIDE_TITLE
=
\u8054\u
673A
\u7528\u6237\u6307\u5357
(&U)
HELP_MENU_TITLE
=
\u
5E2E
\u
52A9(&H)
...
...
test/sun/security/provider/DSA/TestDSA2.java
浏览文件 @
926a5baf
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2015,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -50,7 +50,7 @@ public class TestDSA2 {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
boolean
[]
expectedToPass
=
{
true
,
true
,
true
};
test
(
1024
,
expectedToPass
);
boolean
[]
expectedToPass2
=
{
fals
e
,
true
,
true
};
boolean
[]
expectedToPass2
=
{
tru
e
,
true
,
true
};
test
(
2048
,
expectedToPass2
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录