public class org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH extends org.bouncycastle.jce.provider.JDKKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH
super_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator
{
private static java.util.Hashtable params;
descriptor: Ljava/util/Hashtable;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
org.bouncycastle.crypto.params.DHKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
flags: (0x0000)
org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator engine;
descriptor: Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
flags: (0x0000)
int strength;
descriptor: I
flags: (0x0000)
int certainty;
descriptor: I
flags: (0x0000)
java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0000)
boolean initialised;
descriptor: Z
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.params:Ljava/util/Hashtable;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "DH"
invokespecial org.bouncycastle.jce.provider.JDKKeyPairGenerator.<init>:(Ljava/lang/String;)V
1: aload 0
new org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.engine:Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
2: aload 0
sipush 1024
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.strength:I
3: aload 0
bipush 20
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.certainty:I
4: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.random:Ljava/security/SecureRandom;
5: aload 0
iconst_0
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.initialised:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DH;
public void initialize(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.strength:I
1: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.random:Ljava/security/SecureRandom;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DH;
0 3 1 strength I
0 3 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
strength
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=10, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof javax.crypto.spec.DHParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "parameter object not a DHParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.spec.DHParameterSpec
astore 3
start local 3 3: aload 0
new org.bouncycastle.crypto.params.DHKeyGenerationParameters
dup
aload 2
new org.bouncycastle.crypto.params.DHParameters
dup
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
aconst_null
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getL:()I
invokespecial org.bouncycastle.crypto.params.DHParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;I)V
invokespecial org.bouncycastle.crypto.params.DHKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/DHParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
4: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.engine:Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
5: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.initialised:Z
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DH;
0 7 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 7 2 random Ljava/security/SecureRandom;
3 7 3 dhParams Ljavax/crypto/spec/DHParameterSpec;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
public java.security.KeyPair generateKeyPair();
descriptor: ()Ljava/security/KeyPair;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.initialised:Z
ifne 11
1: new java.lang.Integer
dup
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.strength:I
invokespecial java.lang.Integer.<init>:(I)V
astore 1
start local 1 2: getstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.params:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.containsKey:(Ljava/lang/Object;)Z
ifeq 5
3: aload 0
getstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.params:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bouncycastle.crypto.params.DHKeyGenerationParameters
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
4: goto 9
5: StackMap locals: java.lang.Integer
StackMap stack:
new org.bouncycastle.crypto.generators.DHParametersGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DHParametersGenerator.<init>:()V
astore 2
start local 2 6: aload 2
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.strength:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.certainty:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.random:Ljava/security/SecureRandom;
invokevirtual org.bouncycastle.crypto.generators.DHParametersGenerator.init:(IILjava/security/SecureRandom;)V
7: aload 0
new org.bouncycastle.crypto.params.DHKeyGenerationParameters
dup
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.random:Ljava/security/SecureRandom;
aload 2
invokevirtual org.bouncycastle.crypto.generators.DHParametersGenerator.generateParameters:()Lorg/bouncycastle/crypto/params/DHParameters;
invokespecial org.bouncycastle.crypto.params.DHKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/DHParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
8: getstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.params:Ljava/util/Hashtable;
aload 1
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.engine:Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
10: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.initialised:Z
end local 1 11: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.engine:Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
invokevirtual org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.generateKeyPair:()Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
astore 1
start local 1 12: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPublic:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.DHPublicKeyParameters
astore 2
start local 2 13: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPrivate:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.DHPrivateKeyParameters
astore 3
start local 3 14: new java.security.KeyPair
dup
new org.bouncycastle.jce.provider.JCEDHPublicKey
dup
aload 2
invokespecial org.bouncycastle.jce.provider.JCEDHPublicKey.<init>:(Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;)V
15: new org.bouncycastle.jce.provider.JCEDHPrivateKey
dup
aload 3
invokespecial org.bouncycastle.jce.provider.JCEDHPrivateKey.<init>:(Lorg/bouncycastle/crypto/params/DHPrivateKeyParameters;)V
16: invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DH;
2 11 1 paramStrength Ljava/lang/Integer;
6 9 2 pGen Lorg/bouncycastle/crypto/generators/DHParametersGenerator;
12 17 1 pair Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
13 17 2 pub Lorg/bouncycastle/crypto/params/DHPublicKeyParameters;
14 17 3 priv Lorg/bouncycastle/crypto/params/DHPrivateKeyParameters;
}
SourceFile: "JDKKeyPairGenerator.java"
NestHost: org.bouncycastle.jce.provider.JDKKeyPairGenerator
InnerClasses:
public DH = org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH of org.bouncycastle.jce.provider.JDKKeyPairGenerator