public class org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA 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$DSA
super_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator
{
org.bouncycastle.crypto.params.DSAKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
flags: (0x0000)
org.bouncycastle.crypto.generators.DSAKeyPairGenerator engine;
descriptor: Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
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 "DSA"
invokespecial org.bouncycastle.jce.provider.JDKKeyPairGenerator.<init>:(Ljava/lang/String;)V
1: aload 0
new org.bouncycastle.crypto.generators.DSAKeyPairGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DSAKeyPairGenerator.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.engine:Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
2: aload 0
sipush 1024
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.strength:I
3: aload 0
bipush 20
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.certainty:I
4: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.random:Ljava/security/SecureRandom;
5: aload 0
iconst_0
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.initialised:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DSA;
public void initialize(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
sipush 512
if_icmplt 1
iload 1
sipush 1024
if_icmpgt 1
iload 1
bipush 64
irem
ifeq 2
1: StackMap locals:
StackMap stack:
new java.security.InvalidParameterException
dup
ldc "strength must be from 512 - 1024 and a multiple of 64"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.strength:I
3: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.random:Ljava/security/SecureRandom;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$DSA;
0 5 1 strength I
0 5 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 java.security.spec.DSAParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "parameter object not a DSAParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.DSAParameterSpec
astore 3
start local 3 3: aload 0
new org.bouncycastle.crypto.params.DSAKeyGenerationParameters
dup
aload 2
new org.bouncycastle.crypto.params.DSAParameters
dup
aload 3
invokevirtual java.security.spec.DSAParameterSpec.getP:()Ljava/math/BigInteger;
aload 3
invokevirtual java.security.spec.DSAParameterSpec.getQ:()Ljava/math/BigInteger;
aload 3
invokevirtual java.security.spec.DSAParameterSpec.getG:()Ljava/math/BigInteger;
invokespecial org.bouncycastle.crypto.params.DSAParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
invokespecial org.bouncycastle.crypto.params.DSAKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/DSAParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
4: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.engine:Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.DSAKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
5: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.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$DSA;
0 7 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 7 2 random Ljava/security/SecureRandom;
3 7 3 dsaParams Ljava/security/spec/DSAParameterSpec;
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$DSA.initialised:Z
ifne 6
1: new org.bouncycastle.crypto.generators.DSAParametersGenerator
dup
invokespecial org.bouncycastle.crypto.generators.DSAParametersGenerator.<init>:()V
astore 1
start local 1 2: aload 1
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.strength:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.certainty:I
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.random:Ljava/security/SecureRandom;
invokevirtual org.bouncycastle.crypto.generators.DSAParametersGenerator.init:(IILjava/security/SecureRandom;)V
3: aload 0
new org.bouncycastle.crypto.params.DSAKeyGenerationParameters
dup
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.random:Ljava/security/SecureRandom;
aload 1
invokevirtual org.bouncycastle.crypto.generators.DSAParametersGenerator.generateParameters:()Lorg/bouncycastle/crypto/params/DSAParameters;
invokespecial org.bouncycastle.crypto.params.DSAKeyGenerationParameters.<init>:(Ljava/security/SecureRandom;Lorg/bouncycastle/crypto/params/DSAParameters;)V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
4: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.engine:Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.param:Lorg/bouncycastle/crypto/params/DSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.DSAKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
5: aload 0
iconst_1
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.initialised:Z
end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA.engine:Lorg/bouncycastle/crypto/generators/DSAKeyPairGenerator;
invokevirtual org.bouncycastle.crypto.generators.DSAKeyPairGenerator.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.DSAPublicKeyParameters
astore 2
start local 2 8: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPrivate:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.DSAPrivateKeyParameters
astore 3
start local 3 9: new java.security.KeyPair
dup
new org.bouncycastle.jce.provider.JDKDSAPublicKey
dup
aload 2
invokespecial org.bouncycastle.jce.provider.JDKDSAPublicKey.<init>:(Lorg/bouncycastle/crypto/params/DSAPublicKeyParameters;)V
10: new org.bouncycastle.jce.provider.JDKDSAPrivateKey
dup
aload 3
invokespecial org.bouncycastle.jce.provider.JDKDSAPrivateKey.<init>:(Lorg/bouncycastle/crypto/params/DSAPrivateKeyParameters;)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$DSA;
2 6 1 pGen Lorg/bouncycastle/crypto/generators/DSAParametersGenerator;
7 12 1 pair Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
8 12 2 pub Lorg/bouncycastle/crypto/params/DSAPublicKeyParameters;
9 12 3 priv Lorg/bouncycastle/crypto/params/DSAPrivateKeyParameters;
}
SourceFile: "JDKKeyPairGenerator.java"
NestHost: org.bouncycastle.jce.provider.JDKKeyPairGenerator
InnerClasses:
public DSA = org.bouncycastle.jce.provider.JDKKeyPairGenerator$DSA of org.bouncycastle.jce.provider.JDKKeyPairGenerator