final class sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer this
0: .line 140
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 142
return
end local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeProducer;
public byte[] produce(sun.security.ssl.ConnectionContext, sun.security.ssl.SSLHandshake$HandshakeMessage);
descriptor: (Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=3
start local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
0: .line 148
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 150
aconst_null
astore 4 /* x509Credentials */
start local 4 // sun.security.ssl.X509Authentication$X509Credentials x509Credentials
2: .line 151
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeCredentials:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.X509Authentication$X509Credentials top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLCredentials
astore 5 /* credential */
start local 5 // sun.security.ssl.SSLCredentials credential
4: .line 152
aload 5 /* credential */
instanceof sun.security.ssl.X509Authentication$X509Credentials
ifeq 7
5: .line 153
aload 5 /* credential */
checkcast sun.security.ssl.X509Authentication$X509Credentials
astore 4 /* x509Credentials */
6: .line 154
goto 8
end local 5 // sun.security.ssl.SSLCredentials credential
7: .line 151
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: .line 158
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.X509Authentication$X509Credentials
StackMap stack:
aload 4 /* x509Credentials */
ifnonnull 12
9: .line 159
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
10: .line 160
ldc "No server certificate for ECDH client key exchange"
11: .line 159
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: .line 163
StackMap locals:
StackMap stack:
aload 4 /* x509Credentials */
getfield sun.security.ssl.X509Authentication$X509Credentials.popPublicKey:Ljava/security/PublicKey;
astore 5 /* publicKey */
start local 5 // java.security.PublicKey publicKey
13: .line 165
aconst_null
astore 6 /* namedGroup */
start local 6 // sun.security.ssl.NamedGroup namedGroup
14: .line 166
aload 5 /* publicKey */
invokeinterface java.security.PublicKey.getAlgorithm:()Ljava/lang/String;
astore 7 /* algorithm */
start local 7 // java.lang.String algorithm
15: .line 170
aload 7 /* algorithm */
ldc "EC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
16: .line 171
aload 5 /* publicKey */
checkcast java.security.interfaces.ECPublicKey
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
astore 8 /* params */
start local 8 // java.security.spec.ECParameterSpec params
17: .line 172
aload 8 /* params */
invokestatic sun.security.ssl.NamedGroup.valueOf:(Ljava/security/spec/ECParameterSpec;)Lsun/security/ssl/NamedGroup;
astore 6 /* namedGroup */
end local 8 // java.security.spec.ECParameterSpec params
18: .line 173
goto 29
StackMap locals: java.security.PublicKey sun.security.ssl.NamedGroup java.lang.String
StackMap stack:
19: aload 7 /* algorithm */
ldc "XDH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 26
20: .line 175
aload 5 /* publicKey */
checkcast java.security.interfaces.XECPublicKey
invokeinterface java.security.interfaces.XECPublicKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
21: .line 174
astore 8 /* params */
start local 8 // java.security.spec.AlgorithmParameterSpec params
22: .line 176
aload 8 /* params */
instanceof java.security.spec.NamedParameterSpec
ifeq 29
23: .line 177
aload 8 /* params */
checkcast java.security.spec.NamedParameterSpec
invokevirtual java.security.spec.NamedParameterSpec.getName:()Ljava/lang/String;
astore 9 /* name */
start local 9 // java.lang.String name
24: .line 178
aload 9 /* name */
invokestatic sun.security.ssl.NamedGroup.nameOf:(Ljava/lang/String;)Lsun/security/ssl/NamedGroup;
astore 6 /* namedGroup */
end local 9 // java.lang.String name
end local 8 // java.security.spec.AlgorithmParameterSpec params
25: .line 180
goto 29
26: .line 181
StackMap locals:
StackMap stack:
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
27: .line 182
ldc "Not EC/XDH server certificate for ECDH client key exchange"
28: .line 181
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
29: .line 186
StackMap locals:
StackMap stack:
aload 6 /* namedGroup */
ifnonnull 33
30: .line 187
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
31: .line 188
ldc "Unsupported EC/XDH server cert for ECDH client key exchange"
32: .line 187
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
33: .line 192
StackMap locals:
StackMap stack:
aload 6 /* namedGroup */
34: .line 193
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
35: .line 192
invokevirtual sun.security.ssl.NamedGroup.createPossession:(Ljava/security/SecureRandom;)Lsun/security/ssl/SSLPossession;
astore 8 /* sslPossession */
start local 8 // sun.security.ssl.SSLPossession sslPossession
36: .line 195
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 8 /* sslPossession */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
37: .line 197
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
38: .line 198
aload 3 /* chc */
aload 8 /* sslPossession */
invokeinterface sun.security.ssl.SSLPossession.encode:()[B
39: .line 197
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;[B)V
40: .line 196
astore 9 /* cke */
start local 9 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
41: .line 199
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 44
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 44
42: .line 201
ldc "Produced ECDH ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 9 /* cke */
aastore
43: .line 200
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
44: .line 205
StackMap locals: sun.security.ssl.SSLPossession sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 9 /* cke */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.write:(Lsun/security/ssl/HandshakeOutStream;)V
45: .line 206
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
46: .line 210
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
47: .line 211
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
48: .line 209
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 10 /* ke */
start local 10 // sun.security.ssl.SSLKeyExchange ke
49: .line 212
aload 10 /* ke */
ifnonnull 53
50: .line 214
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
51: .line 215
ldc "Not supported key exchange type"
52: .line 214
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
53: .line 217
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 10 /* ke */
aload 3 /* chc */
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 11 /* masterKD */
start local 11 // sun.security.ssl.SSLKeyDerivation masterKD
54: .line 219
aload 11 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
55: .line 218
astore 12 /* masterSecret */
start local 12 // javax.crypto.SecretKey masterSecret
56: .line 220
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 12 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
57: .line 223
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokestatic sun.security.ssl.SSLTrafficKeyDerivation.valueOf:(Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLTrafficKeyDerivation;
58: .line 222
astore 13 /* kd */
start local 13 // sun.security.ssl.SSLTrafficKeyDerivation kd
59: .line 224
aload 13 /* kd */
ifnonnull 65
60: .line 226
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
61: .line 227
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
62: .line 228
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
63: .line 227
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
64: .line 226
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
65: .line 230
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
66: .line 231
aload 13 /* kd */
aload 3 /* chc */
aload 12 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
67: .line 230
putfield sun.security.ssl.ClientHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
end local 13 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 12 // javax.crypto.SecretKey masterSecret
end local 11 // sun.security.ssl.SSLKeyDerivation masterKD
68: .line 236
aconst_null
areturn
end local 10 // sun.security.ssl.SSLKeyExchange ke
end local 9 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
end local 8 // sun.security.ssl.SSLPossession sslPossession
end local 7 // java.lang.String algorithm
end local 6 // sun.security.ssl.NamedGroup namedGroup
end local 5 // java.security.PublicKey publicKey
end local 4 // sun.security.ssl.X509Authentication$X509Credentials x509Credentials
end local 3 // sun.security.ssl.ClientHandshakeContext chc
end local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 69 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeProducer;
0 69 1 context Lsun/security/ssl/ConnectionContext;
0 69 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 69 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 69 4 x509Credentials Lsun/security/ssl/X509Authentication$X509Credentials;
4 7 5 credential Lsun/security/ssl/SSLCredentials;
13 69 5 publicKey Ljava/security/PublicKey;
14 69 6 namedGroup Lsun/security/ssl/NamedGroup;
15 69 7 algorithm Ljava/lang/String;
17 18 8 params Ljava/security/spec/ECParameterSpec;
22 25 8 params Ljava/security/spec/AlgorithmParameterSpec;
24 25 9 name Ljava/lang/String;
36 69 8 sslPossession Lsun/security/ssl/SSLPossession;
41 69 9 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
49 69 10 ke Lsun/security/ssl/SSLKeyExchange;
54 68 11 masterKD Lsun/security/ssl/SSLKeyDerivation;
56 68 12 masterSecret Ljavax/crypto/SecretKey;
59 68 13 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "ECDHClientKeyExchange.java"
NestHost: sun.security.ssl.ECDHClientKeyExchange
InnerClasses:
final KeyExchange = sun.security.ssl.CipherSuite$KeyExchange of sun.security.ssl.CipherSuite
private final ECDHClientKeyExchangeMessage = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage of sun.security.ssl.ECDHClientKeyExchange
private final ECDHClientKeyExchangeProducer = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeProducer of sun.security.ssl.ECDHClientKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final X509Credentials = sun.security.ssl.X509Authentication$X509Credentials of sun.security.ssl.X509Authentication