public class sun.security.ec.XDHKeyFactory extends java.security.KeyFactorySpi
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.ec.XDHKeyFactory
super_class: java.security.KeyFactorySpi
{
private sun.security.ec.XECParameters lockedParams;
descriptor: Lsun/security/ec/XECParameters;
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.KeyFactorySpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ec/XDHKeyFactory;
protected void <init>(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.security.KeyFactorySpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
2: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/ProviderException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/ProviderException;
aload 1
invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
putfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/XDHKeyFactory;
0 4 1 paramSpec Ljava/security/spec/AlgorithmParameterSpec;
MethodParameters:
Name Flags
paramSpec
protected java.security.Key engineTranslateKey(java.security.Key);
descriptor: (Ljava/security/Key;)Ljava/security/Key;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.XECKey
ifeq 18
3: aload 1
checkcast java.security.interfaces.XECKey
astore 2
start local 2 4: invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
5: aload 2
invokeinterface java.security.interfaces.XECKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
6: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
astore 3
start local 3 7: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
aload 3
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/XECParameters;)V
8: aload 2
instanceof java.security.interfaces.XECPublicKey
ifeq 11
9: aload 2
checkcast java.security.interfaces.XECPublicKey
astore 4
start local 4 10: new sun.security.ec.XDHPublicKeyImpl
dup
aload 3
aload 4
invokeinterface java.security.interfaces.XECPublicKey.getU:()Ljava/math/BigInteger;
invokespecial sun.security.ec.XDHPublicKeyImpl.<init>:(Lsun/security/ec/XECParameters;Ljava/math/BigInteger;)V
areturn
end local 4 11: StackMap locals: java.security.interfaces.XECKey sun.security.ec.XECParameters
StackMap stack:
aload 2
instanceof java.security.interfaces.XECPrivateKey
ifeq 17
12: aload 2
checkcast java.security.interfaces.XECPrivateKey
astore 4
start local 4 13: aload 4
invokeinterface java.security.interfaces.XECPrivateKey.getScalar:()Ljava/util/Optional;
14: invokedynamic get()Ljava/util/function/Supplier;
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/Object;
sun/security/ec/XDHKeyFactory.lambda$3()Ljava/security/InvalidKeyException; (6)
()Ljava/security/InvalidKeyException;
15: invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 16: new sun.security.ec.XDHPrivateKeyImpl
dup
aload 3
aload 5
invokespecial sun.security.ec.XDHPrivateKeyImpl.<init>:(Lsun/security/ec/XECParameters;[B)V
areturn
end local 5 end local 4 17: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Unsupported XECKey subclass"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 18: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.PublicKey
ifeq 23
19: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "X.509"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
20: new sun.security.ec.XDHPublicKeyImpl
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial sun.security.ec.XDHPublicKeyImpl.<init>:([B)V
astore 2
start local 2 21: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
aload 2
invokevirtual sun.security.ec.XDHPublicKeyImpl.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
22: aload 2
areturn
end local 2 23: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.PrivateKey
ifeq 28
24: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "PKCS#8"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 28
25: new sun.security.ec.XDHPrivateKeyImpl
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial sun.security.ec.XDHPrivateKeyImpl.<init>:([B)V
astore 2
start local 2 26: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
aload 2
invokevirtual sun.security.ec.XDHPrivateKeyImpl.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
27: aload 2
areturn
end local 2 28: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Unsupported key type or format"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/security/ec/XDHKeyFactory;
0 29 1 key Ljava/security/Key;
4 18 2 xecKey Ljava/security/interfaces/XECKey;
7 18 3 params Lsun/security/ec/XECParameters;
10 11 4 publicKey Ljava/security/interfaces/XECPublicKey;
13 17 4 privateKey Ljava/security/interfaces/XECPrivateKey;
16 17 5 scalar [B
21 23 2 result Lsun/security/ec/XDHPublicKeyImpl;
26 28 2 result Lsun/security/ec/XDHPrivateKeyImpl;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private <T extends java.lang.Throwable> void checkLockedParams(java.util.function.Function<java.lang.String, T>, java.security.spec.AlgorithmParameterSpec) throws T;
descriptor: (Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/XECParameters;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ec/XDHKeyFactory;
0 3 1 exception Ljava/util/function/Function<Ljava/lang/String;TT;>;
0 3 2 spec Ljava/security/spec/AlgorithmParameterSpec;
1 3 3 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.lang.Throwable
Signature: <T:Ljava/lang/Throwable;>(Ljava/util/function/Function<Ljava/lang/String;TT;>;Ljava/security/spec/AlgorithmParameterSpec;)V^TT;
MethodParameters:
Name Flags
exception
spec
private <T extends java.lang.Throwable> void checkLockedParams(java.util.function.Function<java.lang.String, T>, sun.security.ec.XECParameters) throws T;
descriptor: (Ljava/util/function/Function;Lsun/security/ec/XECParameters;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
ifnull 4
aload 0
getfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
aload 2
if_acmpeq 4
1: aload 1
new java.lang.StringBuilder
dup
ldc "Parameters must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: aload 0
getfield sun.security.ec.XDHKeyFactory.lockedParams:Lsun/security/ec/XECParameters;
invokevirtual sun.security.ec.XECParameters.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Throwable
athrow
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/XDHKeyFactory;
0 5 1 exception Ljava/util/function/Function<Ljava/lang/String;TT;>;
0 5 2 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.lang.Throwable
Signature: <T:Ljava/lang/Throwable;>(Ljava/util/function/Function<Ljava/lang/String;TT;>;Lsun/security/ec/XECParameters;)V^TT;
MethodParameters:
Name Flags
exception
params
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.ec.XDHKeyFactory.generatePublicImpl:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
1: areturn
2: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 2
start local 2 3: new java.security.spec.InvalidKeySpecException
dup
aload 2
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/XDHKeyFactory;
0 4 1 keySpec Ljava/security/spec/KeySpec;
3 4 2 ex Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 1 2 Class java.security.InvalidKeyException
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.ec.XDHKeyFactory.generatePrivateImpl:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
1: areturn
2: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 2
start local 2 3: new java.security.spec.InvalidKeySpecException
dup
aload 2
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/XDHKeyFactory;
0 4 1 keySpec Ljava/security/spec/KeySpec;
3 4 2 ex Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 1 2 Class java.security.InvalidKeyException
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PublicKey generatePublicImpl(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.spec.X509EncodedKeySpec
ifeq 8
1: aload 1
checkcast java.security.spec.X509EncodedKeySpec
astore 2
start local 2 2: new sun.security.ec.XDHPublicKeyImpl
dup
aload 2
invokevirtual java.security.spec.X509EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.XDHPublicKeyImpl.<init>:([B)V
3: astore 3
start local 3 4: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
5: aload 3
invokevirtual sun.security.ec.XDHPublicKeyImpl.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
6: invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
7: aload 3
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.XECPublicKeySpec
ifeq 14
9: aload 1
checkcast java.security.spec.XECPublicKeySpec
astore 2
start local 2 10: invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
aload 2
invokevirtual java.security.spec.XECPublicKeySpec.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
11: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
astore 3
start local 3 12: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
aload 3
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/XECParameters;)V
13: new sun.security.ec.XDHPublicKeyImpl
dup
aload 3
aload 2
invokevirtual java.security.spec.XECPublicKeySpec.getU:()Ljava/math/BigInteger;
invokespecial sun.security.ec.XDHPublicKeyImpl.<init>:(Lsun/security/ec/XECParameters;Ljava/math/BigInteger;)V
areturn
end local 3 end local 2 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
15: ldc "Only X509EncodedKeySpec and XECPublicKeySpec are supported"
16: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/ec/XDHKeyFactory;
0 17 1 keySpec Ljava/security/spec/KeySpec;
2 8 2 x509Spec Ljava/security/spec/X509EncodedKeySpec;
4 8 3 result Lsun/security/ec/XDHPublicKeyImpl;
10 14 2 publicKeySpec Ljava/security/spec/XECPublicKeySpec;
12 14 3 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException, java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PrivateKey generatePrivateImpl(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.spec.PKCS8EncodedKeySpec
ifeq 8
1: aload 1
checkcast java.security.spec.PKCS8EncodedKeySpec
astore 2
start local 2 2: new sun.security.ec.XDHPrivateKeyImpl
dup
aload 2
invokevirtual java.security.spec.PKCS8EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.XDHPrivateKeyImpl.<init>:([B)V
3: astore 3
start local 3 4: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
5: aload 3
invokevirtual sun.security.ec.XDHPrivateKeyImpl.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
6: invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
7: aload 3
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.XECPrivateKeySpec
ifeq 14
9: aload 1
checkcast java.security.spec.XECPrivateKeySpec
astore 2
start local 2 10: invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
aload 2
invokevirtual java.security.spec.XECPrivateKeySpec.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
11: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
astore 3
start local 3 12: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
aload 3
invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/XECParameters;)V
13: new sun.security.ec.XDHPrivateKeyImpl
dup
aload 3
aload 2
invokevirtual java.security.spec.XECPrivateKeySpec.getScalar:()[B
invokespecial sun.security.ec.XDHPrivateKeyImpl.<init>:(Lsun/security/ec/XECParameters;[B)V
areturn
end local 3 end local 2 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
15: ldc "Only PKCS8EncodedKeySpec and XECPrivateKeySpec supported"
16: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/ec/XDHKeyFactory;
0 17 1 keySpec Ljava/security/spec/KeySpec;
2 8 2 pkcsSpec Ljava/security/spec/PKCS8EncodedKeySpec;
4 8 3 result Lsun/security/ec/XDHPrivateKeyImpl;
10 14 2 privateKeySpec Ljava/security/spec/XECPrivateKeySpec;
12 14 3 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException, java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
protected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key, java.lang.Class<T>);
descriptor: (Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof java.security.interfaces.XECPublicKey
ifeq 16
1: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
2: aload 1
checkcast java.security.interfaces.XECPublicKey
invokeinterface java.security.interfaces.XECPublicKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
3: invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
4: aload 2
ldc Ljava/security/spec/X509EncodedKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 8
5: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "X.509"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: new java.security.spec.InvalidKeySpecException
dup
ldc "Format is not X.509"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 2
new java.security.spec.X509EncodedKeySpec
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
8: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/security/spec/XECPublicKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
9: aload 1
checkcast java.security.interfaces.XECPublicKey
astore 3
start local 3 10: aload 2
11: new java.security.spec.XECPublicKeySpec
dup
aload 3
invokeinterface java.security.interfaces.XECPublicKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
aload 3
invokeinterface java.security.interfaces.XECPublicKey.getU:()Ljava/math/BigInteger;
invokespecial java.security.spec.XECPublicKeySpec.<init>:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/math/BigInteger;)V
12: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 3 13: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
14: ldc "KeySpec must be X509EncodedKeySpec or XECPublicKeySpec"
15: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.XECPrivateKey
ifeq 35
17: aload 0
invokedynamic apply()Ljava/util/function/Function;
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/Object;)Ljava/lang/Object;
java/security/spec/InvalidKeySpecException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/spec/InvalidKeySpecException;
18: aload 1
checkcast java.security.interfaces.XECPrivateKey
invokeinterface java.security.interfaces.XECPrivateKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
19: invokevirtual sun.security.ec.XDHKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)V
20: aload 2
ldc Ljava/security/spec/PKCS8EncodedKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 24
21: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "PKCS#8"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
22: new java.security.spec.InvalidKeySpecException
dup
ldc "Format is not PKCS#8"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
aload 2
new java.security.spec.PKCS8EncodedKeySpec
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
24: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/security/spec/XECPrivateKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 32
25: aload 1
checkcast java.security.interfaces.XECPrivateKey
astore 3
start local 3 26: aload 3
invokeinterface java.security.interfaces.XECPrivateKey.getScalar:()Ljava/util/Optional;
27: invokedynamic get()Ljava/util/function/Supplier;
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/Object;
sun/security/ec/XDHKeyFactory.lambda$14()Ljava/security/spec/InvalidKeySpecException; (6)
()Ljava/security/spec/InvalidKeySpecException;
28: invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast byte[]
astore 4
start local 4 29: aload 2
30: new java.security.spec.XECPrivateKeySpec
dup
aload 3
invokeinterface java.security.interfaces.XECPrivateKey.getParams:()Ljava/security/spec/AlgorithmParameterSpec;
aload 4
invokespecial java.security.spec.XECPrivateKeySpec.<init>:(Ljava/security/spec/AlgorithmParameterSpec;[B)V
31: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 4 end local 3 32: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
33: ldc "KeySpec must be PKCS8EncodedKeySpec or XECPrivateKeySpec"
34: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Unsupported key type"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lsun/security/ec/XDHKeyFactory;
0 36 1 key Ljava/security/Key;
0 36 2 keySpec Ljava/lang/Class<TT;>;
10 13 3 xecKey Ljava/security/interfaces/XECPublicKey;
26 32 3 xecKey Ljava/security/interfaces/XECPrivateKey;
29 32 4 scalar [B
Exceptions:
throws java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Ljava/security/Key;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
key
keySpec
private static java.security.InvalidKeyException lambda$3();
descriptor: ()Ljava/security/InvalidKeyException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.security.InvalidKeyException
dup
ldc "No private key data"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.security.spec.InvalidKeySpecException lambda$14();
descriptor: ()Ljava/security/spec/InvalidKeySpecException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.security.spec.InvalidKeySpecException
dup
ldc "No private key value"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "XDHKeyFactory.java"
NestMembers:
sun.security.ec.XDHKeyFactory$X25519 sun.security.ec.XDHKeyFactory$X448
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
X25519 = sun.security.ec.XDHKeyFactory$X25519 of sun.security.ec.XDHKeyFactory
X448 = sun.security.ec.XDHKeyFactory$X448 of sun.security.ec.XDHKeyFactory