public class sun.security.ec.XDHKeyPairGenerator extends java.security.KeyPairGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.ec.XDHKeyPairGenerator
super_class: java.security.KeyPairGeneratorSpi
{
private static final java.security.spec.NamedParameterSpec DEFAULT_PARAM_SPEC;
descriptor: Ljava/security/spec/NamedParameterSpec;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private sun.security.ec.XECOperations ops;
descriptor: Lsun/security/ec/XECOperations;
flags: (0x0002) ACC_PRIVATE
private sun.security.ec.XECParameters lockedParams;
descriptor: Lsun/security/ec/XECParameters;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.security.spec.NamedParameterSpec.X25519:Ljava/security/spec/NamedParameterSpec;
1: putstatic sun.security.ec.XDHKeyPairGenerator.DEFAULT_PARAM_SPEC:Ljava/security/spec/NamedParameterSpec;
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.KeyPairGeneratorSpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.random:Ljava/security/SecureRandom;
2: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
3: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.lockedParams:Lsun/security/ec/XECParameters;
4: aload 0
getstatic sun.security.ec.XDHKeyPairGenerator.DEFAULT_PARAM_SPEC:Ljava/security/spec/NamedParameterSpec;
invokevirtual sun.security.ec.XDHKeyPairGenerator.tryInitialize:(Ljava/security/spec/NamedParameterSpec;)V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ec/XDHKeyPairGenerator;
private void <init>(java.security.spec.NamedParameterSpec);
descriptor: (Ljava/security/spec/NamedParameterSpec;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.security.KeyPairGeneratorSpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.random:Ljava/security/SecureRandom;
2: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
3: aload 0
aconst_null
putfield sun.security.ec.XDHKeyPairGenerator.lockedParams:Lsun/security/ec/XECParameters;
4: aload 0
aload 1
invokevirtual sun.security.ec.XDHKeyPairGenerator.tryInitialize:(Ljava/security/spec/NamedParameterSpec;)V
5: aload 0
aload 0
getfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
invokevirtual sun.security.ec.XECOperations.getParameters:()Lsun/security/ec/XECParameters;
putfield sun.security.ec.XDHKeyPairGenerator.lockedParams:Lsun/security/ec/XECParameters;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ec/XDHKeyPairGenerator;
0 7 1 paramSpec Ljava/security/spec/NamedParameterSpec;
MethodParameters:
Name Flags
paramSpec
private void tryInitialize(java.security.spec.NamedParameterSpec);
descriptor: (Ljava/security/spec/NamedParameterSpec;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual sun.security.ec.XDHKeyPairGenerator.initialize:(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
1: goto 5
StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
2: pop
3: aload 1
invokevirtual java.security.spec.NamedParameterSpec.getName:()Ljava/lang/String;
astore 2
start local 2 4: new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ec/XDHKeyPairGenerator;
0 6 1 paramSpec Ljava/security/spec/NamedParameterSpec;
4 5 2 name Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
paramSpec
public void initialize(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 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/InvalidParameterException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidParameterException;
iload 1
1: invokestatic sun.security.ec.XECParameters.getBySize:(Ljava/util/function/Function;I)Lsun/security/ec/XECParameters;
astore 3
start local 3 2: aload 0
aload 3
aload 2
invokevirtual sun.security.ec.XDHKeyPairGenerator.initializeImpl:(Lsun/security/ec/XECParameters;Ljava/security/SecureRandom;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/XDHKeyPairGenerator;
0 4 1 keySize I
0 4 2 random Ljava/security/SecureRandom;
2 4 3 params Lsun/security/ec/XECParameters;
MethodParameters:
Name Flags
keySize
random
public void initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 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/InvalidAlgorithmParameterException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidAlgorithmParameterException;
aload 1
1: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Ljava/security/spec/AlgorithmParameterSpec;)Lsun/security/ec/XECParameters;
astore 3
start local 3 2: aload 0
aload 3
aload 2
invokevirtual sun.security.ec.XDHKeyPairGenerator.initializeImpl:(Lsun/security/ec/XECParameters;Ljava/security/SecureRandom;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ec/XDHKeyPairGenerator;
0 4 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 4 2 random Ljava/security/SecureRandom;
2 4 3 xecParams Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
private void initializeImpl(sun.security.ec.XECParameters, java.security.SecureRandom);
descriptor: (Lsun/security/ec/XECParameters;Ljava/security/SecureRandom;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ec.XDHKeyPairGenerator.lockedParams:Lsun/security/ec/XECParameters;
ifnull 4
aload 0
getfield sun.security.ec.XDHKeyPairGenerator.lockedParams:Lsun/security/ec/XECParameters;
aload 1
if_acmpeq 4
1: new java.security.InvalidParameterException
dup
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.XDHKeyPairGenerator.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: invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
new sun.security.ec.XECOperations
dup
aload 1
invokespecial sun.security.ec.XECOperations.<init>:(Lsun/security/ec/XECParameters;)V
putfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
5: aload 0
aload 2
ifnonnull 6
invokestatic sun.security.jca.JCAUtil.getSecureRandom:()Ljava/security/SecureRandom;
goto 7
StackMap locals:
StackMap stack: sun.security.ec.XDHKeyPairGenerator
6: aload 2
StackMap locals: sun.security.ec.XDHKeyPairGenerator sun.security.ec.XECParameters java.security.SecureRandom
StackMap stack: sun.security.ec.XDHKeyPairGenerator java.security.SecureRandom
7: putfield sun.security.ec.XDHKeyPairGenerator.random:Ljava/security/SecureRandom;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ec/XDHKeyPairGenerator;
0 9 1 params Lsun/security/ec/XECParameters;
0 9 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
params
random
public java.security.KeyPair generateKeyPair();
descriptor: ()Ljava/security/KeyPair;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
aload 0
getfield sun.security.ec.XDHKeyPairGenerator.random:Ljava/security/SecureRandom;
invokevirtual sun.security.ec.XECOperations.generatePrivate:(Ljava/security/SecureRandom;)[B
astore 1
start local 1 1: aload 0
getfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
aload 1
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
invokevirtual sun.security.ec.XECOperations.computePublic:([B)Ljava/math/BigInteger;
astore 2
start local 2 2: new java.security.KeyPair
dup
3: new sun.security.ec.XDHPublicKeyImpl
dup
aload 0
getfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
invokevirtual sun.security.ec.XECOperations.getParameters:()Lsun/security/ec/XECParameters;
aload 2
invokespecial sun.security.ec.XDHPublicKeyImpl.<init>:(Lsun/security/ec/XECParameters;Ljava/math/BigInteger;)V
4: new sun.security.ec.XDHPrivateKeyImpl
dup
aload 0
getfield sun.security.ec.XDHKeyPairGenerator.ops:Lsun/security/ec/XECOperations;
invokevirtual sun.security.ec.XECOperations.getParameters:()Lsun/security/ec/XECParameters;
aload 1
invokespecial sun.security.ec.XDHPrivateKeyImpl.<init>:(Lsun/security/ec/XECParameters;[B)V
5: invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
6: areturn
7: StackMap locals: sun.security.ec.XDHKeyPairGenerator byte[] java.math.BigInteger
StackMap stack: java.security.InvalidKeyException
astore 3
start local 3 8: new java.security.ProviderException
dup
aload 3
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ec/XDHKeyPairGenerator;
1 9 1 privateKey [B
2 9 2 publicKey Ljava/math/BigInteger;
8 9 3 ex Ljava/security/InvalidKeyException;
Exception table:
from to target type
2 6 7 Class java.security.InvalidKeyException
}
SourceFile: "XDHKeyPairGenerator.java"
NestMembers:
sun.security.ec.XDHKeyPairGenerator$X25519 sun.security.ec.XDHKeyPairGenerator$X448
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
X25519 = sun.security.ec.XDHKeyPairGenerator$X25519 of sun.security.ec.XDHKeyPairGenerator
X448 = sun.security.ec.XDHKeyPairGenerator$X448 of sun.security.ec.XDHKeyPairGenerator