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 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$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 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: aload 3
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
start local 5 4: aload 5
instanceof sun.security.ssl.X509Authentication$X509Possession
ifeq 7
5: aload 5
checkcast sun.security.ssl.X509Authentication$X509Possession
astore 4
6: goto 8
end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: 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
ifnonnull 12
9: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
10: ldc "No expected EC server cert for ECDH client key exchange"
11: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
12: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 13: aload 4
invokevirtual sun.security.ssl.X509Authentication$X509Possession.getECParameterSpec:()Ljava/security/spec/ECParameterSpec;
astore 6
start local 6 14: aconst_null
astore 7
start local 7 15: aload 6
ifnull 17
16: aload 6
invokestatic sun.security.ssl.NamedGroup.valueOf:(Ljava/security/spec/ECParameterSpec;)Lsun/security/ssl/NamedGroup;
astore 5
17: StackMap locals: sun.security.ssl.NamedGroup java.security.spec.ECParameterSpec java.security.spec.NamedParameterSpec
StackMap stack:
aload 6
ifnonnull 20
18: aload 4
invokevirtual sun.security.ssl.X509Authentication$X509Possession.getXECParameterSpec:()Ljava/security/spec/NamedParameterSpec;
astore 7
19: aload 7
invokevirtual java.security.spec.NamedParameterSpec.getName:()Ljava/lang/String;
invokestatic sun.security.ssl.NamedGroup.nameOf:(Ljava/lang/String;)Lsun/security/ssl/NamedGroup;
astore 5
20: StackMap locals:
StackMap stack:
aload 6
ifnonnull 24
aload 7
ifnonnull 24
21: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
22: ldc "Not EC/XDH server cert for ECDH client key exchange"
23: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
24: StackMap locals:
StackMap stack:
aload 5
ifnonnull 28
25: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
26: ldc "Unknown named group in server cert for ECDH client key exchange"
27: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
28: 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;
29: aload 3
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
30: invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 8
start local 8 31: aload 8
ifnonnull 35
32: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
33: ldc "Not supported key exchange type"
34: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
35: 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
36: astore 9
start local 9 37: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 40
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 40
38: ldc "Consuming ECDH ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 9
aastore
39: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
40: StackMap locals: sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage
StackMap stack:
aload 5
astore 10
start local 10 41: aload 5
42: aload 9
getfield sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage.encodedPoint:[B
aload 3
getfield sun.security.ssl.ServerHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
43: aload 3
aload 10
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$ECDHClientKeyExchangeConsumer.lambda$0(Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/NamedGroup;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
44: invokevirtual sun.security.ssl.NamedGroup.decodeCredentials:([BLjava/security/AlgorithmConstraints;Lsun/security/ssl/NamedGroup$ExceptionSupplier;)Lsun/security/ssl/SSLCredentials;
astore 11
start local 11 45: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 11 end local 10 46: goto 51
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
47: pop
48: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
49: new java.lang.StringBuilder
dup
ldc "Cannot decode ECDH PublicKey: "
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;
50: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
51: StackMap locals:
StackMap stack:
aload 8
aload 3
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 10
start local 10 52: aload 10
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
53: astore 11
start local 11 54: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 11
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
55: 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;
56: astore 12
start local 12 57: aload 12
ifnonnull 61
58: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
59: 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;
60: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
61: StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3
62: aload 12
aload 3
aload 11
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
63: putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
64: return
end local 12 end local 11 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 65 0 this Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer;
0 65 1 context Lsun/security/ssl/ConnectionContext;
0 65 2 message Ljava/nio/ByteBuffer;
1 65 3 shc Lsun/security/ssl/ServerHandshakeContext;
2 65 4 x509Possession Lsun/security/ssl/X509Authentication$X509Possession;
4 7 5 possession Lsun/security/ssl/SSLPossession;
13 65 5 namedGroup Lsun/security/ssl/NamedGroup;
14 65 6 ecParams Ljava/security/spec/ECParameterSpec;
15 65 7 namedParams Ljava/security/spec/NamedParameterSpec;
31 65 8 ke Lsun/security/ssl/SSLKeyExchange;
37 65 9 cke Lsun/security/ssl/ECDHClientKeyExchange$ECDHClientKeyExchangeMessage;
41 46 10 ng Lsun/security/ssl/NamedGroup;
45 46 11 sslCredentials Lsun/security/ssl/SSLCredentials;
52 65 10 masterKD Lsun/security/ssl/SSLKeyDerivation;
54 65 11 masterSecret Ljavax/crypto/SecretKey;
57 65 12 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exception table:
from to target type
40 46 47 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 ECDHClientKeyExchangeConsumer = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeConsumer of sun.security.ssl.ECDHClientKeyExchange
private final ECDHClientKeyExchangeMessage = sun.security.ssl.ECDHClientKeyExchange$ECDHClientKeyExchangeMessage of sun.security.ssl.ECDHClientKeyExchange
abstract ExceptionSupplier = sun.security.ssl.NamedGroup$ExceptionSupplier of sun.security.ssl.NamedGroup
final X509Possession = sun.security.ssl.X509Authentication$X509Possession of sun.security.ssl.X509Authentication