final class sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer
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 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer;
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=11, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast sun.security.ssl.ServerHandshakeContext
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakePossessions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.SSLPossession 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.SSLPossession
astore 6
start local 6 5: aload 6
instanceof sun.security.ssl.NamedGroupPossession
ifeq 11
6: aload 6
checkcast sun.security.ssl.NamedGroupPossession
7: astore 8
start local 8 8: aload 8
invokeinterface sun.security.ssl.NamedGroupPossession.getNamedGroup:()Lsun/security/ssl/NamedGroup;
astore 5
9: aload 8
astore 4
10: goto 12
end local 8 end local 6 11: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
12: StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.SSLPossession sun.security.ssl.NamedGroup
StackMap stack:
aload 4
ifnonnull 16
13: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
14: ldc "No expected ECDHE possessions for client key exchange"
15: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
16: StackMap locals:
StackMap stack:
aload 5
ifnonnull 20
17: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
18: ldc "Unsupported EC server cert for ECDHE client key exchange"
19: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
20: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
21: aload 3
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
22: invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 6
start local 6 23: aload 6
ifnonnull 27
24: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
25: ldc "Not supported key exchange type"
26: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
27: StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
new sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
dup
aload 3
aload 2
invokespecial sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
28: astore 7
start local 7 29: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 32
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 32
30: ldc "Consuming ECDHE ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
aastore
31: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
32: StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 5
astore 8
start local 8 33: aload 5
34: aload 7
getfield sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.encodedPoint:[B
aload 3
getfield sun.security.ssl.ServerHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
35: aload 3
aload 8
invokedynamic apply(Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/NamedGroup;)Lsun/security/ssl/NamedGroup$ExceptionSupplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/String;)V
sun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer.lambda$0(Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/NamedGroup;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
36: invokevirtual sun.security.ssl.NamedGroup.decodeCredentials:([BLjava/security/AlgorithmConstraints;Lsun/security/ssl/NamedGroup$ExceptionSupplier;)Lsun/security/ssl/SSLCredentials;
astore 9
start local 9 37: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 38: goto 43
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
39: pop
40: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
41: new java.lang.StringBuilder
dup
ldc "Cannot decode named group: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
43: StackMap locals:
StackMap stack:
aload 6
aload 3
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 8
start local 8 44: aload 8
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
45: astore 9
start local 9 46: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 9
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
47: aload 3
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokestatic sun.security.ssl.SSLTrafficKeyDerivation.valueOf:(Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLTrafficKeyDerivation;
48: astore 10
start local 10 49: aload 10
ifnonnull 53
50: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
51: new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
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;
52: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
53: StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3
54: aload 10
aload 3
aload 9
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
55: putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
56: return
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer;
0 57 1 context Lsun/security/ssl/ConnectionContext;
0 57 2 message Ljava/nio/ByteBuffer;
1 57 3 shc Lsun/security/ssl/ServerHandshakeContext;
2 57 4 sslPossession Lsun/security/ssl/SSLPossession;
3 57 5 namedGroup Lsun/security/ssl/NamedGroup;
5 11 6 possession Lsun/security/ssl/SSLPossession;
8 11 8 poss Lsun/security/ssl/NamedGroupPossession;
23 57 6 ke Lsun/security/ssl/SSLKeyExchange;
29 57 7 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
33 38 8 ng Lsun/security/ssl/NamedGroup;
37 38 9 sslCredentials Lsun/security/ssl/SSLCredentials;
44 57 8 masterKD Lsun/security/ssl/SSLKeyDerivation;
46 57 9 masterSecret Ljavax/crypto/SecretKey;
49 57 10 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exception table:
from to target type
32 38 39 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
private static void lambda$0(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.NamedGroup, java.lang.String);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/NamedGroup;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=3, args_size=3
start local 2 0: aload 0
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INSUFFICIENT_SECURITY:Lsun/security/ssl/Alert;
1: new java.lang.StringBuilder
dup
ldc "ClientKeyExchange "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
3: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 4 2 s Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
}
SourceFile: "ECDHClientKeyExchange.java"
NestHost: sun.security.ssl.ECDHClientKeyExchange
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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 ECDHEClientKeyExchangeConsumer = sun.security.ssl.ECDHClientKeyExchange$ECDHEClientKeyExchangeConsumer of sun.security.ssl.ECDHClientKeyExchange
abstract ExceptionSupplier = sun.security.ssl.NamedGroup$ExceptionSupplier of sun.security.ssl.NamedGroup