public abstract class org.bouncycastle.asn1.ua.DSTU4145PointEncoder
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.asn1.ua.DSTU4145PointEncoder
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/asn1/ua/DSTU4145PointEncoder;
private static org.bouncycastle.math.ec.ECFieldElement trace(org.bouncycastle.math.ec.ECFieldElement);
descriptor: (Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: iconst_1
istore 2
start local 2 2: goto 5
3: StackMap locals: org.bouncycastle.math.ec.ECFieldElement int
StackMap stack:
aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
aload 0
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual org.bouncycastle.math.ec.ECFieldElement.getFieldSize:()I
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fe Lorg/bouncycastle/math/ec/ECFieldElement;
1 7 1 t Lorg/bouncycastle/math/ec/ECFieldElement;
2 6 2 i I
MethodParameters:
Name Flags
fe
private static org.bouncycastle.math.ec.ECFieldElement solveQuadraticEquation(org.bouncycastle.math.ec.ECCurve, org.bouncycastle.math.ec.ECFieldElement);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isZero:()Z
ifeq 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 0
getstatic org.bouncycastle.math.ec.ECConstants.ZERO:Ljava/math/BigInteger;
invokevirtual org.bouncycastle.math.ec.ECCurve.fromBigInteger:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 2
start local 2 3: aconst_null
astore 3
start local 3 4: aconst_null
astore 4
start local 4 5: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
astore 5
start local 5 6: aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.getFieldSize:()I
istore 6
start local 6 7: StackMap locals: org.bouncycastle.math.ec.ECCurve org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement java.util.Random int
StackMap stack:
aload 0
new java.math.BigInteger
dup
iload 6
aload 5
invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
invokevirtual org.bouncycastle.math.ec.ECCurve.fromBigInteger:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 7
start local 7 8: aload 2
astore 3
9: aload 1
astore 8
start local 8 10: iconst_1
istore 9
start local 9 11: goto 16
12: StackMap locals: org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement int
StackMap stack:
aload 8
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 10
start local 10 13: aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
aload 10
aload 7
invokevirtual org.bouncycastle.math.ec.ECFieldElement.multiply:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 3
14: aload 10
aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 8
end local 10 15: iinc 9 1
StackMap locals:
StackMap stack:
16: iload 9
iload 6
iconst_1
isub
if_icmple 12
end local 9 17: aload 8
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isZero:()Z
ifne 19
18: aconst_null
areturn
19: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 4
end local 8 end local 7 20: aload 4
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isZero:()Z
ifne 7
21: aload 3
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 22 0 curve Lorg/bouncycastle/math/ec/ECCurve;
0 22 1 beta Lorg/bouncycastle/math/ec/ECFieldElement;
3 22 2 zeroElement Lorg/bouncycastle/math/ec/ECFieldElement;
4 22 3 z Lorg/bouncycastle/math/ec/ECFieldElement;
5 22 4 gamma Lorg/bouncycastle/math/ec/ECFieldElement;
6 22 5 rand Ljava/util/Random;
7 22 6 m I
8 20 7 t Lorg/bouncycastle/math/ec/ECFieldElement;
10 20 8 w Lorg/bouncycastle/math/ec/ECFieldElement;
11 17 9 i I
13 15 10 w2 Lorg/bouncycastle/math/ec/ECFieldElement;
MethodParameters:
Name Flags
curve
beta
public static byte[] encodePoint(org.bouncycastle.math.ec.ECPoint);
descriptor: (Lorg/bouncycastle/math/ec/ECPoint;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.normalize:()Lorg/bouncycastle/math/ec/ECPoint;
astore 0
1: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.getAffineXCoord:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 1
start local 1 2: aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.getEncoded:()[B
astore 2
start local 2 3: aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isZero:()Z
ifne 9
4: aload 0
invokevirtual org.bouncycastle.math.ec.ECPoint.getAffineYCoord:()Lorg/bouncycastle/math/ec/ECFieldElement;
aload 1
invokevirtual org.bouncycastle.math.ec.ECFieldElement.divide:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 3
start local 3 5: aload 3
invokestatic org.bouncycastle.asn1.ua.DSTU4145PointEncoder.trace:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isOne:()Z
ifeq 8
6: aload 2
aload 2
arraylength
iconst_1
isub
dup2
baload
iconst_1
ior
i2b
bastore
7: goto 9
8: StackMap locals: org.bouncycastle.math.ec.ECFieldElement byte[] org.bouncycastle.math.ec.ECFieldElement
StackMap stack:
aload 2
aload 2
arraylength
iconst_1
isub
dup2
baload
sipush 254
iand
i2b
bastore
end local 3 9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 Q Lorg/bouncycastle/math/ec/ECPoint;
2 10 1 x Lorg/bouncycastle/math/ec/ECFieldElement;
3 10 2 bytes [B
5 9 3 z Lorg/bouncycastle/math/ec/ECFieldElement;
MethodParameters:
Name Flags
Q
public static org.bouncycastle.math.ec.ECPoint decodePoint(org.bouncycastle.math.ec.ECCurve, byte[]);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;[B)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
arraylength
iconst_1
isub
baload
iconst_1
iand
i2l
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
invokevirtual org.bouncycastle.math.ec.ECCurve.fromBigInteger:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 2
start local 2 1: aload 0
new java.math.BigInteger
dup
iconst_1
aload 1
invokespecial java.math.BigInteger.<init>:(I[B)V
invokevirtual org.bouncycastle.math.ec.ECCurve.fromBigInteger:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 3
start local 3 2: aload 3
invokestatic org.bouncycastle.asn1.ua.DSTU4145PointEncoder.trace:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 4
3: aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.addOne:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 3
4: StackMap locals: org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement
StackMap stack:
aconst_null
astore 4
start local 4 5: aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.isZero:()Z
ifeq 8
6: aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.sqrt:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 4
7: goto 14
8: StackMap locals: org.bouncycastle.math.ec.ECFieldElement
StackMap stack:
aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.square:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.invert:()Lorg/bouncycastle/math/ec/ECFieldElement;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.multiply:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.add:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 5
start local 5 9: aload 0
aload 5
invokestatic org.bouncycastle.asn1.ua.DSTU4145PointEncoder.solveQuadraticEquation:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 6
start local 6 10: aload 6
ifnull 14
11: aload 6
invokestatic org.bouncycastle.asn1.ua.DSTU4145PointEncoder.trace:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
aload 2
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 13
12: aload 6
invokevirtual org.bouncycastle.math.ec.ECFieldElement.addOne:()Lorg/bouncycastle/math/ec/ECFieldElement;
astore 6
13: StackMap locals: org.bouncycastle.math.ec.ECFieldElement org.bouncycastle.math.ec.ECFieldElement
StackMap stack:
aload 3
aload 6
invokevirtual org.bouncycastle.math.ec.ECFieldElement.multiply:(Lorg/bouncycastle/math/ec/ECFieldElement;)Lorg/bouncycastle/math/ec/ECFieldElement;
astore 4
end local 6 end local 5 14: StackMap locals:
StackMap stack:
aload 4
ifnonnull 16
15: new java.lang.IllegalArgumentException
dup
ldc "Invalid point compression"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 4
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
invokevirtual org.bouncycastle.math.ec.ECCurve.validatePoint:(Ljava/math/BigInteger;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 17 0 curve Lorg/bouncycastle/math/ec/ECCurve;
0 17 1 bytes [B
1 17 2 k Lorg/bouncycastle/math/ec/ECFieldElement;
2 17 3 xp Lorg/bouncycastle/math/ec/ECFieldElement;
5 17 4 yp Lorg/bouncycastle/math/ec/ECFieldElement;
9 14 5 beta Lorg/bouncycastle/math/ec/ECFieldElement;
10 14 6 z Lorg/bouncycastle/math/ec/ECFieldElement;
MethodParameters:
Name Flags
curve
bytes
}
SourceFile: "DSTU4145PointEncoder.java"