public class org.bouncycastle.asn1.x9.X9Curve extends org.bouncycastle.asn1.ASN1Encodable implements org.bouncycastle.asn1.x9.X9ObjectIdentifiers
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.x9.X9Curve
super_class: org.bouncycastle.asn1.ASN1Encodable
{
private org.bouncycastle.math.ec.ECCurve curve;
descriptor: Lorg/bouncycastle/math/ec/ECCurve;
flags: (0x0002) ACC_PRIVATE
private byte[] seed;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.DERObjectIdentifier fieldIdentifier;
descriptor: Lorg/bouncycastle/asn1/DERObjectIdentifier;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.math.ec.ECCurve);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aconst_null
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
2: aload 0
aload 1
putfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
3: aload 0
aconst_null
putfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
4: aload 0
invokevirtual org.bouncycastle.asn1.x9.X9Curve.setFieldIdentifier:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
0 6 1 curve Lorg/bouncycastle/math/ec/ECCurve;
MethodParameters:
Name Flags
curve
public void <init>(org.bouncycastle.math.ec.ECCurve, byte[]);
descriptor: (Lorg/bouncycastle/math/ec/ECCurve;[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aconst_null
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
2: aload 0
aload 1
putfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
3: aload 0
aload 2
putfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
4: aload 0
invokevirtual org.bouncycastle.asn1.x9.X9Curve.setFieldIdentifier:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
0 6 1 curve Lorg/bouncycastle/math/ec/ECCurve;
0 6 2 seed [B
MethodParameters:
Name Flags
curve
seed
public void <init>(org.bouncycastle.asn1.x9.X9FieldID, org.bouncycastle.asn1.ASN1Sequence);
descriptor: (Lorg/bouncycastle/asn1/x9/X9FieldID;Lorg/bouncycastle/asn1/ASN1Sequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aconst_null
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
2: aload 0
aload 1
invokevirtual org.bouncycastle.asn1.x9.X9FieldID.getIdentifier:()Lorg/bouncycastle/asn1/DERObjectIdentifier;
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
3: aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
getstatic org.bouncycastle.asn1.x9.X9Curve.prime_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 9
4: aload 1
invokevirtual org.bouncycastle.asn1.x9.X9FieldID.getParameters:()Lorg/bouncycastle/asn1/DERObject;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
astore 3
start local 3 5: new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 3
aload 2
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.ASN1OctetString
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/asn1/ASN1OctetString;)V
astore 4
start local 4 6: new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 3
aload 2
iconst_1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.ASN1OctetString
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/asn1/ASN1OctetString;)V
astore 5
start local 5 7: aload 0
new org.bouncycastle.math.ec.ECCurve$Fp
dup
aload 3
aload 4
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getValue:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 5
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getValue:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
invokespecial org.bouncycastle.math.ec.ECCurve$Fp.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
putfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
end local 5 end local 4 end local 3 8: goto 38
9: StackMap locals: org.bouncycastle.asn1.x9.X9Curve org.bouncycastle.asn1.x9.X9FieldID org.bouncycastle.asn1.ASN1Sequence
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
getstatic org.bouncycastle.asn1.x9.X9Curve.characteristic_two_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 38
10: aload 1
invokevirtual org.bouncycastle.asn1.x9.X9FieldID.getParameters:()Lorg/bouncycastle/asn1/DERObject;
checkcast org.bouncycastle.asn1.DERSequence
astore 3
start local 3 11: aload 3
iconst_0
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
12: invokevirtual java.math.BigInteger.intValue:()I
13: istore 4
start local 4 14: aload 3
iconst_1
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERObjectIdentifier
15: astore 5
start local 5 16: iconst_0
istore 6
start local 6 17: iconst_0
istore 7
start local 7 18: iconst_0
istore 8
start local 8 19: aload 5
getstatic org.bouncycastle.asn1.x9.X9Curve.tpBasis:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 24
20: aload 3
iconst_2
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
21: invokevirtual java.math.BigInteger.intValue:()I
22: istore 6
23: goto 35
24: StackMap locals: org.bouncycastle.asn1.x9.X9Curve org.bouncycastle.asn1.x9.X9FieldID org.bouncycastle.asn1.ASN1Sequence org.bouncycastle.asn1.DERSequence int org.bouncycastle.asn1.DERObjectIdentifier int int int
StackMap stack:
aload 3
iconst_2
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERSequence
25: astore 9
start local 9 26: aload 9
iconst_0
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
27: invokevirtual java.math.BigInteger.intValue:()I
28: istore 6
29: aload 9
iconst_1
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
30: invokevirtual java.math.BigInteger.intValue:()I
31: istore 7
32: aload 9
iconst_2
invokevirtual org.bouncycastle.asn1.DERSequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
33: invokevirtual java.math.BigInteger.intValue:()I
34: istore 8
end local 9 35: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.x9.X9FieldElement
dup
iload 4
iload 6
iload 7
iload 8
aload 2
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.ASN1OctetString
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(IIIILorg/bouncycastle/asn1/ASN1OctetString;)V
astore 9
start local 9 36: new org.bouncycastle.asn1.x9.X9FieldElement
dup
iload 4
iload 6
iload 7
iload 8
aload 2
iconst_1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.ASN1OctetString
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(IIIILorg/bouncycastle/asn1/ASN1OctetString;)V
astore 10
start local 10 37: aload 0
new org.bouncycastle.math.ec.ECCurve$F2m
dup
iload 4
iload 6
iload 7
iload 8
aload 9
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getValue:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 10
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getValue:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
invokespecial org.bouncycastle.math.ec.ECCurve$F2m.<init>:(IIIILjava/math/BigInteger;Ljava/math/BigInteger;)V
putfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 38: StackMap locals: org.bouncycastle.asn1.x9.X9Curve org.bouncycastle.asn1.x9.X9FieldID org.bouncycastle.asn1.ASN1Sequence
StackMap stack:
aload 2
invokevirtual org.bouncycastle.asn1.ASN1Sequence.size:()I
iconst_3
if_icmpne 40
39: aload 0
aload 2
iconst_2
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERBitString
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
putfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
40: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
0 41 1 fieldID Lorg/bouncycastle/asn1/x9/X9FieldID;
0 41 2 seq Lorg/bouncycastle/asn1/ASN1Sequence;
5 8 3 p Ljava/math/BigInteger;
6 8 4 x9A Lorg/bouncycastle/asn1/x9/X9FieldElement;
7 8 5 x9B Lorg/bouncycastle/asn1/x9/X9FieldElement;
11 38 3 parameters Lorg/bouncycastle/asn1/DERSequence;
14 38 4 m I
16 38 5 representation Lorg/bouncycastle/asn1/DERObjectIdentifier;
17 38 6 k1 I
18 38 7 k2 I
19 38 8 k3 I
26 35 9 pentanomial Lorg/bouncycastle/asn1/DERSequence;
36 38 9 x9A Lorg/bouncycastle/asn1/x9/X9FieldElement;
37 38 10 x9B Lorg/bouncycastle/asn1/x9/X9FieldElement;
MethodParameters:
Name Flags
fieldID
seq
private void setFieldIdentifier();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
instanceof org.bouncycastle.math.ec.ECCurve$Fp
ifeq 3
1: aload 0
getstatic org.bouncycastle.asn1.x9.X9Curve.prime_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
instanceof org.bouncycastle.math.ec.ECCurve$F2m
ifeq 6
4: aload 0
getstatic org.bouncycastle.asn1.x9.X9Curve.characteristic_two_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
putfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
5: goto 7
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "This type of ECCurve is not implemented"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
public org.bouncycastle.math.ec.ECCurve getCurve();
descriptor: ()Lorg/bouncycastle/math/ec/ECCurve;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
public byte[] getSeed();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
public org.bouncycastle.asn1.DERObject toASN1Object();
descriptor: ()Lorg/bouncycastle/asn1/DERObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
getstatic org.bouncycastle.asn1.x9.X9Curve.prime_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 1
new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Lorg/bouncycastle/math/ec/ECFieldElement;)V
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
3: aload 1
new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Lorg/bouncycastle/math/ec/ECFieldElement;)V
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
4: goto 8
5: StackMap locals: org.bouncycastle.asn1.ASN1EncodableVector
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.fieldIdentifier:Lorg/bouncycastle/asn1/DERObjectIdentifier;
getstatic org.bouncycastle.asn1.x9.X9Curve.characteristic_two_field:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 1
new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getA:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Lorg/bouncycastle/math/ec/ECFieldElement;)V
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
7: aload 1
new org.bouncycastle.asn1.x9.X9FieldElement
dup
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.curve:Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.math.ec.ECCurve.getB:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokespecial org.bouncycastle.asn1.x9.X9FieldElement.<init>:(Lorg/bouncycastle/math/ec/ECFieldElement;)V
invokevirtual org.bouncycastle.asn1.x9.X9FieldElement.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
ifnull 10
9: aload 1
new org.bouncycastle.asn1.DERBitString
dup
aload 0
getfield org.bouncycastle.asn1.x9.X9Curve.seed:[B
invokespecial org.bouncycastle.asn1.DERBitString.<init>:([B)V
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/DEREncodable;)V
10: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.DERSequence
dup
aload 1
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/asn1/x9/X9Curve;
1 11 1 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
}
SourceFile: "X9Curve.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