public class org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal 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$ElGamal
super_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator
{
org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
flags: (0x0000)
org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator engine;
descriptor: Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
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)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "ElGamal"
invokespecial org.bouncycastle.jce.provider.JDKKeyPairGenerator.<init>:(Ljava/lang/String;)V
1: aload 0
new org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator
dup
invokespecial org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.engine:Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
2: aload 0
sipush 1024
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.strength:I
3: aload 0
bipush 20
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.certainty:I
4: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.random:Ljava/security/SecureRandom;
5: aload 0
iconst_0
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.initialised:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$ElGamal;
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$ElGamal.strength:I
1: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.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$ElGamal;
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=9, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof org.bouncycastle.jce.spec.ElGamalParameterSpec
ifne 2
aload 1
instanceof javax.crypto.spec.DHParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "parameter object not a DHParameterSpec or an ElGamalParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.bouncycastle.jce.spec.ElGamalParameterSpec
ifeq 6
3: aload 1
checkcast org.bouncycastle.jce.spec.ElGamalParameterSpec
astore 3
start local 3 4: aload 0
new org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters
dup
aload 2
new org.bouncycastle.crypto.params.ElGamalParameters
dup
aload 3
invokevirtual org.bouncycastle.jce.spec.ElGamalParameterSpec.getP:()Ljava/math/BigInteger;
aload 3
invokevirtual org.bouncycastle.jce.spec.ElGamalParameterSpec.getG:()Ljava/math/BigInteger;
invokespecial org.bouncycastle.crypto.params.ElGamalParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
invokespecial org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/ElGamalParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
end local 3 5: goto 8
6: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.spec.DHParameterSpec
astore 3
start local 3 7: aload 0
new org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters
dup
aload 2
new org.bouncycastle.crypto.params.ElGamalParameters
dup
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getL:()I
invokespecial org.bouncycastle.crypto.params.ElGamalParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;I)V
invokespecial org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/ElGamalParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.engine:Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
9: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.initialised:Z
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$ElGamal;
0 11 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 11 2 random Ljava/security/SecureRandom;
4 5 3 elParams Lorg/bouncycastle/jce/spec/ElGamalParameterSpec;
7 8 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$ElGamal.initialised:Z
ifne 6
1: new org.bouncycastle.crypto.generators.ElGamalParametersGenerator
dup
invokespecial org.bouncycastle.crypto.generators.ElGamalParametersGenerator.<init>:()V
astore 1
start local 1 2: aload 1
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.strength:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.certainty:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.random:Ljava/security/SecureRandom;
invokevirtual org.bouncycastle.crypto.generators.ElGamalParametersGenerator.init:(IILjava/security/SecureRandom;)V
3: aload 0
new org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters
dup
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.random:Ljava/security/SecureRandom;
aload 1
invokevirtual org.bouncycastle.crypto.generators.ElGamalParametersGenerator.generateParameters:()Lorg/bouncycastle/crypto/params/ElGamalParameters;
invokespecial org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/ElGamalParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
4: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.engine:Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
5: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.initialised:Z
end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal.engine:Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
invokevirtual org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.generateKeyPair:()Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
astore 1
start local 1 7: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPublic:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.ElGamalPublicKeyParameters
astore 2
start local 2 8: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPrivate:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.ElGamalPrivateKeyParameters
astore 3
start local 3 9: new java.security.KeyPair
dup
new org.bouncycastle.jce.provider.JCEElGamalPublicKey
dup
aload 2
invokespecial org.bouncycastle.jce.provider.JCEElGamalPublicKey.<init>:(Lorg/bouncycastle/crypto/params/ElGamalPublicKeyParameters;)V
10: new org.bouncycastle.jce.provider.JCEElGamalPrivateKey
dup
aload 3
invokespecial org.bouncycastle.jce.provider.JCEElGamalPrivateKey.<init>:(Lorg/bouncycastle/crypto/params/ElGamalPrivateKeyParameters;)V
11: 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 12 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$ElGamal;
2 6 1 pGen Lorg/bouncycastle/crypto/generators/ElGamalParametersGenerator;
7 12 1 pair Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
8 12 2 pub Lorg/bouncycastle/crypto/params/ElGamalPublicKeyParameters;
9 12 3 priv Lorg/bouncycastle/crypto/params/ElGamalPrivateKeyParameters;
}
SourceFile: "JDKKeyPairGenerator.java"
NestHost: org.bouncycastle.jce.provider.JDKKeyPairGenerator
InnerClasses:
public ElGamal = org.bouncycastle.jce.provider.JDKKeyPairGenerator$ElGamal of org.bouncycastle.jce.provider.JDKKeyPairGenerator