public class sun.security.ec.ed.EdDSAKeyFactory extends java.security.KeyFactorySpi
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.ec.ed.EdDSAKeyFactory
super_class: java.security.KeyFactorySpi
{
private sun.security.ec.ed.EdDSAParameters lockedParams;
descriptor: Lsun/security/ec/ed/EdDSAParameters;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ec/ed/EdDSAKeyFactory;
protected void <init>(java.security.spec.NamedParameterSpec);
descriptor: (Ljava/security/spec/NamedParameterSpec;)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.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
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.ed.EdDSAParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/ed/EdDSAParameters;
putfield sun.security.ec.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/ed/EdDSAKeyFactory;
0 4 1 paramSpec Ljava/security/spec/NamedParameterSpec;
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.EdECKey
ifeq 17
3: aload 1
checkcast java.security.interfaces.EdECKey
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;
aload 2
invokeinterface java.security.interfaces.EdECKey.getParams:()Ljava/security/spec/NamedParameterSpec;
5: invokestatic sun.security.ec.ed.EdDSAParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/ed/EdDSAParameters;
astore 3
start local 3 6: 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.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/ed/EdDSAParameters;)V
7: aload 2
instanceof java.security.interfaces.EdECPublicKey
ifeq 10
8: aload 2
checkcast java.security.interfaces.EdECPublicKey
astore 4
start local 4 9: new sun.security.ec.ed.EdDSAPublicKeyImpl
dup
aload 3
aload 4
invokeinterface java.security.interfaces.EdECPublicKey.getPoint:()Ljava/security/spec/EdECPoint;
invokespecial sun.security.ec.ed.EdDSAPublicKeyImpl.<init>:(Lsun/security/ec/ed/EdDSAParameters;Ljava/security/spec/EdECPoint;)V
areturn
end local 4 10: StackMap locals: java.security.interfaces.EdECKey sun.security.ec.ed.EdDSAParameters
StackMap stack:
aload 2
instanceof java.security.interfaces.EdECPrivateKey
ifeq 16
11: aload 2
checkcast java.security.interfaces.EdECPrivateKey
astore 4
start local 4 12: aload 4
invokeinterface java.security.interfaces.EdECPrivateKey.getBytes:()Ljava/util/Optional;
13: 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/ed/EdDSAKeyFactory.lambda$3()Ljava/security/InvalidKeyException; (6)
()Ljava/security/InvalidKeyException;
14: invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 15: new sun.security.ec.ed.EdDSAPrivateKeyImpl
dup
aload 3
aload 5
invokespecial sun.security.ec.ed.EdDSAPrivateKeyImpl.<init>:(Lsun/security/ec/ed/EdDSAParameters;[B)V
areturn
end local 5 end local 4 16: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Unsupported EdECKey subclass"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 17: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.PublicKey
ifeq 23
18: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "X.509"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
19: new sun.security.ec.ed.EdDSAPublicKeyImpl
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial sun.security.ec.ed.EdDSAPublicKeyImpl.<init>:([B)V
20: 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.ed.EdDSAPublicKeyImpl.getParams:()Ljava/security/spec/NamedParameterSpec;
invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)V
22: aload 2
areturn
end local 2 23: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.PrivateKey
ifeq 29
24: aload 1
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
ldc "PKCS#8"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 29
25: new sun.security.ec.ed.EdDSAPrivateKeyImpl
dup
aload 1
invokeinterface java.security.Key.getEncoded:()[B
invokespecial sun.security.ec.ed.EdDSAPrivateKeyImpl.<init>:([B)V
26: astore 2
start local 2 27: 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.ed.EdDSAPrivateKeyImpl.getParams:()Ljava/security/spec/NamedParameterSpec;
invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)V
28: aload 2
areturn
end local 2 29: 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 30 0 this Lsun/security/ec/ed/EdDSAKeyFactory;
0 30 1 key Ljava/security/Key;
4 17 2 edKey Ljava/security/interfaces/EdECKey;
6 17 3 params Lsun/security/ec/ed/EdDSAParameters;
9 10 4 publicKey Ljava/security/interfaces/EdECPublicKey;
12 16 4 privateKey Ljava/security/interfaces/EdECPrivateKey;
15 16 5 privateKeyBytes [B
21 23 2 result Lsun/security/ec/ed/EdDSAPublicKeyImpl;
27 29 2 result Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
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.NamedParameterSpec) throws T;
descriptor: (Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)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.ed.EdDSAParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/ed/EdDSAParameters;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/ed/EdDSAParameters;)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/ed/EdDSAKeyFactory;
0 3 1 exception Ljava/util/function/Function<Ljava/lang/String;TT;>;
0 3 2 spec Ljava/security/spec/NamedParameterSpec;
1 3 3 params Lsun/security/ec/ed/EdDSAParameters;
Exceptions:
throws java.lang.Throwable
Signature: <T:Ljava/lang/Throwable;>(Ljava/util/function/Function<Ljava/lang/String;TT;>;Ljava/security/spec/NamedParameterSpec;)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.ed.EdDSAParameters) throws T;
descriptor: (Ljava/util/function/Function;Lsun/security/ec/ed/EdDSAParameters;)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.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
ifnull 4
aload 0
getfield sun.security.ec.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
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.ed.EdDSAKeyFactory.lockedParams:Lsun/security/ec/ed/EdDSAParameters;
invokevirtual sun.security.ec.ed.EdDSAParameters.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/ed/EdDSAKeyFactory;
0 5 1 exception Ljava/util/function/Function<Ljava/lang/String;TT;>;
0 5 2 params Lsun/security/ec/ed/EdDSAParameters;
Exceptions:
throws java.lang.Throwable
Signature: <T:Ljava/lang/Throwable;>(Ljava/util/function/Function<Ljava/lang/String;TT;>;Lsun/security/ec/ed/EdDSAParameters;)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.ed.EdDSAKeyFactory.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/ed/EdDSAKeyFactory;
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.ed.EdDSAKeyFactory.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/ed/EdDSAKeyFactory;
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.ed.EdDSAPublicKeyImpl
dup
aload 2
invokevirtual java.security.spec.X509EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.ed.EdDSAPublicKeyImpl.<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.ed.EdDSAPublicKeyImpl.getParams:()Ljava/security/spec/NamedParameterSpec;
6: invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)V
7: aload 3
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.EdECPublicKeySpec
ifeq 14
9: aload 1
checkcast java.security.spec.EdECPublicKeySpec
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.EdECPublicKeySpec.getParams:()Ljava/security/spec/NamedParameterSpec;
11: invokestatic sun.security.ec.ed.EdDSAParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/ed/EdDSAParameters;
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.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/ed/EdDSAParameters;)V
13: new sun.security.ec.ed.EdDSAPublicKeyImpl
dup
aload 3
aload 2
invokevirtual java.security.spec.EdECPublicKeySpec.getPoint:()Ljava/security/spec/EdECPoint;
invokespecial sun.security.ec.ed.EdDSAPublicKeyImpl.<init>:(Lsun/security/ec/ed/EdDSAParameters;Ljava/security/spec/EdECPoint;)V
areturn
end local 3 end local 2 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
15: ldc "Only X509EncodedKeySpec and EdECPublicKeySpec 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/ed/EdDSAKeyFactory;
0 17 1 keySpec Ljava/security/spec/KeySpec;
2 8 2 x509Spec Ljava/security/spec/X509EncodedKeySpec;
4 8 3 result Lsun/security/ec/ed/EdDSAPublicKeyImpl;
10 14 2 publicKeySpec Ljava/security/spec/EdECPublicKeySpec;
12 14 3 params Lsun/security/ec/ed/EdDSAParameters;
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.ed.EdDSAPrivateKeyImpl
dup
aload 2
invokevirtual java.security.spec.PKCS8EncodedKeySpec.getEncoded:()[B
invokespecial sun.security.ec.ed.EdDSAPrivateKeyImpl.<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.ed.EdDSAPrivateKeyImpl.getParams:()Ljava/security/spec/NamedParameterSpec;
6: invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)V
7: aload 3
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.EdECPrivateKeySpec
ifeq 14
9: aload 1
checkcast java.security.spec.EdECPrivateKeySpec
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.EdECPrivateKeySpec.getParams:()Ljava/security/spec/NamedParameterSpec;
11: invokestatic sun.security.ec.ed.EdDSAParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/ed/EdDSAParameters;
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.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Lsun/security/ec/ed/EdDSAParameters;)V
13: new sun.security.ec.ed.EdDSAPrivateKeyImpl
dup
aload 3
aload 2
invokevirtual java.security.spec.EdECPrivateKeySpec.getBytes:()[B
invokespecial sun.security.ec.ed.EdDSAPrivateKeyImpl.<init>:(Lsun/security/ec/ed/EdDSAParameters;[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 EdECPrivateKeySpec 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/ed/EdDSAKeyFactory;
0 17 1 keySpec Ljava/security/spec/KeySpec;
2 8 2 pkcsSpec Ljava/security/spec/PKCS8EncodedKeySpec;
4 8 3 result Lsun/security/ec/ed/EdDSAPrivateKeyImpl;
10 14 2 privateKeySpec Ljava/security/spec/EdECPrivateKeySpec;
12 14 3 params Lsun/security/ec/ed/EdDSAParameters;
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.EdECPublicKey
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.EdECPublicKey
invokeinterface java.security.interfaces.EdECPublicKey.getParams:()Ljava/security/spec/NamedParameterSpec;
3: invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)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/EdECPublicKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
9: aload 1
checkcast java.security.interfaces.EdECPublicKey
astore 3
start local 3 10: aload 2
11: new java.security.spec.EdECPublicKeySpec
dup
aload 3
invokeinterface java.security.interfaces.EdECPublicKey.getParams:()Ljava/security/spec/NamedParameterSpec;
aload 3
invokeinterface java.security.interfaces.EdECPublicKey.getPoint:()Ljava/security/spec/EdECPoint;
invokespecial java.security.spec.EdECPublicKeySpec.<init>:(Ljava/security/spec/NamedParameterSpec;Ljava/security/spec/EdECPoint;)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 EdECPublicKeySpec"
15: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.EdECPrivateKey
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.EdECPrivateKey
invokeinterface java.security.interfaces.EdECPrivateKey.getParams:()Ljava/security/spec/NamedParameterSpec;
19: invokevirtual sun.security.ec.ed.EdDSAKeyFactory.checkLockedParams:(Ljava/util/function/Function;Ljava/security/spec/NamedParameterSpec;)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/EdECPrivateKeySpec;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 32
25: aload 1
checkcast java.security.interfaces.EdECPrivateKey
astore 3
start local 3 26: aload 3
invokeinterface java.security.interfaces.EdECPrivateKey.getBytes:()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/ed/EdDSAKeyFactory.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.EdECPrivateKeySpec
dup
aload 3
invokeinterface java.security.interfaces.EdECPrivateKey.getParams:()Ljava/security/spec/NamedParameterSpec;
aload 4
invokespecial java.security.spec.EdECPrivateKeySpec.<init>:(Ljava/security/spec/NamedParameterSpec;[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 EdECPrivateKeySpec"
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/ed/EdDSAKeyFactory;
0 36 1 key Ljava/security/Key;
0 36 2 keySpec Ljava/lang/Class<TT;>;
10 13 3 edKey Ljava/security/interfaces/EdECPublicKey;
26 32 3 edKey Ljava/security/interfaces/EdECPrivateKey;
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: "EdDSAKeyFactory.java"
NestMembers:
sun.security.ec.ed.EdDSAKeyFactory$Ed25519 sun.security.ec.ed.EdDSAKeyFactory$Ed448
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Ed25519 = sun.security.ec.ed.EdDSAKeyFactory$Ed25519 of sun.security.ec.ed.EdDSAKeyFactory
public Ed448 = sun.security.ec.ed.EdDSAKeyFactory$Ed448 of sun.security.ec.ed.EdDSAKeyFactory