public class org.bouncycastle.crypto.generators.RSAKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.RSAKeyPairGenerator
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.RSAKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
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.RSAKeyPairGenerator.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/RSAKeyPairGenerator;
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.RSAKeyGenerationParameters
putfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
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=13, locals=16, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getStrength:()I
istore 9
start local 9 1: iload 9
iconst_1
iadd
iconst_2
idiv
istore 10
start local 10 2: iload 9
iload 10
isub
istore 11
start local 11 3: iload 9
iconst_3
idiv
istore 12
start local 12 4: aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getPublicExponent:()Ljava/math/BigInteger;
astore 5
start local 5 5: StackMap locals: org.bouncycastle.crypto.generators.RSAKeyPairGenerator top top top top java.math.BigInteger top top top int int int int
StackMap stack:
new java.math.BigInteger
dup
iload 10
iconst_1
aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
invokespecial java.math.BigInteger.<init>:(IILjava/util/Random;)V
astore 1
start local 1 6: aload 1
aload 5
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 8
7: goto 5
8: StackMap locals: org.bouncycastle.crypto.generators.RSAKeyPairGenerator java.math.BigInteger top top top java.math.BigInteger top top top int int int int
StackMap stack:
aload 1
aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getCertainty:()I
invokevirtual java.math.BigInteger.isProbablePrime:(I)Z
ifne 10
9: goto 5
10: StackMap locals:
StackMap stack:
aload 5
aload 1
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.gcd:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 5
11: StackMap locals:
StackMap stack:
new java.math.BigInteger
dup
iload 11
iconst_1
aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
invokespecial java.math.BigInteger.<init>:(IILjava/util/Random;)V
astore 2
start local 2 12: aload 2
aload 1
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.abs:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
iload 12
if_icmpge 14
13: goto 11
14: StackMap locals: org.bouncycastle.crypto.generators.RSAKeyPairGenerator java.math.BigInteger java.math.BigInteger top top java.math.BigInteger top top top int int int int
StackMap stack:
aload 2
aload 5
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 16
15: goto 11
16: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getCertainty:()I
invokevirtual java.math.BigInteger.isProbablePrime:(I)Z
ifne 18
17: goto 11
18: StackMap locals:
StackMap stack:
aload 5
aload 2
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.gcd:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifeq 11
19: aload 1
aload 2
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 3
start local 3 20: aload 3
invokevirtual java.math.BigInteger.bitLength:()I
aload 0
getfield org.bouncycastle.crypto.generators.RSAKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyGenerationParameters.getStrength:()I
if_icmpne 22
21: goto 24
22: StackMap locals: org.bouncycastle.crypto.generators.RSAKeyPairGenerator java.math.BigInteger java.math.BigInteger java.math.BigInteger top java.math.BigInteger top top top int int int int
StackMap stack:
aload 1
aload 2
invokevirtual java.math.BigInteger.max:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 1
end local 3 end local 2 23: goto 11
start local 2 start local 3 24: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
ifge 28
25: aload 1
astore 8
start local 8 26: aload 2
astore 1
27: aload 8
astore 2
end local 8 28: StackMap locals:
StackMap stack:
aload 1
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 6
start local 6 29: aload 2
getstatic org.bouncycastle.crypto.generators.RSAKeyPairGenerator.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 7
start local 7 30: aload 6
aload 7
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 8
start local 8 31: aload 5
aload 8
invokevirtual java.math.BigInteger.modInverse:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 4
start local 4 32: aload 4
aload 6
invokevirtual java.math.BigInteger.remainder:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 13
start local 13 33: aload 4
aload 7
invokevirtual java.math.BigInteger.remainder:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 14
start local 14 34: aload 2
aload 1
invokevirtual java.math.BigInteger.modInverse:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 15
start local 15 35: new org.bouncycastle.crypto.AsymmetricCipherKeyPair
dup
36: new org.bouncycastle.crypto.params.RSAKeyParameters
dup
iconst_0
aload 3
aload 5
invokespecial org.bouncycastle.crypto.params.RSAKeyParameters.<init>:(ZLjava/math/BigInteger;Ljava/math/BigInteger;)V
37: new org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
dup
aload 3
aload 5
aload 4
aload 1
aload 2
aload 13
aload 14
aload 15
invokespecial org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
38: invokespecial org.bouncycastle.crypto.AsymmetricCipherKeyPair.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/crypto/CipherParameters;)V
areturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
6 39 1 p Ljava/math/BigInteger;
12 23 2 q Ljava/math/BigInteger;
24 39 2 q Ljava/math/BigInteger;
20 23 3 n Ljava/math/BigInteger;
24 39 3 n Ljava/math/BigInteger;
32 39 4 d Ljava/math/BigInteger;
5 39 5 e Ljava/math/BigInteger;
29 39 6 pSub1 Ljava/math/BigInteger;
30 39 7 qSub1 Ljava/math/BigInteger;
26 28 8 phi Ljava/math/BigInteger;
31 39 8 phi Ljava/math/BigInteger;
1 39 9 strength I
2 39 10 pbitlength I
3 39 11 qbitlength I
4 39 12 mindiffbits I
33 39 13 dP Ljava/math/BigInteger;
34 39 14 dQ Ljava/math/BigInteger;
35 39 15 qInv Ljava/math/BigInteger;
}
SourceFile: "RSAKeyPairGenerator.java"