final class sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer
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.DHClientKeyExchange$DHClientKeyExchangeProducer this
0: .line 161
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 163
return
end local 0 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeProducer;
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=11, args_size=3
start local 0 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
0: .line 169
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 171
aconst_null
astore 4 /* dheCredentials */
start local 4 // sun.security.ssl.DHKeyExchange$DHECredentials dheCredentials
2: .line 172
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.DHClientKeyExchange$DHClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.DHKeyExchange$DHECredentials top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLCredentials
astore 5 /* cd */
start local 5 // sun.security.ssl.SSLCredentials cd
4: .line 173
aload 5 /* cd */
instanceof sun.security.ssl.DHKeyExchange$DHECredentials
ifeq 7
5: .line 174
aload 5 /* cd */
checkcast sun.security.ssl.DHKeyExchange$DHECredentials
astore 4 /* dheCredentials */
6: .line 175
goto 8
end local 5 // sun.security.ssl.SSLCredentials cd
7: .line 172
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: .line 179
StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.DHKeyExchange$DHECredentials
StackMap stack:
aload 4 /* dheCredentials */
ifnonnull 12
9: .line 180
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
10: .line 181
ldc "No DHE credentials negotiated for client key exchange"
11: .line 180
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: .line 185
StackMap locals:
StackMap stack:
new sun.security.ssl.DHKeyExchange$DHEPossession
dup
13: .line 186
aload 4 /* dheCredentials */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
14: .line 185
invokespecial sun.security.ssl.DHKeyExchange$DHEPossession.<init>:(Lsun/security/ssl/DHKeyExchange$DHECredentials;Ljava/security/SecureRandom;)V
astore 5 /* dhePossession */
start local 5 // sun.security.ssl.DHKeyExchange$DHEPossession dhePossession
15: .line 187
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 5 /* dhePossession */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: .line 189
new sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage
dup
aload 3 /* chc */
invokespecial sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;)V
17: .line 188
astore 6 /* ckem */
start local 6 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage ckem
18: .line 190
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 21
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 21
19: .line 192
ldc "Produced DH ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6 /* ckem */
aastore
20: .line 191
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
21: .line 196
StackMap locals: sun.security.ssl.DHKeyExchange$DHEPossession sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage
StackMap stack:
aload 6 /* ckem */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage.write:(Lsun/security/ssl/HandshakeOutStream;)V
22: .line 197
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
23: .line 201
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
24: .line 202
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
25: .line 200
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 7 /* ke */
start local 7 // sun.security.ssl.SSLKeyExchange ke
26: .line 203
aload 7 /* ke */
ifnonnull 30
27: .line 205
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
28: .line 206
ldc "Not supported key exchange type"
29: .line 205
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
30: .line 208
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 7 /* ke */
aload 3 /* chc */
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 8 /* masterKD */
start local 8 // sun.security.ssl.SSLKeyDerivation masterKD
31: .line 210
aload 8 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
32: .line 209
astore 9 /* masterSecret */
start local 9 // javax.crypto.SecretKey masterSecret
33: .line 211
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 9 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
34: .line 214
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;
35: .line 213
astore 10 /* kd */
start local 10 // sun.security.ssl.SSLTrafficKeyDerivation kd
36: .line 215
aload 10 /* kd */
ifnonnull 42
37: .line 217
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
38: .line 218
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
39: .line 219
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
40: .line 218
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
41: .line 217
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
42: .line 221
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
43: .line 222
aload 10 /* kd */
aload 3 /* chc */
aload 9 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
44: .line 221
putfield sun.security.ssl.ClientHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
end local 10 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 9 // javax.crypto.SecretKey masterSecret
end local 8 // sun.security.ssl.SSLKeyDerivation masterKD
45: .line 227
aconst_null
areturn
end local 7 // sun.security.ssl.SSLKeyExchange ke
end local 6 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage ckem
end local 5 // sun.security.ssl.DHKeyExchange$DHEPossession dhePossession
end local 4 // sun.security.ssl.DHKeyExchange$DHECredentials dheCredentials
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.DHClientKeyExchange$DHClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeProducer;
0 46 1 context Lsun/security/ssl/ConnectionContext;
0 46 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 46 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 46 4 dheCredentials Lsun/security/ssl/DHKeyExchange$DHECredentials;
4 7 5 cd Lsun/security/ssl/SSLCredentials;
15 46 5 dhePossession Lsun/security/ssl/DHKeyExchange$DHEPossession;
18 46 6 ckem Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeMessage;
26 46 7 ke Lsun/security/ssl/SSLKeyExchange;
31 45 8 masterKD Lsun/security/ssl/SSLKeyDerivation;
33 45 9 masterSecret Ljavax/crypto/SecretKey;
36 45 10 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "DHClientKeyExchange.java"
NestHost: sun.security.ssl.DHClientKeyExchange
InnerClasses:
final KeyExchange = sun.security.ssl.CipherSuite$KeyExchange of sun.security.ssl.CipherSuite
private final DHClientKeyExchangeMessage = sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage of sun.security.ssl.DHClientKeyExchange
private final DHClientKeyExchangeProducer = sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeProducer of sun.security.ssl.DHClientKeyExchange
final DHECredentials = sun.security.ssl.DHKeyExchange$DHECredentials of sun.security.ssl.DHKeyExchange
final DHEPossession = sun.security.ssl.DHKeyExchange$DHEPossession of sun.security.ssl.DHKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake