8178466: Better RSA parameters
Reviewed-by: mullan, ahgross
This commit is contained in:
parent
c5f521e176
commit
0e8009535c
@ -1804,8 +1804,7 @@ public final class Main {
|
||||
} else if ("RSA".equalsIgnoreCase(keyAlgName)) {
|
||||
keysize = SecurityProviderConstants.DEF_RSA_KEY_SIZE;
|
||||
} else if ("DSA".equalsIgnoreCase(keyAlgName)) {
|
||||
// hardcode for now as DEF_DSA_KEY_SIZE is still 1024
|
||||
keysize = 2048; // SecurityProviderConstants.DEF_DSA_KEY_SIZE;
|
||||
keysize = SecurityProviderConstants.DEF_DSA_KEY_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ public final class SecurityProviderConstants {
|
||||
static {
|
||||
String keyLengthStr = GetPropertyAction.privilegedGetProperty
|
||||
(KEY_LENGTH_PROP);
|
||||
int dsaKeySize = 1024;
|
||||
int dsaKeySize = 2048;
|
||||
int rsaKeySize = 2048;
|
||||
int dhKeySize = 2048;
|
||||
int ecKeySize = 256;
|
||||
|
Loading…
Reference in New Issue
Block a user