public final class org.bouncycastle.util.BigIntegers
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.bouncycastle.util.BigIntegers
super_class: java.lang.Object
{
private static final int MAX_ITERATIONS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private static final java.math.BigInteger ZERO;
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_0
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.util.BigIntegers.ZERO: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/util/BigIntegers;
public static byte[] asUnsignedByteArray(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 1
start local 1 1: aload 1
iconst_0
baload
ifne 5
2: aload 1
arraylength
iconst_1
isub
newarray 8
astore 2
start local 2 3: aload 1
iconst_1
aload 2
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 2
areturn
end local 2 5: StackMap locals: byte[]
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 value Ljava/math/BigInteger;
1 6 1 bytes [B
3 5 2 tmp [B
MethodParameters:
Name Flags
value
public static java.math.BigInteger createRandomInRange(java.math.BigInteger, java.math.BigInteger, java.security.SecureRandom);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
istore 3
start local 3 1: iload 3
iflt 5
2: iload 3
ifle 4
3: new java.lang.IllegalArgumentException
dup
ldc "'min' may not be greater than 'max'"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int
StackMap stack:
aload 0
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.math.BigInteger.bitLength:()I
aload 1
invokevirtual java.math.BigInteger.bitLength:()I
iconst_2
idiv
if_icmple 7
6: getstatic org.bouncycastle.util.BigIntegers.ZERO:Ljava/math/BigInteger;
aload 1
aload 0
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 2
invokestatic org.bouncycastle.util.BigIntegers.createRandomInRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
aload 0
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
areturn
7: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 8: goto 13
9: StackMap locals: int
StackMap stack:
new java.math.BigInteger
dup
aload 1
invokevirtual java.math.BigInteger.bitLength:()I
aload 2
invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
astore 5
start local 5 10: aload 5
aload 0
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 12
aload 5
aload 1
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
ifgt 12
11: aload 5
areturn
end local 5 12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
sipush 1000
if_icmplt 9
end local 4 14: new java.math.BigInteger
dup
aload 1
aload 0
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
iconst_1
isub
aload 2
invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
aload 0
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 min Ljava/math/BigInteger;
0 15 1 max Ljava/math/BigInteger;
0 15 2 random Ljava/security/SecureRandom;
1 15 3 cmp I
8 14 4 i I
10 12 5 x Ljava/math/BigInteger;
MethodParameters:
Name Flags
min
max
random
}
SourceFile: "BigIntegers.java"