class org.bouncycastle.math.ec.WNafUtil$2 implements org.bouncycastle.math.ec.PreCompCallback
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.math.ec.WNafUtil$2
super_class: java.lang.Object
{
private final int val$width;
descriptor: I
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final boolean val$includeNegated;
descriptor: Z
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bouncycastle.math.ec.ECPoint val$p;
descriptor: Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.bouncycastle.math.ec.ECCurve val$c;
descriptor: Lorg/bouncycastle/math/ec/ECCurve;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(int, boolean, org.bouncycastle.math.ec.ECPoint, org.bouncycastle.math.ec.ECCurve);
descriptor: (IZLorg/bouncycastle/math/ec/ECPoint;Lorg/bouncycastle/math/ec/ECCurve;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 0: aload 0
iload 1
putfield org.bouncycastle.math.ec.WNafUtil$2.val$width:I
aload 0
iload 2
putfield org.bouncycastle.math.ec.WNafUtil$2.val$includeNegated:Z
aload 0
aload 3
putfield org.bouncycastle.math.ec.WNafUtil$2.val$p:Lorg/bouncycastle/math/ec/ECPoint;
aload 0
aload 4
putfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/math/ec/WNafUtil$2;
MethodParameters:
Name Flags
val$width final
val$includeNegated final
val$p final
val$c final
public org.bouncycastle.math.ec.PreCompInfo precompute(org.bouncycastle.math.ec.PreCompInfo);
descriptor: (Lorg/bouncycastle/math/ec/PreCompInfo;)Lorg/bouncycastle/math/ec/PreCompInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.math.ec.WNafPreCompInfo
ifeq 1
aload 1
checkcast org.bouncycastle.math.ec.WNafPreCompInfo
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: org.bouncycastle.math.ec.WNafPreCompInfo
2: astore 2
start local 2 3: iconst_1
iconst_0
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$width:I
iconst_2
isub
invokestatic java.lang.Math.max:(II)I
ishl
istore 3
start local 3 4: aload 0
aload 2
iload 3
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$includeNegated:Z
invokevirtual org.bouncycastle.math.ec.WNafUtil$2.checkExisting:(Lorg/bouncycastle/math/ec/WNafPreCompInfo;IZ)Z
ifeq 6
5: aload 2
areturn
6: StackMap locals: org.bouncycastle.math.ec.WNafPreCompInfo int
StackMap stack:
aconst_null
astore 4
start local 4 7: aconst_null
astore 5
start local 5 8: aconst_null
astore 6
start local 6 9: aload 2
ifnull 13
10: aload 2
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.getPreComp:()[Lorg/bouncycastle/math/ec/ECPoint;
astore 4
11: aload 2
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.getPreCompNeg:()[Lorg/bouncycastle/math/ec/ECPoint;
astore 5
12: aload 2
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.getTwice:()Lorg/bouncycastle/math/ec/ECPoint;
astore 6
13: StackMap locals: org.bouncycastle.math.ec.ECPoint[] org.bouncycastle.math.ec.ECPoint[] org.bouncycastle.math.ec.ECPoint
StackMap stack:
iconst_0
istore 7
start local 7 14: aload 4
ifnonnull 17
15: getstatic org.bouncycastle.math.ec.WNafUtil.EMPTY_POINTS:[Lorg/bouncycastle/math/ec/ECPoint;
astore 4
16: goto 18
17: StackMap locals: int
StackMap stack:
aload 4
arraylength
istore 7
18: StackMap locals:
StackMap stack:
iload 7
iload 3
if_icmpge 51
19: aload 4
iload 3
invokestatic org.bouncycastle.math.ec.WNafUtil.resizeTable:([Lorg/bouncycastle/math/ec/ECPoint;I)[Lorg/bouncycastle/math/ec/ECPoint;
astore 4
20: iload 3
iconst_1
if_icmpne 23
21: aload 4
iconst_0
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$p:Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.normalize:()Lorg/bouncycastle/math/ec/ECPoint;
aastore
22: goto 51
23: StackMap locals:
StackMap stack:
iload 7
istore 8
start local 8 24: iload 8
ifne 27
25: aload 4
iconst_0
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$p:Lorg/bouncycastle/math/ec/ECPoint;
aastore
26: iconst_1
istore 8
27: StackMap locals: int
StackMap stack:
aconst_null
astore 9
start local 9 28: iload 3
iconst_2
if_icmpne 31
29: aload 4
iconst_1
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$p:Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.threeTimes:()Lorg/bouncycastle/math/ec/ECPoint;
aastore
30: goto 50
31: StackMap locals: org.bouncycastle.math.ec.ECFieldElement
StackMap stack:
aload 6
astore 10
start local 10 32: aload 4
iload 8
iconst_1
isub
aaload
astore 11
start local 11 33: aload 10
ifnonnull 49
34: aload 4
iconst_0
aaload
invokevirtual org.bouncycastle.math.ec.ECPoint.twice:()Lorg/bouncycastle/math/ec/ECPoint;
astore 10
35: aload 10
astore 6
36: aload 6
invokevirtual org.bouncycastle.math.ec.ECPoint.isInfinity:()Z
ifne 49
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
invokestatic org.bouncycastle.math.ec.ECAlgorithms.isFpCurve:(Lorg/bouncycastle/math/ec/ECCurve;)Z
ifeq 49
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getFieldSize:()I
bipush 64
if_icmplt 49
37: aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getCoordinateSystem:()I
tableswitch { // 2 - 4
2: 38
3: 38
4: 38
default: 47
}
38: StackMap locals: org.bouncycastle.math.ec.ECPoint org.bouncycastle.math.ec.ECPoint
StackMap stack:
aload 6
iconst_0
invokevirtual org.bouncycastle.math.ec.ECPoint.getZCoord:(I)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 9
39: aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
aload 6
invokevirtual org.bouncycastle.math.ec.ECPoint.getXCoord:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 6
invokevirtual org.bouncycastle.math.ec.ECPoint.getYCoord:()Lorg/bouncycastle/math/ec/ECFieldElement;
40: invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
41: invokevirtual org.bouncycastle.math.ec.ECCurve.createPoint:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
astore 10
42: aload 9
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 12
start local 12 43: aload 12
aload 9
invokevirtual org.bouncycastle.math.ec.ECFieldElement.multiply:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 13
start local 13 44: aload 11
aload 12
invokevirtual org.bouncycastle.math.ec.ECPoint.scaleX:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECPoint;
aload 13
invokevirtual org.bouncycastle.math.ec.ECPoint.scaleY:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECPoint;
astore 11
45: iload 7
ifne 49
46: aload 4
iconst_0
aload 11
aastore
end local 13 end local 12 47: StackMap locals:
StackMap stack:
goto 49
48: StackMap locals:
StackMap stack:
aload 4
iload 8
iinc 8 1
aload 11
aload 10
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
dup
astore 11
aastore
49: StackMap locals:
StackMap stack:
iload 8
iload 3
if_icmplt 48
end local 11 end local 10 50: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$c:Lorg/bouncycastle/math/ec/ECCurve;
aload 4
iload 7
iload 3
iload 7
isub
aload 9
invokevirtual org.bouncycastle.math.ec.ECCurve.normalizeAll:([Lorg/bouncycastle/math/ec/ECPoint;IILorg/bouncycastle/math/ec/ECFieldElement;)V
end local 9 end local 8 51: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.math.ec.WNafUtil$2.val$includeNegated:Z
ifeq 63
52: aload 5
ifnonnull 56
53: iconst_0
istore 8
start local 8 54: iload 3
anewarray org.bouncycastle.math.ec.ECPoint
astore 5
55: goto 62
end local 8 56: StackMap locals:
StackMap stack:
aload 5
arraylength
istore 8
start local 8 57: iload 8
iload 3
if_icmpge 62
58: aload 5
iload 3
invokestatic org.bouncycastle.math.ec.WNafUtil.resizeTable:([Lorg/bouncycastle/math/ec/ECPoint;I)[Lorg/bouncycastle/math/ec/ECPoint;
astore 5
59: goto 62
60: StackMap locals: int
StackMap stack:
aload 5
iload 8
aload 4
iload 8
aaload
invokevirtual org.bouncycastle.math.ec.ECPoint.negate:()Lorg/bouncycastle/math/ec/ECPoint;
aastore
61: iinc 8 1
62: StackMap locals:
StackMap stack:
iload 8
iload 3
if_icmplt 60
end local 8 63: StackMap locals:
StackMap stack:
new org.bouncycastle.math.ec.WNafPreCompInfo
dup
invokespecial org.bouncycastle.math.ec.WNafPreCompInfo.<init>:()V
astore 8
start local 8 64: aload 8
aload 4
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.setPreComp:([Lorg/bouncycastle/math/ec/ECPoint;)V
65: aload 8
aload 5
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.setPreCompNeg:([Lorg/bouncycastle/math/ec/ECPoint;)V
66: aload 8
aload 6
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.setTwice:(Lorg/bouncycastle/math/ec/ECPoint;)V
67: aload 8
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 68 0 this Lorg/bouncycastle/math/ec/WNafUtil$2;
0 68 1 existing Lorg/bouncycastle/math/ec/PreCompInfo;
3 68 2 existingWNaf Lorg/bouncycastle/math/ec/WNafPreCompInfo;
4 68 3 reqPreCompLen I
7 68 4 preComp [Lorg/bouncycastle/math/ec/ECPoint;
8 68 5 preCompNeg [Lorg/bouncycastle/math/ec/ECPoint;
9 68 6 twiceP Lorg/bouncycastle/math/ec/ECPoint;
14 68 7 iniPreCompLen I
24 51 8 curPreCompLen I
28 51 9 iso Lorg/bouncycastle/math/ec/ECFieldElement;
32 50 10 isoTwiceP Lorg/bouncycastle/math/ec/ECPoint;
33 50 11 last Lorg/bouncycastle/math/ec/ECPoint;
43 47 12 iso2 Lorg/bouncycastle/math/ec/ECFieldElement;
44 47 13 iso3 Lorg/bouncycastle/math/ec/ECFieldElement;
54 56 8 pos I
57 63 8 pos I
64 68 8 result Lorg/bouncycastle/math/ec/WNafPreCompInfo;
MethodParameters:
Name Flags
existing
private boolean checkExisting(org.bouncycastle.math.ec.WNafPreCompInfo, int, boolean);
descriptor: (Lorg/bouncycastle/math/ec/WNafPreCompInfo;IZ)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 4
1: aload 0
aload 1
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.getPreComp:()[Lorg/bouncycastle/math/ec/ECPoint;
iload 2
invokevirtual org.bouncycastle.math.ec.WNafUtil$2.checkTable:([Lorg/bouncycastle/math/ec/ECPoint;I)Z
ifeq 4
2: iload 3
ifeq 3
aload 0
aload 1
invokevirtual org.bouncycastle.math.ec.WNafPreCompInfo.getPreCompNeg:()[Lorg/bouncycastle/math/ec/ECPoint;
iload 2
invokevirtual org.bouncycastle.math.ec.WNafUtil$2.checkTable:([Lorg/bouncycastle/math/ec/ECPoint;I)Z
ifeq 4
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/math/ec/WNafUtil$2;
0 5 1 existingWNaf Lorg/bouncycastle/math/ec/WNafPreCompInfo;
0 5 2 reqPreCompLen I
0 5 3 includeNegated Z
MethodParameters:
Name Flags
existingWNaf
reqPreCompLen
includeNegated
private boolean checkTable(org.bouncycastle.math.ec.ECPoint[], int);
descriptor: ([Lorg/bouncycastle/math/ec/ECPoint;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 1
arraylength
iload 2
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/math/ec/WNafUtil$2;
0 2 1 table [Lorg/bouncycastle/math/ec/ECPoint;
0 2 2 reqLen I
MethodParameters:
Name Flags
table
reqLen
}
SourceFile: "WNafUtil.java"
EnclosingMethod: org.bouncycastle.math.ec.WNafUtil.precompute:(Lorg/bouncycastle/math/ec/ECPoint;IZ)Lorg/bouncycastle/math/ec/WNafPreCompInfo;
NestHost: org.bouncycastle.math.ec.WNafUtil
InnerClasses:
org.bouncycastle.math.ec.WNafUtil$2