equal
deleted
inserted
replaced
46 import javax.crypto.spec.DHParameterSpec; |
46 import javax.crypto.spec.DHParameterSpec; |
47 import javax.crypto.spec.DHPublicKeySpec; |
47 import javax.crypto.spec.DHPublicKeySpec; |
48 import sun.security.ssl.DHKeyExchange.DHECredentials; |
48 import sun.security.ssl.DHKeyExchange.DHECredentials; |
49 import sun.security.ssl.DHKeyExchange.DHEPossession; |
49 import sun.security.ssl.DHKeyExchange.DHEPossession; |
50 import sun.security.ssl.SSLHandshake.HandshakeMessage; |
50 import sun.security.ssl.SSLHandshake.HandshakeMessage; |
51 import sun.security.ssl.SupportedGroupsExtension.NamedGroup; |
|
52 import sun.security.ssl.X509Authentication.X509Credentials; |
51 import sun.security.ssl.X509Authentication.X509Credentials; |
53 import sun.security.ssl.X509Authentication.X509Possession; |
52 import sun.security.ssl.X509Authentication.X509Possession; |
54 import sun.security.util.HexDumpEncoder; |
53 import sun.security.util.HexDumpEncoder; |
55 import sun.security.util.KeyUtil; |
54 import sun.security.util.KeyUtil; |
56 |
55 |
124 useExplicitSigAlgorithm = |
123 useExplicitSigAlgorithm = |
125 shc.negotiatedProtocol.useTLS12PlusSpec(); |
124 shc.negotiatedProtocol.useTLS12PlusSpec(); |
126 Signature signer = null; |
125 Signature signer = null; |
127 if (useExplicitSigAlgorithm) { |
126 if (useExplicitSigAlgorithm) { |
128 signatureScheme = SignatureScheme.getPreferableAlgorithm( |
127 signatureScheme = SignatureScheme.getPreferableAlgorithm( |
|
128 shc.algorithmConstraints, |
129 shc.peerRequestedSignatureSchemes, |
129 shc.peerRequestedSignatureSchemes, |
130 x509Possession, |
130 x509Possession, |
131 shc.negotiatedProtocol); |
131 shc.negotiatedProtocol); |
132 if (signatureScheme == null) { |
132 if (signatureScheme == null) { |
133 // Unlikely, the credentials generator should have |
133 // Unlikely, the credentials generator should have |