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 369
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 371
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=11, 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 377
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 379
aconst_null
astore 4 /* ecdheCredentials */
start local 4 // sun.security.ssl.ECDHKeyExchange$ECDHECredentials ecdheCredentials
2: .line 380
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$ECDHEClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.ECDHKeyExchange$ECDHECredentials 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 381
aload 5 /* cd */
instanceof sun.security.ssl.ECDHKeyExchange$ECDHECredentials
ifeq 7
5: .line 382
aload 5 /* cd */
checkcast sun.security.ssl.ECDHKeyExchange$ECDHECredentials
astore 4 /* ecdheCredentials */
6: .line 383
goto 8
end local 5 // sun.security.ssl.SSLCredentials cd
7: .line 380
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: .line 387
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.ECDHKeyExchange$ECDHECredentials
StackMap stack:
aload 4 /* ecdheCredentials */
ifnonnull 12
9: .line 388
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 389
ldc "No ECDHE credentials negotiated for client key exchange"
11: .line 388
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: .line 392
StackMap locals:
StackMap stack:
new sun.security.ssl.ECDHKeyExchange$ECDHEPossession
dup
13: .line 393
aload 4 /* ecdheCredentials */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
14: .line 392
invokespecial sun.security.ssl.ECDHKeyExchange$ECDHEPossession.<init>:(Lsun/security/ssl/ECDHKeyExchange$ECDHECredentials;Ljava/security/SecureRandom;)V
astore 5 /* ecdhePossession */
start local 5 // sun.security.ssl.ECDHKeyExchange$ECDHEPossession ecdhePossession
15: .line 394
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 5 /* ecdhePossession */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: .line 396
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
17: .line 397
aload 3 /* chc */
aload 5 /* ecdhePossession */
getfield sun.security.ssl.ECDHKeyExchange$ECDHEPossession.publicKey:Ljava/security/interfaces/ECPublicKey;
18: .line 396
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/security/interfaces/ECPublicKey;)V
19: .line 395
astore 6 /* cke */
start local 6 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
20: .line 398
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 23
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 23
21: .line 400
ldc "Produced ECDHE ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6 /* cke */
aastore
22: .line 399
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
23: .line 404
StackMap locals: sun.security.ssl.ECDHKeyExchange$ECDHEPossession sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 6 /* 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
24: .line 405
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
25: .line 409
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
26: .line 410
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
27: .line 408
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
28: .line 411
aload 7 /* ke */
ifnonnull 32
29: .line 413
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
30: .line 414
ldc "Not supported key exchange type"
31: .line 413
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
32: .line 416
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
33: .line 418
aload 8 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
34: .line 417
astore 9 /* masterSecret */
start local 9 // javax.crypto.SecretKey masterSecret
35: .line 419
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
36: .line 422
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;
37: .line 421
astore 10 /* kd */
start local 10 // sun.security.ssl.SSLTrafficKeyDerivation kd
38: .line 423
aload 10 /* kd */
ifnonnull 44
39: .line 425
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
40: .line 426
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
41: .line 427
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
42: .line 426
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
43: .line 425
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
44: .line 429
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
45: .line 430
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;
46: .line 429
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
47: .line 435
aconst_null
areturn
end local 7 // sun.security.ssl.SSLKeyExchange ke
end local 6 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
end local 5 // sun.security.ssl.ECDHKeyExchange$ECDHEPossession ecdhePossession
end local 4 // sun.security.ssl.ECDHKeyExchange$ECDHECredentials ecdheCredentials
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 48 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeProducer;
0 48 1 context Lsun/security/ssl/ConnectionContext;
0 48 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 48 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 48 4 ecdheCredentials Lsun/security/ssl/ECDHKeyExchange$ECDHECredentials;
4 7 5 cd Lsun/security/ssl/SSLCredentials;
15 48 5 ecdhePossession Lsun/security/ssl/ECDHKeyExchange$ECDHEPossession;
20 48 6 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
28 48 7 ke Lsun/security/ssl/SSLKeyExchange;
33 47 8 masterKD Lsun/security/ssl/SSLKeyDerivation;
35 47 9 masterSecret Ljavax/crypto/SecretKey;
38 47 10 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
final ECDHECredentials = sun.security.ssl.ECDHKeyExchange$ECDHECredentials of sun.security.ssl.ECDHKeyExchange
final ECDHEPossession = sun.security.ssl.ECDHKeyExchange$ECDHEPossession of sun.security.ssl.ECDHKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake