public class org.bouncycastle.jce.provider.asymmetric.ec.EC5Util
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.asymmetric.ec.EC5Util
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/jce/provider/asymmetric/ec/EC5Util;
public static java.security.spec.EllipticCurve convertCurve(org.bouncycastle.math.ec.ECCurve, byte[]);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;[B)Ljava/security/spec/EllipticCurve;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
instanceof org.bouncycastle.math.ec.ECCurve$Fp
ifeq 2
1: new java.security.spec.EllipticCurve
dup
new java.security.spec.ECFieldFp
dup
aload 0
checkcast org.bouncycastle.math.ec.ECCurve$Fp
invokevirtual org.bouncycastle.math.ec.ECCurve$Fp.getQ:()Ljava/math/BigInteger;
invokespecial java.security.spec.ECFieldFp.<init>:(Ljava/math/BigInteger;)V
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aconst_null
invokespecial java.security.spec.EllipticCurve.<init>:(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
checkcast org.bouncycastle.math.ec.ECCurve$F2m
astore 2
start local 2 3: aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.isTrinomial:()Z
ifeq 6
4: iconst_1
newarray 10
dup
iconst_0
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getK1:()I
iastore
astore 3
start local 3 5: new java.security.spec.EllipticCurve
dup
new java.security.spec.ECFieldF2m
dup
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getM:()I
aload 3
invokespecial java.security.spec.ECFieldF2m.<init>:(I[I)V
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aconst_null
invokespecial java.security.spec.EllipticCurve.<init>:(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
areturn
end local 3 6: StackMap locals: org.bouncycastle.math.ec.ECCurve$F2m
StackMap stack:
iconst_3
newarray 10
dup
iconst_0
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getK3:()I
iastore
dup
iconst_1
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getK2:()I
iastore
dup
iconst_2
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getK1:()I
iastore
astore 3
start local 3 7: new java.security.spec.EllipticCurve
dup
new java.security.spec.ECFieldF2m
dup
aload 2
invokevirtual org.bouncycastle.math.ec.ECCurve$F2m.getM:()I
aload 3
invokespecial java.security.spec.ECFieldF2m.<init>:(I[I)V
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 0
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aconst_null
invokespecial java.security.spec.EllipticCurve.<init>:(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 curve Lorg/bouncycastle/math/ec/ECCurve;
0 8 1 seed [B
3 8 2 curveF2m Lorg/bouncycastle/math/ec/ECCurve$F2m;
5 6 3 ks [I
7 8 3 ks [I
MethodParameters:
Name Flags
curve
seed
public static org.bouncycastle.math.ec.ECCurve convertCurve(java.security.spec.EllipticCurve);
descriptor: (Ljava/security/spec/EllipticCurve;)Lorg/bouncycastle/math/ec/ECCurve;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
astore 1
start local 1 1: aload 0
invokevirtual java.security.spec.EllipticCurve.getA:()Ljava/math/BigInteger;
astore 2
start local 2 2: aload 0
invokevirtual java.security.spec.EllipticCurve.getB:()Ljava/math/BigInteger;
astore 3
start local 3 3: aload 1
instanceof java.security.spec.ECFieldFp
ifeq 5
4: new org.bouncycastle.math.ec.ECCurve$Fp
dup
aload 1
checkcast java.security.spec.ECFieldFp
invokevirtual java.security.spec.ECFieldFp.getP:()Ljava/math/BigInteger;
aload 2
aload 3
invokespecial org.bouncycastle.math.ec.ECCurve$Fp.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
5: StackMap locals: java.security.spec.ECField java.math.BigInteger java.math.BigInteger
StackMap stack:
aload 1
checkcast java.security.spec.ECFieldF2m
astore 4
start local 4 6: aload 4
invokevirtual java.security.spec.ECFieldF2m.getM:()I
istore 5
start local 5 7: aload 4
invokevirtual java.security.spec.ECFieldF2m.getMidTermsOfReductionPolynomial:()[I
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.ECUtil.convertMidTerms:([I)[I
astore 6
start local 6 8: new org.bouncycastle.math.ec.ECCurve$F2m
dup
iload 5
aload 6
iconst_0
iaload
aload 6
iconst_1
iaload
aload 6
iconst_2
iaload
aload 2
aload 3
invokespecial org.bouncycastle.math.ec.ECCurve$F2m.<init>:(IIIILjava/math/BigInteger;Ljava/math/BigInteger;)V
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 9 0 ec Ljava/security/spec/EllipticCurve;
1 9 1 field Ljava/security/spec/ECField;
2 9 2 a Ljava/math/BigInteger;
3 9 3 b Ljava/math/BigInteger;
6 9 4 fieldF2m Ljava/security/spec/ECFieldF2m;
7 9 5 m I
8 9 6 ks [I
MethodParameters:
Name Flags
ec
public static java.security.spec.ECParameterSpec convertSpec(java.security.spec.EllipticCurve, org.bouncycastle.jce.spec.ECParameterSpec);
descriptor: (Ljava/security/spec/EllipticCurve;Lorg/bouncycastle/jce/spec/ECParameterSpec;)Ljava/security/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.jce.spec.ECNamedCurveParameterSpec
ifeq 11
1: new org.bouncycastle.jce.spec.ECNamedCurveSpec
dup
2: aload 1
checkcast org.bouncycastle.jce.spec.ECNamedCurveParameterSpec
invokevirtual org.bouncycastle.jce.spec.ECNamedCurveParameterSpec.getName:()Ljava/lang/String;
3: aload 0
4: new java.security.spec.ECPoint
dup
5: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.getX:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
6: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.getY:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
7: invokespecial java.security.spec.ECPoint.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
8: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
9: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
10: invokespecial org.bouncycastle.jce.spec.ECNamedCurveSpec.<init>:(Ljava/lang/String;Ljava/security/spec/EllipticCurve;Ljava/security/spec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
areturn
11: StackMap locals:
StackMap stack:
new java.security.spec.ECParameterSpec
dup
12: aload 0
13: new java.security.spec.ECPoint
dup
14: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.getX:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
15: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
invokevirtual org.bouncycastle.math.ec.ECPoint.getY:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
16: invokespecial java.security.spec.ECPoint.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
17: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
18: aload 1
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
19: invokespecial java.security.spec.ECParameterSpec.<init>:(Ljava/security/spec/EllipticCurve;Ljava/security/spec/ECPoint;Ljava/math/BigInteger;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 ellipticCurve Ljava/security/spec/EllipticCurve;
0 20 1 spec Lorg/bouncycastle/jce/spec/ECParameterSpec;
MethodParameters:
Name Flags
ellipticCurve
spec
public static org.bouncycastle.jce.spec.ECParameterSpec convertSpec(java.security.spec.ECParameterSpec, boolean);
descriptor: (Ljava/security/spec/ECParameterSpec;Z)Lorg/bouncycastle/jce/spec/ECParameterSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertCurve:(Ljava/security/spec/EllipticCurve;)Lorg/bouncycastle/math/ec/ECCurve;
astore 2
start local 2 1: new org.bouncycastle.jce.spec.ECParameterSpec
dup
2: aload 2
3: aload 2
aload 0
invokevirtual java.security.spec.ECParameterSpec.getGenerator:()Ljava/security/spec/ECPoint;
iload 1
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertPoint:(Lorg/bouncycastle/math/ec/ECCurve;Ljava/security/spec/ECPoint;Z)Lorg/bouncycastle/math/ec/ECPoint;
4: aload 0
invokevirtual java.security.spec.ECParameterSpec.getOrder:()Ljava/math/BigInteger;
5: aload 0
invokevirtual java.security.spec.ECParameterSpec.getCofactor:()I
i2l
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
6: aload 0
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokevirtual java.security.spec.EllipticCurve.getSeed:()[B
7: invokespecial org.bouncycastle.jce.spec.ECParameterSpec.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 ecSpec Ljava/security/spec/ECParameterSpec;
0 8 1 withCompression Z
1 8 2 curve Lorg/bouncycastle/math/ec/ECCurve;
MethodParameters:
Name Flags
ecSpec
withCompression
public static org.bouncycastle.math.ec.ECPoint convertPoint(java.security.spec.ECParameterSpec, java.security.spec.ECPoint, boolean);
descriptor: (Ljava/security/spec/ECParameterSpec;Ljava/security/spec/ECPoint;Z)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertCurve:(Ljava/security/spec/EllipticCurve;)Lorg/bouncycastle/math/ec/ECCurve;
aload 1
iload 2
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertPoint:(Lorg/bouncycastle/math/ec/ECCurve;Ljava/security/spec/ECPoint;Z)Lorg/bouncycastle/math/ec/ECPoint;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ecSpec Ljava/security/spec/ECParameterSpec;
0 1 1 point Ljava/security/spec/ECPoint;
0 1 2 withCompression Z
MethodParameters:
Name Flags
ecSpec
point
withCompression
public static org.bouncycastle.math.ec.ECPoint convertPoint(org.bouncycastle.math.ec.ECCurve, java.security.spec.ECPoint, boolean);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;Ljava/security/spec/ECPoint;Z)Lorg/bouncycastle/math/ec/ECPoint;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.security.spec.ECPoint.getAffineX:()Ljava/math/BigInteger;
aload 1
invokevirtual java.security.spec.ECPoint.getAffineY:()Ljava/math/BigInteger;
iload 2
invokevirtual org.bouncycastle.math.ec.ECCurve.createPoint:(Ljava/math/BigInteger;Ljava/math/BigInteger;Z)Lorg/bouncycastle/math/ec/ECPoint;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 curve Lorg/bouncycastle/math/ec/ECCurve;
0 1 1 point Ljava/security/spec/ECPoint;
0 1 2 withCompression Z
MethodParameters:
Name Flags
curve
point
withCompression
}
SourceFile: "EC5Util.java"
InnerClasses:
public F2m = org.bouncycastle.math.ec.ECCurve$F2m of org.bouncycastle.math.ec.ECCurve
public Fp = org.bouncycastle.math.ec.ECCurve$Fp of org.bouncycastle.math.ec.ECCurve