class org.bouncycastle.crypto.generators.DHKeyGeneratorHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.crypto.generators.DHKeyGeneratorHelper
super_class: java.lang.Object
{
static final org.bouncycastle.crypto.generators.DHKeyGeneratorHelper INSTANCE;
descriptor: Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
flags: (0x0018) ACC_STATIC, ACC_FINAL
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: new org.bouncycastle.crypto.generators.DHKeyGeneratorHelper
dup
invokespecial org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.<init>:()V
putstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.INSTANCE:Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
1: lconst_1
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.ONE:Ljava/math/BigInteger;
2: ldc 2
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.TWO:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
java.math.BigInteger calculatePrivate(org.bouncycastle.crypto.params.DHParameters, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/crypto/params/DHParameters;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
flags: (0x0000)
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getP:()Ljava/math/BigInteger;
astore 3
start local 3 1: aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getL:()I
istore 4
start local 4 2: iload 4
ifeq 4
3: new java.math.BigInteger
dup
iload 4
aload 2
invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
iload 4
iconst_1
isub
invokevirtual java.math.BigInteger.setBit:(I)Ljava/math/BigInteger;
areturn
4: StackMap locals: java.math.BigInteger int
StackMap stack:
getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.TWO:Ljava/math/BigInteger;
astore 5
start local 5 5: aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getM:()I
istore 6
start local 6 6: iload 6
ifeq 8
7: getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.ONE:Ljava/math/BigInteger;
iload 6
iconst_1
isub
invokevirtual java.math.BigInteger.shiftLeft:(I)Ljava/math/BigInteger;
astore 5
8: StackMap locals: java.math.BigInteger int
StackMap stack:
aload 3
getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.TWO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 7
start local 7 9: aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getQ:()Ljava/math/BigInteger;
astore 8
start local 8 10: aload 8
ifnull 12
11: aload 8
getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.TWO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 7
12: StackMap locals: java.math.BigInteger java.math.BigInteger
StackMap stack:
aload 5
aload 7
aload 2
invokestatic org.bouncycastle.util.BigIntegers.createRandomInRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
areturn
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 13 0 this Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
0 13 1 dhParams Lorg/bouncycastle/crypto/params/DHParameters;
0 13 2 random Ljava/security/SecureRandom;
1 13 3 p Ljava/math/BigInteger;
2 13 4 limit I
5 13 5 min Ljava/math/BigInteger;
6 13 6 m I
9 13 7 max Ljava/math/BigInteger;
10 13 8 q Ljava/math/BigInteger;
MethodParameters:
Name Flags
dhParams
random
java.math.BigInteger calculatePublic(org.bouncycastle.crypto.params.DHParameters, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/crypto/params/DHParameters;Ljava/math/BigInteger;)Ljava/math/BigInteger;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getG:()Ljava/math/BigInteger;
aload 2
aload 1
invokevirtual org.bouncycastle.crypto.params.DHParameters.getP:()Ljava/math/BigInteger;
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 this Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
0 1 1 dhParams Lorg/bouncycastle/crypto/params/DHParameters;
0 1 2 x Ljava/math/BigInteger;
MethodParameters:
Name Flags
dhParams
x
}
SourceFile: "DHKeyGeneratorHelper.java"