public class org.bouncycastle.crypto.generators.DSAKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.DSAKeyPairGenerator
super_class: java.lang.Object
{
private static final java.math.BigInteger ONE;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.bouncycastle.crypto.params.DSAKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: lconst_1
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
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 start local 1 0: aload 0
aload 1
checkcast org.bouncycastle.crypto.params.DSAKeyGenerationParameters
putfield org.bouncycastle.crypto.generators.DSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
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=4, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.generators.DSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.DSAKeyGenerationParameters.getParameters:()Lorg/bouncycastle/crypto/params/DSAParameters;
astore 1
start local 1 1: aload 1
invokevirtual org.bouncycastle.crypto.params.DSAParameters.getQ:()Ljava/math/BigInteger;
aload 0
getfield org.bouncycastle.crypto.generators.DSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.DSAKeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
invokestatic org.bouncycastle.crypto.generators.DSAKeyPairGenerator.generatePrivateKey:(Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
astore 2
start local 2 2: aload 1
invokevirtual org.bouncycastle.crypto.params.DSAParameters.getP:()Ljava/math/BigInteger;
aload 1
invokevirtual org.bouncycastle.crypto.params.DSAParameters.getG:()Ljava/math/BigInteger;
aload 2
invokestatic org.bouncycastle.crypto.generators.DSAKeyPairGenerator.calculatePublicKey:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 3
start local 3 3: new org.bouncycastle.crypto.AsymmetricCipherKeyPair
dup
4: new org.bouncycastle.crypto.params.DSAPublicKeyParameters
dup
aload 3
aload 1
invokespecial org.bouncycastle.crypto.params.DSAPublicKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DSAParameters;)V
5: new org.bouncycastle.crypto.params.DSAPrivateKeyParameters
dup
aload 2
aload 1
invokespecial org.bouncycastle.crypto.params.DSAPrivateKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DSAParameters;)V
6: invokespecial org.bouncycastle.crypto.AsymmetricCipherKeyPair.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/crypto/CipherParameters;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
1 7 1 dsaParams Lorg/bouncycastle/crypto/params/DSAParameters;
2 7 2 x Ljava/math/BigInteger;
3 7 3 y Ljava/math/BigInteger;
private static java.math.BigInteger generatePrivateKey(java.math.BigInteger, java.security.SecureRandom);
descriptor: (Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
aload 0
getstatic org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 1
invokestatic org.bouncycastle.util.BigIntegers.createRandomInRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 q Ljava/math/BigInteger;
0 1 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
q
random
private static java.math.BigInteger calculatePublicKey(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
aload 0
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/math/BigInteger;
0 1 1 g Ljava/math/BigInteger;
0 1 2 x Ljava/math/BigInteger;
MethodParameters:
Name Flags
p
g
x
}
SourceFile: "DSAKeyPairGenerator.java"