public class org.bouncycastle.math.ec.ECAlgorithms
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.math.ec.ECAlgorithms
super_class: java.lang.Object
{
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/math/ec/ECAlgorithms;
public static org.bouncycastle.math.ec.ECPoint sumOfTwoMultiplies(org.bouncycastle.math.ec.ECPoint, java.math.BigInteger, org.bouncycastle.math.ec.ECPoint, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
astore 4
start local 4 1: aload 4
aload 2
invokevirtual org.bouncycastle.math.ec.ECPoint.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
ldc "P and Q must be on same curve"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.math.ec.ECCurve
StackMap stack:
aload 4
instanceof org.bouncycastle.math.ec.ECCurve$F2m
ifeq 7
4: aload 4
checkcast org.bouncycastle.math.ec.ECCurve$F2m
astore 5
start local 5 5: aload 5
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.isKoblitz:()Z
ifeq 7
6: aload 0
aload 1
invokevirtual org.bouncycastle.math.ec.ECPoint.multiply:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
aload 2
aload 3
invokevirtual org.bouncycastle.math.ec.ECPoint.multiply:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
areturn
end local 5 7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokestatic org.bouncycastle.math.ec.ECAlgorithms.implShamirsTrick:(Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 P Lorg/bouncycastle/math/ec/ECPoint;
0 8 1 a Ljava/math/BigInteger;
0 8 2 Q Lorg/bouncycastle/math/ec/ECPoint;
0 8 3 b Ljava/math/BigInteger;
1 8 4 c Lorg/bouncycastle/math/ec/ECCurve;
5 7 5 f2mCurve Lorg/bouncycastle/math/ec/ECCurve$F2m;
MethodParameters:
Name Flags
P
a
Q
b
public static org.bouncycastle.math.ec.ECPoint shamirsTrick(org.bouncycastle.math.ec.ECPoint, java.math.BigInteger, org.bouncycastle.math.ec.ECPoint, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 2
invokevirtual org.bouncycastle.math.ec.ECPoint.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "P and Q must be on same curve"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokestatic org.bouncycastle.math.ec.ECAlgorithms.implShamirsTrick:(Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 P Lorg/bouncycastle/math/ec/ECPoint;
0 3 1 k Ljava/math/BigInteger;
0 3 2 Q Lorg/bouncycastle/math/ec/ECPoint;
0 3 3 l Ljava/math/BigInteger;
MethodParameters:
Name Flags
P
k
Q
l
private static org.bouncycastle.math.ec.ECPoint implShamirsTrick(org.bouncycastle.math.ec.ECPoint, java.math.BigInteger, org.bouncycastle.math.ec.ECPoint, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.math.BigInteger.bitLength:()I
aload 3
invokevirtual java.math.BigInteger.bitLength:()I
invokestatic java.lang.Math.max:(II)I
istore 4
start local 4 1: aload 0
aload 2
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
astore 5
start local 5 2: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getInfinity:()Lorg/bouncycastle/math/ec/ECPoint;
astore 6
start local 6 3: iload 4
iconst_1
isub
istore 7
start local 7 4: goto 15
5: StackMap locals: org.bouncycastle.math.ec.ECPoint java.math.BigInteger org.bouncycastle.math.ec.ECPoint java.math.BigInteger int org.bouncycastle.math.ec.ECPoint org.bouncycastle.math.ec.ECPoint int
StackMap stack:
aload 6
invokevirtual org.bouncycastle.math.ec.ECPoint.twice:()Lorg/bouncycastle/math/ec/ECPoint;
astore 6
6: aload 1
iload 7
invokevirtual java.math.BigInteger.testBit:(I)Z
ifeq 12
7: aload 3
iload 7
invokevirtual java.math.BigInteger.testBit:(I)Z
ifeq 10
8: aload 6
aload 5
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
astore 6
9: goto 14
10: StackMap locals:
StackMap stack:
aload 6
aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
astore 6
11: goto 14
12: StackMap locals:
StackMap stack:
aload 3
iload 7
invokevirtual java.math.BigInteger.testBit:(I)Z
ifeq 14
13: aload 6
aload 2
invokevirtual org.bouncycastle.math.ec.ECPoint.add:(Lorg/bouncycastle/math/ec/ECPoint;)Lorg/bouncycastle/math/ec/ECPoint;
astore 6
14: StackMap locals:
StackMap stack:
iinc 7 -1
StackMap locals:
StackMap stack:
15: iload 7
ifge 5
end local 7 16: aload 6
areturn
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 17 0 P Lorg/bouncycastle/math/ec/ECPoint;
0 17 1 k Ljava/math/BigInteger;
0 17 2 Q Lorg/bouncycastle/math/ec/ECPoint;
0 17 3 l Ljava/math/BigInteger;
1 17 4 m I
2 17 5 Z Lorg/bouncycastle/math/ec/ECPoint;
3 17 6 R Lorg/bouncycastle/math/ec/ECPoint;
4 16 7 i I
MethodParameters:
Name Flags
P
k
Q
l
}
SourceFile: "ECAlgorithms.java"
InnerClasses:
public F2m = org.bouncycastle.math.ec.ECCurve$F2m of org.bouncycastle.math.ec.ECCurve