public class org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator
super_class: java.lang.Object
{
private org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
0: .line 20
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
public void init(org.bouncycastle.crypto.KeyGenerationParameters);
descriptor: (Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
start local 1 // org.bouncycastle.crypto.KeyGenerationParameters param
0: .line 28
aload 0 /* this */
aload 1 /* param */
checkcast org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters
putfield org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
1: .line 29
return
end local 1 // org.bouncycastle.crypto.KeyGenerationParameters param
end local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
0 2 1 param Lorg/bouncycastle/crypto/KeyGenerationParameters;
MethodParameters:
Name Flags
param
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair();
descriptor: ()Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=1
start local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
0: .line 33
getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.INSTANCE:Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
astore 1 /* helper */
start local 1 // org.bouncycastle.crypto.generators.DHKeyGeneratorHelper helper
1: .line 34
aload 0 /* this */
getfield org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters.getParameters:()Lorg/bouncycastle/crypto/params/ElGamalParameters;
astore 2 /* egp */
start local 2 // org.bouncycastle.crypto.params.ElGamalParameters egp
2: .line 35
new org.bouncycastle.crypto.params.DHParameters
dup
aload 2 /* egp */
invokevirtual org.bouncycastle.crypto.params.ElGamalParameters.getP:()Ljava/math/BigInteger;
aload 2 /* egp */
invokevirtual org.bouncycastle.crypto.params.ElGamalParameters.getG:()Ljava/math/BigInteger;
aconst_null
aload 2 /* egp */
invokevirtual org.bouncycastle.crypto.params.ElGamalParameters.getL:()I
invokespecial org.bouncycastle.crypto.params.DHParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;I)V
astore 3 /* dhp */
start local 3 // org.bouncycastle.crypto.params.DHParameters dhp
3: .line 37
aload 1 /* helper */
aload 3 /* dhp */
aload 0 /* this */
getfield org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/ElGamalKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.ElGamalKeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
invokevirtual org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.calculatePrivate:(Lorg/bouncycastle/crypto/params/DHParameters;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
astore 4 /* x */
start local 4 // java.math.BigInteger x
4: .line 38
aload 1 /* helper */
aload 3 /* dhp */
aload 4 /* x */
invokevirtual org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.calculatePublic:(Lorg/bouncycastle/crypto/params/DHParameters;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 5 /* y */
start local 5 // java.math.BigInteger y
5: .line 40
new org.bouncycastle.crypto.AsymmetricCipherKeyPair
dup
6: .line 41
new org.bouncycastle.crypto.params.ElGamalPublicKeyParameters
dup
aload 5 /* y */
aload 2 /* egp */
invokespecial org.bouncycastle.crypto.params.ElGamalPublicKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/ElGamalParameters;)V
7: .line 42
new org.bouncycastle.crypto.params.ElGamalPrivateKeyParameters
dup
aload 4 /* x */
aload 2 /* egp */
invokespecial org.bouncycastle.crypto.params.ElGamalPrivateKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/ElGamalParameters;)V
8: .line 40
invokespecial org.bouncycastle.crypto.AsymmetricCipherKeyPair.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/crypto/CipherParameters;)V
areturn
end local 5 // java.math.BigInteger y
end local 4 // java.math.BigInteger x
end local 3 // org.bouncycastle.crypto.params.DHParameters dhp
end local 2 // org.bouncycastle.crypto.params.ElGamalParameters egp
end local 1 // org.bouncycastle.crypto.generators.DHKeyGeneratorHelper helper
end local 0 // org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/crypto/generators/ElGamalKeyPairGenerator;
1 9 1 helper Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
2 9 2 egp Lorg/bouncycastle/crypto/params/ElGamalParameters;
3 9 3 dhp Lorg/bouncycastle/crypto/params/DHParameters;
4 9 4 x Ljava/math/BigInteger;
5 9 5 y Ljava/math/BigInteger;
}
SourceFile: "ElGamalKeyPairGenerator.java"