public class org.bouncycastle.jce.provider.asymmetric.ec.ECUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.asymmetric.ec.ECUtil
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/ECUtil;
static int[] convertMidTerms(int[]);
descriptor: ([I)[I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: iconst_3
newarray 10
astore 1
start local 1 1: aload 0
arraylength
iconst_1
if_icmpne 4
2: aload 1
iconst_0
aload 0
iconst_0
iaload
iastore
3: goto 31
4: StackMap locals: int[]
StackMap stack:
aload 0
arraylength
iconst_3
if_icmpeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "Only Trinomials and pentanomials supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
iaload
aload 0
iconst_1
iaload
if_icmpge 15
aload 0
iconst_0
iaload
aload 0
iconst_2
iaload
if_icmpge 15
7: aload 1
iconst_0
aload 0
iconst_0
iaload
iastore
8: aload 0
iconst_1
iaload
aload 0
iconst_2
iaload
if_icmpge 12
9: aload 1
iconst_1
aload 0
iconst_1
iaload
iastore
10: aload 1
iconst_2
aload 0
iconst_2
iaload
iastore
11: goto 31
12: StackMap locals:
StackMap stack:
aload 1
iconst_1
aload 0
iconst_2
iaload
iastore
13: aload 1
iconst_2
aload 0
iconst_1
iaload
iastore
14: goto 31
15: StackMap locals:
StackMap stack:
aload 0
iconst_1
iaload
aload 0
iconst_2
iaload
if_icmpge 24
16: aload 1
iconst_0
aload 0
iconst_1
iaload
iastore
17: aload 0
iconst_0
iaload
aload 0
iconst_2
iaload
if_icmpge 21
18: aload 1
iconst_1
aload 0
iconst_0
iaload
iastore
19: aload 1
iconst_2
aload 0
iconst_2
iaload
iastore
20: goto 31
21: StackMap locals:
StackMap stack:
aload 1
iconst_1
aload 0
iconst_2
iaload
iastore
22: aload 1
iconst_2
aload 0
iconst_0
iaload
iastore
23: goto 31
24: StackMap locals:
StackMap stack:
aload 1
iconst_0
aload 0
iconst_2
iaload
iastore
25: aload 0
iconst_0
iaload
aload 0
iconst_1
iaload
if_icmpge 29
26: aload 1
iconst_1
aload 0
iconst_0
iaload
iastore
27: aload 1
iconst_2
aload 0
iconst_1
iaload
iastore
28: goto 31
29: StackMap locals:
StackMap stack:
aload 1
iconst_1
aload 0
iconst_1
iaload
iastore
30: aload 1
iconst_2
aload 0
iconst_0
iaload
iastore
31: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 k [I
1 32 1 res [I
MethodParameters:
Name Flags
k
public static org.bouncycastle.crypto.params.AsymmetricKeyParameter generatePublicKeyParameter(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=3, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.jce.interfaces.ECPublicKey
ifeq 13
1: aload 0
checkcast org.bouncycastle.jce.interfaces.ECPublicKey
astore 1
start local 1 2: aload 1
invokeinterface org.bouncycastle.jce.interfaces.ECPublicKey.getParameters:()Lorg/bouncycastle/jce/spec/ECParameterSpec;
astore 2
start local 2 3: aload 2
ifnonnull 9
4: invokestatic org.bouncycastle.jce.provider.ProviderUtil.getEcImplicitlyCa:()Lorg/bouncycastle/jce/spec/ECParameterSpec;
astore 2
5: new org.bouncycastle.crypto.params.ECPublicKeyParameters
dup
6: aload 1
checkcast org.bouncycastle.jce.provider.JCEECPublicKey
invokevirtual org.bouncycastle.jce.provider.JCEECPublicKey.engineGetQ:()Lorg/bouncycastle/math/ec/ECPoint;
7: new org.bouncycastle.crypto.params.ECDomainParameters
dup
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getSeed:()[B
invokespecial org.bouncycastle.crypto.params.ECDomainParameters.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
8: invokespecial org.bouncycastle.crypto.params.ECPublicKeyParameters.<init>:(Lorg/bouncycastle/math/ec/ECPoint;Lorg/bouncycastle/crypto/params/ECDomainParameters;)V
areturn
9: StackMap locals: org.bouncycastle.jce.interfaces.ECPublicKey org.bouncycastle.jce.spec.ECParameterSpec
StackMap stack:
new org.bouncycastle.crypto.params.ECPublicKeyParameters
dup
10: aload 1
invokeinterface org.bouncycastle.jce.interfaces.ECPublicKey.getQ:()Lorg/bouncycastle/math/ec/ECPoint;
11: new org.bouncycastle.crypto.params.ECDomainParameters
dup
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getSeed:()[B
invokespecial org.bouncycastle.crypto.params.ECDomainParameters.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
12: invokespecial org.bouncycastle.crypto.params.ECPublicKeyParameters.<init>:(Lorg/bouncycastle/math/ec/ECPoint;Lorg/bouncycastle/crypto/params/ECDomainParameters;)V
areturn
end local 2 end local 1 13: StackMap locals:
StackMap stack:
aload 0
instanceof java.security.interfaces.ECPublicKey
ifeq 20
14: aload 0
checkcast java.security.interfaces.ECPublicKey
astore 1
start local 1 15: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
iconst_0
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertSpec:(Ljava/security/spec/ECParameterSpec;Z)Lorg/bouncycastle/jce/spec/ECParameterSpec;
astore 2
start local 2 16: new org.bouncycastle.crypto.params.ECPublicKeyParameters
dup
17: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
aload 1
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
iconst_0
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.EC5Util.convertPoint:(Ljava/security/spec/ECParameterSpec;Ljava/security/spec/ECPoint;Z)Lorg/bouncycastle/math/ec/ECPoint;
18: new org.bouncycastle.crypto.params.ECDomainParameters
dup
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getSeed:()[B
invokespecial org.bouncycastle.crypto.params.ECDomainParameters.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
19: invokespecial org.bouncycastle.crypto.params.ECPublicKeyParameters.<init>:(Lorg/bouncycastle/math/ec/ECPoint;Lorg/bouncycastle/crypto/params/ECDomainParameters;)V
areturn
end local 2 end local 1 20: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "cannot identify EC public key."
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 key Ljava/security/PublicKey;
2 13 1 k Lorg/bouncycastle/jce/interfaces/ECPublicKey;
3 13 2 s Lorg/bouncycastle/jce/spec/ECParameterSpec;
15 20 1 pubKey Ljava/security/interfaces/ECPublicKey;
16 20 2 s Lorg/bouncycastle/jce/spec/ECParameterSpec;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
public static org.bouncycastle.crypto.params.AsymmetricKeyParameter generatePrivateKeyParameter(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=3, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.jce.interfaces.ECPrivateKey
ifeq 9
1: aload 0
checkcast org.bouncycastle.jce.interfaces.ECPrivateKey
astore 1
start local 1 2: aload 1
invokeinterface org.bouncycastle.jce.interfaces.ECPrivateKey.getParameters:()Lorg/bouncycastle/jce/spec/ECParameterSpec;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: invokestatic org.bouncycastle.jce.provider.ProviderUtil.getEcImplicitlyCa:()Lorg/bouncycastle/jce/spec/ECParameterSpec;
astore 2
5: StackMap locals: org.bouncycastle.jce.interfaces.ECPrivateKey org.bouncycastle.jce.spec.ECParameterSpec
StackMap stack:
new org.bouncycastle.crypto.params.ECPrivateKeyParameters
dup
6: aload 1
invokeinterface org.bouncycastle.jce.interfaces.ECPrivateKey.getD:()Ljava/math/BigInteger;
7: new org.bouncycastle.crypto.params.ECDomainParameters
dup
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getN:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getH:()Ljava/math/BigInteger;
aload 2
invokevirtual org.bouncycastle.jce.spec.ECParameterSpec.getSeed:()[B
invokespecial org.bouncycastle.crypto.params.ECDomainParameters.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
8: invokespecial org.bouncycastle.crypto.params.ECPrivateKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/ECDomainParameters;)V
areturn
end local 2 end local 1 9: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "can't identify EC private key."
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 key Ljava/security/PrivateKey;
2 9 1 k Lorg/bouncycastle/jce/interfaces/ECPrivateKey;
3 9 2 s Lorg/bouncycastle/jce/spec/ECParameterSpec;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
public static org.bouncycastle.asn1.DERObjectIdentifier getNamedCurveOid(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.asn1.x9.X962NamedCurves.getOID:(Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
astore 1
start local 1 1: aload 1
ifnonnull 9
2: aload 0
invokestatic org.bouncycastle.asn1.sec.SECNamedCurves.getOID:(Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
astore 1
3: aload 1
ifnonnull 5
4: aload 0
invokestatic org.bouncycastle.asn1.nist.NISTNamedCurves.getOID:(Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
astore 1
5: StackMap locals: org.bouncycastle.asn1.DERObjectIdentifier
StackMap stack:
aload 1
ifnonnull 7
6: aload 0
invokestatic org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getOID:(Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
8: aload 0
invokestatic org.bouncycastle.asn1.cryptopro.ECGOST3410NamedCurves.getOID:(Ljava/lang/String;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
astore 1
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
1 10 1 oid Lorg/bouncycastle/asn1/DERObjectIdentifier;
MethodParameters:
Name Flags
name
public static org.bouncycastle.asn1.x9.X9ECParameters getNamedCurveByOid(org.bouncycastle.asn1.DERObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/DERObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.asn1.x9.X962NamedCurves.getByOID:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 1
start local 1 1: aload 1
ifnonnull 7
2: aload 0
invokestatic org.bouncycastle.asn1.sec.SECNamedCurves.getByOID:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 1
3: aload 1
ifnonnull 5
4: aload 0
invokestatic org.bouncycastle.asn1.nist.NISTNamedCurves.getByOID:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 1
5: StackMap locals: org.bouncycastle.asn1.x9.X9ECParameters
StackMap stack:
aload 1
ifnonnull 7
6: aload 0
invokestatic org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getByOID:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 oid Lorg/bouncycastle/asn1/DERObjectIdentifier;
1 8 1 params Lorg/bouncycastle/asn1/x9/X9ECParameters;
MethodParameters:
Name Flags
oid
public static java.lang.String getCurveName(org.bouncycastle.asn1.DERObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.asn1.x9.X962NamedCurves.getName:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 9
2: aload 0
invokestatic org.bouncycastle.asn1.sec.SECNamedCurves.getName:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
astore 1
3: aload 1
ifnonnull 5
4: aload 0
invokestatic org.bouncycastle.asn1.nist.NISTNamedCurves.getName:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
astore 1
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
ifnonnull 7
6: aload 0
invokestatic org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getName:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
astore 1
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
8: aload 0
invokestatic org.bouncycastle.asn1.cryptopro.ECGOST3410NamedCurves.getName:(Lorg/bouncycastle/asn1/DERObjectIdentifier;)Ljava/lang/String;
astore 1
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 oid Lorg/bouncycastle/asn1/DERObjectIdentifier;
1 10 1 name Ljava/lang/String;
MethodParameters:
Name Flags
oid
}
SourceFile: "ECUtil.java"