final class sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer
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$ECDHEClientKeyExchangeProducer this
0: .line 358
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 360
return
end local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer;
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=12, args_size=3
start local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
0: .line 366
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 368
aconst_null
astore 4 /* sslCredentials */
start local 4 // sun.security.ssl.SSLCredentials sslCredentials
2: .line 369
aconst_null
astore 5 /* ng */
start local 5 // sun.security.ssl.NamedGroup ng
3: .line 374
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeCredentials:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.SSLCredentials sun.security.ssl.NamedGroup top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLCredentials
astore 6 /* cd */
start local 6 // sun.security.ssl.SSLCredentials cd
5: .line 375
aload 6 /* cd */
instanceof sun.security.ssl.NamedGroupCredentials
ifeq 11
6: .line 376
aload 6 /* cd */
checkcast sun.security.ssl.NamedGroupCredentials
astore 8 /* creds */
start local 8 // sun.security.ssl.NamedGroupCredentials creds
7: .line 377
aload 8 /* creds */
invokeinterface sun.security.ssl.NamedGroupCredentials.getNamedGroup:()Lsun/security/ssl/NamedGroup;
astore 5 /* ng */
8: .line 378
aload 8 /* creds */
invokeinterface sun.security.ssl.NamedGroupCredentials.getPublicKey:()Ljava/security/PublicKey;
pop
9: .line 379
aload 6 /* cd */
astore 4 /* sslCredentials */
10: .line 380
goto 12
end local 8 // sun.security.ssl.NamedGroupCredentials creds
end local 6 // sun.security.ssl.SSLCredentials cd
11: .line 374
StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
12: .line 384
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.SSLCredentials sun.security.ssl.NamedGroup
StackMap stack:
aload 4 /* sslCredentials */
ifnonnull 16
13: .line 385
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
14: .line 386
ldc "No ECDHE credentials negotiated for client key exchange"
15: .line 385
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
16: .line 389
StackMap locals:
StackMap stack:
aload 5 /* ng */
17: .line 390
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
18: .line 389
invokevirtual sun.security.ssl.NamedGroup.createPossession:(Ljava/security/SecureRandom;)Lsun/security/ssl/SSLPossession;
astore 6 /* sslPossession */
start local 6 // sun.security.ssl.SSLPossession sslPossession
19: .line 392
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 6 /* sslPossession */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: .line 396
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
21: .line 397
aload 3 /* chc */
aload 6 /* sslPossession */
invokeinterface sun.security.ssl.SSLPossession.encode:()[B
22: .line 396
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;[B)V
23: .line 395
astore 7 /* cke */
start local 7 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
24: .line 399
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 27
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 27
25: .line 401
ldc "Produced ECDHE ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7 /* cke */
aastore
26: .line 400
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
27: .line 405
StackMap locals: sun.security.ssl.SSLPossession sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 7 /* 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
28: .line 406
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
29: .line 410
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
30: .line 411
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
31: .line 409
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 8 /* ke */
start local 8 // sun.security.ssl.SSLKeyExchange ke
32: .line 412
aload 8 /* ke */
ifnonnull 36
33: .line 414
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
34: .line 415
ldc "Not supported key exchange type"
35: .line 414
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
36: .line 417
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 8 /* ke */
aload 3 /* chc */
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 9 /* masterKD */
start local 9 // sun.security.ssl.SSLKeyDerivation masterKD
37: .line 419
aload 9 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
38: .line 418
astore 10 /* masterSecret */
start local 10 // javax.crypto.SecretKey masterSecret
39: .line 420
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 10 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
40: .line 423
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;
41: .line 422
astore 11 /* kd */
start local 11 // sun.security.ssl.SSLTrafficKeyDerivation kd
42: .line 424
aload 11 /* kd */
ifnonnull 48
43: .line 426
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
44: .line 427
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
45: .line 428
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
46: .line 427
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
47: .line 426
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
48: .line 430
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
49: .line 431
aload 11 /* kd */
aload 3 /* chc */
aload 10 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
50: .line 430
putfield sun.security.ssl.ClientHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
end local 11 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 10 // javax.crypto.SecretKey masterSecret
end local 9 // sun.security.ssl.SSLKeyDerivation masterKD
51: .line 436
aconst_null
areturn
end local 8 // sun.security.ssl.SSLKeyExchange ke
end local 7 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
end local 6 // sun.security.ssl.SSLPossession sslPossession
end local 5 // sun.security.ssl.NamedGroup ng
end local 4 // sun.security.ssl.SSLCredentials sslCredentials
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$ECDHEClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer;
0 52 1 context Lsun/security/ssl/ConnectionContext;
0 52 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 52 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 52 4 sslCredentials Lsun/security/ssl/SSLCredentials;
3 52 5 ng Lsun/security/ssl/NamedGroup;
5 11 6 cd Lsun/security/ssl/SSLCredentials;
7 11 8 creds Lsun/security/ssl/NamedGroupCredentials;
19 52 6 sslPossession Lsun/security/ssl/SSLPossession;
24 52 7 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
32 52 8 ke Lsun/security/ssl/SSLKeyExchange;
37 51 9 masterKD Lsun/security/ssl/SSLKeyDerivation;
39 51 10 masterSecret Ljavax/crypto/SecretKey;
42 51 11 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 ECDHEClientKeyExchangeProducer = sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer of sun.security.ssl.ECDHClientKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake