class org.bouncycastle.crypto.generators.DHParametersHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.crypto.generators.DHParametersHelper
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 static final java.math.BigInteger TWO;
descriptor: Ljava/math/BigInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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.DHParametersHelper.ONE:Ljava/math/BigInteger;
1: ldc 2
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.generators.DHParametersHelper.TWO:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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/DHParametersHelper;
static java.math.BigInteger[] generateSafePrimes(int, int, java.security.SecureRandom);
descriptor: (IILjava/security/SecureRandom;)[Ljava/math/BigInteger;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 0
iconst_1
isub
istore 5
start local 5 1: StackMap locals: int int java.security.SecureRandom top top int
StackMap stack:
new java.math.BigInteger
dup
iload 5
iconst_2
aload 2
invokespecial java.math.BigInteger.<init>:(IILjava/util/Random;)V
astore 4
start local 4 2: aload 4
iconst_1
invokevirtual java.math.BigInteger.shiftLeft:(I)Ljava/math/BigInteger;
getstatic org.bouncycastle.crypto.generators.DHParametersHelper.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 3
start local 3 3: aload 3
iload 1
invokevirtual java.math.BigInteger.isProbablePrime:(I)Z
ifeq 1
iload 1
iconst_2
if_icmple 4
aload 4
iload 1
invokevirtual java.math.BigInteger.isProbablePrime:(I)Z
ifeq 1
4: StackMap locals: int int java.security.SecureRandom java.math.BigInteger java.math.BigInteger int
StackMap stack:
iconst_2
anewarray java.math.BigInteger
dup
iconst_0
5: aload 3
aastore
dup
iconst_1
aload 4
aastore
areturn
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 6 0 size I
0 6 1 certainty I
0 6 2 random Ljava/security/SecureRandom;
3 6 3 p Ljava/math/BigInteger;
2 6 4 q Ljava/math/BigInteger;
1 6 5 qLength I
MethodParameters:
Name Flags
size
certainty
random
static java.math.BigInteger selectGenerator(java.math.BigInteger, java.math.BigInteger, java.security.SecureRandom);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic org.bouncycastle.crypto.generators.DHParametersHelper.TWO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 3
start local 3 1: StackMap locals: java.math.BigInteger
StackMap stack:
getstatic org.bouncycastle.crypto.generators.DHParametersHelper.TWO:Ljava/math/BigInteger;
aload 3
aload 2
invokestatic org.bouncycastle.util.BigIntegers.createRandomInRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
astore 5
start local 5 2: aload 5
getstatic org.bouncycastle.crypto.generators.DHParametersHelper.TWO:Ljava/math/BigInteger;
aload 0
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 4
end local 5 start local 4 3: aload 4
getstatic org.bouncycastle.crypto.generators.DHParametersHelper.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 1
4: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 p Ljava/math/BigInteger;
0 5 1 q Ljava/math/BigInteger;
0 5 2 random Ljava/security/SecureRandom;
1 5 3 pMinusTwo Ljava/math/BigInteger;
3 5 4 g Ljava/math/BigInteger;
2 3 5 h Ljava/math/BigInteger;
MethodParameters:
Name Flags
p
q
random
}
SourceFile: "DHParametersHelper.java"