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 172
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 174
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 180
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 182
aconst_null
astore 4 /* x509Credentials */
start local 4 // sun.security.ssl.X509Authentication$X509Credentials x509Credentials
2: .line 183
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 184
aload 5 /* credential */
instanceof sun.security.ssl.X509Authentication$X509Credentials
ifeq 7
5: .line 185
aload 5 /* credential */
checkcast sun.security.ssl.X509Authentication$X509Credentials
astore 4 /* x509Credentials */
6: .line 186
goto 8
end local 5 // sun.security.ssl.SSLCredentials credential
7: .line 183
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: .line 190
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 191
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 192
ldc "No server certificate for ECDH client key exchange"
11: .line 191
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: .line 195
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 196
aload 5 /* publicKey */
invokeinterface java.security.PublicKey.getAlgorithm:()Ljava/lang/String;
ldc "EC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
14: .line 197
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
15: .line 198
ldc "Not EC server certificate for ECDH client key exchange"
16: .line 197
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
17: .line 201
StackMap locals: java.security.PublicKey
StackMap stack:
aload 5 /* publicKey */
checkcast java.security.interfaces.ECPublicKey
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
astore 6 /* params */
start local 6 // java.security.spec.ECParameterSpec params
18: .line 202
aload 6 /* params */
invokestatic sun.security.ssl.SupportedGroupsExtension$NamedGroup.valueOf:(Ljava/security/spec/ECParameterSpec;)Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
astore 7 /* namedGroup */
start local 7 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
19: .line 203
aload 7 /* namedGroup */
ifnonnull 23
20: .line 204
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
21: .line 205
ldc "Unsupported EC server cert for ECDH client key exchange"
22: .line 204
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
23: .line 208
StackMap locals: java.security.spec.ECParameterSpec sun.security.ssl.SupportedGroupsExtension$NamedGroup
StackMap stack:
new sun.security.ssl.ECDHKeyExchange$ECDHEPossession
dup
24: .line 209
aload 7 /* namedGroup */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
25: .line 208
invokespecial sun.security.ssl.ECDHKeyExchange$ECDHEPossession.<init>:(Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;Ljava/security/SecureRandom;)V
astore 8 /* ecdhePossession */
start local 8 // sun.security.ssl.ECDHKeyExchange$ECDHEPossession ecdhePossession
26: .line 210
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 8 /* ecdhePossession */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
27: .line 212
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
28: .line 213
aload 3 /* chc */
aload 8 /* ecdhePossession */
getfield sun.security.ssl.ECDHKeyExchange$ECDHEPossession.publicKey:Ljava/security/interfaces/ECPublicKey;
29: .line 212
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/security/interfaces/ECPublicKey;)V
30: .line 211
astore 9 /* cke */
start local 9 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
31: .line 214
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 34
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 34
32: .line 216
ldc "Produced ECDH ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 9 /* cke */
aastore
33: .line 215
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
34: .line 220
StackMap locals: sun.security.ssl.ECDHKeyExchange$ECDHEPossession 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
35: .line 221
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
36: .line 225
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
37: .line 226
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
38: .line 224
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
39: .line 227
aload 10 /* ke */
ifnonnull 43
40: .line 229
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
41: .line 230
ldc "Not supported key exchange type"
42: .line 229
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
43: .line 232
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
44: .line 234
aload 11 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
45: .line 233
astore 12 /* masterSecret */
start local 12 // javax.crypto.SecretKey masterSecret
46: .line 235
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
47: .line 238
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;
48: .line 237
astore 13 /* kd */
start local 13 // sun.security.ssl.SSLTrafficKeyDerivation kd
49: .line 239
aload 13 /* kd */
ifnonnull 55
50: .line 241
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 242
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
52: .line 243
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
53: .line 242
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
54: .line 241
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
55: .line 245
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
56: .line 246
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;
57: .line 245
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
58: .line 251
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.ECDHKeyExchange$ECDHEPossession ecdhePossession
end local 7 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
end local 6 // java.security.spec.ECParameterSpec params
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 59 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeProducer;
0 59 1 context Lsun/security/ssl/ConnectionContext;
0 59 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 59 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 59 4 x509Credentials Lsun/security/ssl/X509Authentication$X509Credentials;
4 7 5 credential Lsun/security/ssl/SSLCredentials;
13 59 5 publicKey Ljava/security/PublicKey;
18 59 6 params Ljava/security/spec/ECParameterSpec;
19 59 7 namedGroup Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
26 59 8 ecdhePossession Lsun/security/ssl/ECDHKeyExchange$ECDHEPossession;
31 59 9 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
39 59 10 ke Lsun/security/ssl/SSLKeyExchange;
44 58 11 masterKD Lsun/security/ssl/SSLKeyDerivation;
46 58 12 masterSecret Ljavax/crypto/SecretKey;
49 58 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
final ECDHEPossession = sun.security.ssl.ECDHKeyExchange$ECDHEPossession of sun.security.ssl.ECDHKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final NamedGroup = sun.security.ssl.SupportedGroupsExtension$NamedGroup of sun.security.ssl.SupportedGroupsExtension
final X509Credentials = sun.security.ssl.X509Authentication$X509Credentials of sun.security.ssl.X509Authentication