final class sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer
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$ECDHClientKeyExchangeConsumer this
0: .line 261
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 263
return
end local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer;
public void consume(sun.security.ssl.ConnectionContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/ConnectionContext;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=3
start local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // java.nio.ByteBuffer message
0: .line 269
aload 1 /* context */
checkcast sun.security.ssl.ServerHandshakeContext
astore 3 /* shc */
start local 3 // sun.security.ssl.ServerHandshakeContext shc
1: .line 271
aconst_null
astore 4 /* x509Possession */
start local 4 // sun.security.ssl.X509Authentication$X509Possession x509Possession
2: .line 272
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakePossessions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Possession top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLPossession
astore 5 /* possession */
start local 5 // sun.security.ssl.SSLPossession possession
4: .line 273
aload 5 /* possession */
instanceof sun.security.ssl.X509Authentication$X509Possession
ifeq 7
5: .line 274
aload 5 /* possession */
checkcast sun.security.ssl.X509Authentication$X509Possession
astore 4 /* x509Possession */
6: .line 275
goto 8
end local 5 // sun.security.ssl.SSLPossession possession
7: .line 272
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: .line 279
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Possession
StackMap stack:
aload 4 /* x509Possession */
ifnonnull 12
9: .line 281
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
10: .line 282
ldc "No expected EC server cert for ECDH client key exchange"
11: .line 281
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: .line 285
StackMap locals:
StackMap stack:
aload 4 /* x509Possession */
invokevirtual sun.security.ssl.X509Authentication$X509Possession.getECParameterSpec:()Ljava/security/spec/ECParameterSpec;
astore 5 /* params */
start local 5 // java.security.spec.ECParameterSpec params
13: .line 286
aload 5 /* params */
ifnonnull 17
14: .line 288
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
15: .line 289
ldc "Not EC server cert for ECDH client key exchange"
16: .line 288
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
17: .line 292
StackMap locals: java.security.spec.ECParameterSpec
StackMap stack:
aload 5 /* params */
invokestatic sun.security.ssl.SupportedGroupsExtension$NamedGroup.valueOf:(Ljava/security/spec/ECParameterSpec;)Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
astore 6 /* namedGroup */
start local 6 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
18: .line 293
aload 6 /* namedGroup */
ifnonnull 22
19: .line 295
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
20: .line 296
ldc "Unsupported EC server cert for ECDH client key exchange"
21: .line 295
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
22: .line 300
StackMap locals: sun.security.ssl.SupportedGroupsExtension$NamedGroup
StackMap stack:
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
23: .line 301
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
24: .line 299
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
25: .line 302
aload 7 /* ke */
ifnonnull 29
26: .line 304
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
27: .line 305
ldc "Not supported key exchange type"
28: .line 304
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
29: .line 310
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
aload 3 /* shc */
aload 2 /* message */
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
30: .line 309
astore 8 /* cke */
start local 8 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
31: .line 311
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 313
ldc "Consuming ECDH ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8 /* cke */
aastore
33: .line 312
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
34: .line 319
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 8 /* cke */
getfield sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.encodedPoint:[B
aload 5 /* params */
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.ssl.JsseJce.decodePoint:([BLjava/security/spec/EllipticCurve;)Ljava/security/spec/ECPoint;
35: .line 318
astore 9 /* point */
start local 9 // java.security.spec.ECPoint point
36: .line 320
new java.security.spec.ECPublicKeySpec
dup
aload 9 /* point */
aload 5 /* params */
invokespecial java.security.spec.ECPublicKeySpec.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
astore 10 /* spec */
start local 10 // java.security.spec.ECPublicKeySpec spec
37: .line 322
ldc "EC"
invokestatic sun.security.ssl.JsseJce.getKeyFactory:(Ljava/lang/String;)Ljava/security/KeyFactory;
astore 11 /* kf */
start local 11 // java.security.KeyFactory kf
38: .line 324
aload 11 /* kf */
aload 10 /* spec */
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
checkcast java.security.interfaces.ECPublicKey
39: .line 323
astore 12 /* peerPublicKey */
start local 12 // java.security.interfaces.ECPublicKey peerPublicKey
40: .line 327
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
41: .line 328
getstatic java.security.CryptoPrimitive.KEY_AGREEMENT:Ljava/security/CryptoPrimitive;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
42: .line 329
aload 12 /* peerPublicKey */
43: .line 327
invokeinterface java.security.AlgorithmConstraints.permits:(Ljava/util/Set;Ljava/security/Key;)Z
44: .line 329
ifne 48
45: .line 330
new javax.net.ssl.SSLHandshakeException
dup
46: .line 331
ldc "ECPublicKey does not comply to algorithm constraints"
47: .line 330
invokespecial javax.net.ssl.SSLHandshakeException.<init>:(Ljava/lang/String;)V
athrow
48: .line 334
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Possession java.security.spec.ECParameterSpec sun.security.ssl.SupportedGroupsExtension$NamedGroup sun.security.ssl.SSLKeyExchange sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage java.security.spec.ECPoint java.security.spec.ECPublicKeySpec java.security.KeyFactory java.security.interfaces.ECPublicKey
StackMap stack:
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
new sun.security.ssl.ECDHKeyExchange$ECDHECredentials
dup
49: .line 335
aload 12 /* peerPublicKey */
aload 6 /* namedGroup */
invokespecial sun.security.ssl.ECDHKeyExchange$ECDHECredentials.<init>:(Ljava/security/interfaces/ECPublicKey;Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;)V
50: .line 334
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 12 // java.security.interfaces.ECPublicKey peerPublicKey
end local 11 // java.security.KeyFactory kf
end local 10 // java.security.spec.ECPublicKeySpec spec
end local 9 // java.security.spec.ECPoint point
51: .line 336
goto 58
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Possession java.security.spec.ECParameterSpec sun.security.ssl.SupportedGroupsExtension$NamedGroup sun.security.ssl.SSLKeyExchange sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack: java.lang.Exception
52: astore 9 /* e */
start local 9 // java.lang.Exception e
53: .line 337
new javax.net.ssl.SSLHandshakeException
dup
54: .line 338
ldc "Could not generate ECPublicKey"
55: .line 337
invokespecial javax.net.ssl.SSLHandshakeException.<init>:(Ljava/lang/String;)V
56: .line 338
aload 9 /* e */
invokevirtual javax.net.ssl.SSLHandshakeException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
57: .line 337
checkcast javax.net.ssl.SSLHandshakeException
athrow
end local 9 // java.lang.Exception e
58: .line 342
StackMap locals:
StackMap stack:
aload 7 /* ke */
aload 3 /* shc */
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
59: .line 344
aload 9 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
60: .line 343
astore 10 /* masterSecret */
start local 10 // javax.crypto.SecretKey masterSecret
61: .line 345
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 10 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
62: .line 348
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokestatic sun.security.ssl.SSLTrafficKeyDerivation.valueOf:(Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLTrafficKeyDerivation;
63: .line 347
astore 11 /* kd */
start local 11 // sun.security.ssl.SSLTrafficKeyDerivation kd
64: .line 349
aload 11 /* kd */
ifnonnull 68
65: .line 351
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
66: .line 352
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
67: .line 351
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
68: .line 354
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* shc */
69: .line 355
aload 11 /* kd */
aload 3 /* shc */
aload 10 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
70: .line 354
putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
71: .line 357
return
end local 11 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 10 // javax.crypto.SecretKey masterSecret
end local 9 // sun.security.ssl.SSLKeyDerivation masterKD
end local 8 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage cke
end local 7 // sun.security.ssl.SSLKeyExchange ke
end local 6 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
end local 5 // java.security.spec.ECParameterSpec params
end local 4 // sun.security.ssl.X509Authentication$X509Possession x509Possession
end local 3 // sun.security.ssl.ServerHandshakeContext shc
end local 2 // java.nio.ByteBuffer message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 72 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer;
0 72 1 context Lsun/security/ssl/ConnectionContext;
0 72 2 message Ljava/nio/ByteBuffer;
1 72 3 shc Lsun/security/ssl/ServerHandshakeContext;
2 72 4 x509Possession Lsun/security/ssl/X509Authentication$X509Possession;
4 7 5 possession Lsun/security/ssl/SSLPossession;
13 72 5 params Ljava/security/spec/ECParameterSpec;
18 72 6 namedGroup Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
25 72 7 ke Lsun/security/ssl/SSLKeyExchange;
31 72 8 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
36 51 9 point Ljava/security/spec/ECPoint;
37 51 10 spec Ljava/security/spec/ECPublicKeySpec;
38 51 11 kf Ljava/security/KeyFactory;
40 51 12 peerPublicKey Ljava/security/interfaces/ECPublicKey;
53 58 9 e Ljava/lang/Exception;
59 72 9 masterKD Lsun/security/ssl/SSLKeyDerivation;
61 72 10 masterSecret Ljavax/crypto/SecretKey;
64 72 11 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exception table:
from to target type
34 51 52 Class java.security.GeneralSecurityException
34 51 52 Class java.io.IOException
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 ECDHClientKeyExchangeConsumer = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer of sun.security.ssl.ECDHClientKeyExchange
private final ECDHClientKeyExchangeMessage = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage of sun.security.ssl.ECDHClientKeyExchange
final ECDHECredentials = sun.security.ssl.ECDHKeyExchange$ECDHECredentials of sun.security.ssl.ECDHKeyExchange
final NamedGroup = sun.security.ssl.SupportedGroupsExtension$NamedGroup of sun.security.ssl.SupportedGroupsExtension
final X509Possession = sun.security.ssl.X509Authentication$X509Possession of sun.security.ssl.X509Authentication