mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8281236: (D)TLS key exchange named groups
Reviewed-by: mullan
This commit is contained in:
parent
10356e767a
commit
5d4c71c8bd
17 changed files with 806 additions and 236 deletions
|
@ -44,7 +44,6 @@ import javax.crypto.KeyAgreement;
|
|||
import javax.crypto.SecretKey;
|
||||
import javax.net.ssl.SSLHandshakeException;
|
||||
import sun.security.ssl.NamedGroup.NamedGroupSpec;
|
||||
import sun.security.ssl.SupportedGroupsExtension.SupportedGroups;
|
||||
import sun.security.ssl.X509Authentication.X509Credentials;
|
||||
import sun.security.ssl.X509Authentication.X509Possession;
|
||||
import sun.security.ssl.XDHKeyExchange.XDHECredentials;
|
||||
|
@ -236,7 +235,8 @@ final class ECDHKeyExchange {
|
|||
// Find most preferred EC or XEC groups
|
||||
if ((context.clientRequestedNamedGroups != null) &&
|
||||
(!context.clientRequestedNamedGroups.isEmpty())) {
|
||||
preferableNamedGroup = SupportedGroups.getPreferredGroup(
|
||||
preferableNamedGroup = NamedGroup.getPreferredGroup(
|
||||
context.sslConfig,
|
||||
context.negotiatedProtocol,
|
||||
context.algorithmConstraints,
|
||||
new NamedGroupSpec[] {
|
||||
|
@ -244,7 +244,8 @@ final class ECDHKeyExchange {
|
|||
NamedGroupSpec.NAMED_GROUP_XDH },
|
||||
context.clientRequestedNamedGroups);
|
||||
} else {
|
||||
preferableNamedGroup = SupportedGroups.getPreferredGroup(
|
||||
preferableNamedGroup = NamedGroup.getPreferredGroup(
|
||||
context.sslConfig,
|
||||
context.negotiatedProtocol,
|
||||
context.algorithmConstraints,
|
||||
new NamedGroupSpec[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue