class org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter extends org.bouncycastle.crypto.util.PublicKeyFactory$SubjectPublicKeyInfoConverter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter
super_class: org.bouncycastle.crypto.util.PublicKeyFactory$SubjectPublicKeyInfoConverter
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 // org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter this
0: .line 266
aload 0 /* this */
invokespecial org.bouncycastle.crypto.util.PublicKeyFactory$SubjectPublicKeyInfoConverter.<init>:()V
return
end local 0 // org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/util/PublicKeyFactory$ECConverter;
org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKeyParameters(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, java.lang.Object);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;Ljava/lang/Object;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
flags: (0x0000)
Code:
stack=8, locals=9, args_size=3
start local 0 // org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter this
start local 1 // org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo
start local 2 // java.lang.Object defaultParams
0: .line 271
aload 1 /* keyInfo */
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getParameters:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.x9.X962Parameters.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x9/X962Parameters;
astore 3 /* params */
start local 3 // org.bouncycastle.asn1.x9.X962Parameters params
1: .line 274
aload 3 /* params */
invokevirtual org.bouncycastle.asn1.x9.X962Parameters.isNamedCurve:()Z
ifeq 10
2: .line 276
aload 3 /* params */
invokevirtual org.bouncycastle.asn1.x9.X962Parameters.getParameters:()Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1ObjectIdentifier
astore 5 /* oid */
start local 5 // org.bouncycastle.asn1.ASN1ObjectIdentifier oid
3: .line 278
aload 5 /* oid */
invokestatic org.bouncycastle.crypto.ec.CustomNamedCurves.getByOID:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 6 /* x9 */
start local 6 // org.bouncycastle.asn1.x9.X9ECParameters x9
4: .line 279
aload 6 /* x9 */
ifnonnull 6
5: .line 281
aload 5 /* oid */
invokestatic org.bouncycastle.asn1.x9.ECNamedCurveTable.getByOID:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 6 /* x9 */
6: .line 283
StackMap locals: org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter org.bouncycastle.asn1.x509.SubjectPublicKeyInfo java.lang.Object org.bouncycastle.asn1.x9.X962Parameters top org.bouncycastle.asn1.ASN1ObjectIdentifier org.bouncycastle.asn1.x9.X9ECParameters
StackMap stack:
new org.bouncycastle.crypto.params.ECNamedDomainParameters
dup
7: .line 284
aload 5 /* oid */
aload 6 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 6 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 6 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getN:()Ljava/math/BigInteger;
aload 6 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getH:()Ljava/math/BigInteger;
aload 6 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getSeed:()[B
8: .line 283
invokespecial org.bouncycastle.crypto.params.ECNamedDomainParameters.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V
astore 4 /* dParams */
end local 6 // org.bouncycastle.asn1.x9.X9ECParameters x9
end local 5 // org.bouncycastle.asn1.ASN1ObjectIdentifier oid
start local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
9: .line 285
goto 17
end local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
10: .line 286
StackMap locals: org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter org.bouncycastle.asn1.x509.SubjectPublicKeyInfo java.lang.Object org.bouncycastle.asn1.x9.X962Parameters
StackMap stack:
aload 3 /* params */
invokevirtual org.bouncycastle.asn1.x9.X962Parameters.isImplicitlyCA:()Z
ifeq 13
11: .line 288
aload 2 /* defaultParams */
checkcast org.bouncycastle.crypto.params.ECDomainParameters
astore 4 /* dParams */
start local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
12: .line 289
goto 17
end local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
13: .line 292
StackMap locals:
StackMap stack:
aload 3 /* params */
invokevirtual org.bouncycastle.asn1.x9.X962Parameters.getParameters:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokestatic org.bouncycastle.asn1.x9.X9ECParameters.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x9/X9ECParameters;
astore 5 /* x9 */
start local 5 // org.bouncycastle.asn1.x9.X9ECParameters x9
14: .line 293
new org.bouncycastle.crypto.params.ECDomainParameters
dup
15: .line 294
aload 5 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 5 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 5 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getN:()Ljava/math/BigInteger;
aload 5 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getH:()Ljava/math/BigInteger;
aload 5 /* x9 */
invokevirtual org.bouncycastle.asn1.x9.X9ECParameters.getSeed:()[B
16: .line 293
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
astore 4 /* dParams */
end local 5 // org.bouncycastle.asn1.x9.X9ECParameters x9
start local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
17: .line 297
StackMap locals: org.bouncycastle.crypto.params.ECDomainParameters
StackMap stack:
aload 1 /* keyInfo */
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData:()Lorg/bouncycastle/asn1/DERBitString;
astore 5 /* bits */
start local 5 // org.bouncycastle.asn1.DERBitString bits
18: .line 298
aload 5 /* bits */
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
astore 6 /* data */
start local 6 // byte[] data
19: .line 299
new org.bouncycastle.asn1.DEROctetString
dup
aload 6 /* data */
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
astore 7 /* key */
start local 7 // org.bouncycastle.asn1.ASN1OctetString key
20: .line 304
aload 6 /* data */
iconst_0
baload
iconst_4
if_icmpne 28
aload 6 /* data */
iconst_1
baload
aload 6 /* data */
arraylength
iconst_2
isub
if_icmpne 28
21: .line 305
aload 6 /* data */
iconst_2
baload
iconst_2
if_icmpeq 22
aload 6 /* data */
iconst_2
baload
iconst_3
if_icmpne 28
22: .line 307
StackMap locals: org.bouncycastle.asn1.DERBitString byte[] org.bouncycastle.asn1.ASN1OctetString
StackMap stack:
new org.bouncycastle.asn1.x9.X9IntegerConverter
dup
invokespecial org.bouncycastle.asn1.x9.X9IntegerConverter.<init>:()V
aload 4 /* dParams */
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
invokevirtual org.bouncycastle.asn1.x9.X9IntegerConverter.getByteLength:(Lorg/bouncycastle/math/ec/ECCurve;)I
istore 8 /* qLength */
start local 8 // int qLength
23: .line 309
iload 8 /* qLength */
aload 6 /* data */
arraylength
iconst_3
isub
if_icmplt 28
24: .line 313
aload 6 /* data */
invokestatic org.bouncycastle.asn1.ASN1Primitive.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Primitive;
checkcast org.bouncycastle.asn1.ASN1OctetString
astore 7 /* key */
25: .line 314
goto 28
26: .line 315
StackMap locals: org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter org.bouncycastle.asn1.x509.SubjectPublicKeyInfo java.lang.Object org.bouncycastle.asn1.x9.X962Parameters org.bouncycastle.crypto.params.ECDomainParameters org.bouncycastle.asn1.DERBitString byte[] org.bouncycastle.asn1.ASN1OctetString int
StackMap stack: java.io.IOException
pop
27: .line 317
new java.lang.IllegalArgumentException
dup
ldc "error recovering public key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 8 // int qLength
28: .line 322
StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.x9.X9ECPoint
dup
aload 4 /* dParams */
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getCurve:()Lorg/bouncycastle/math/ec/ECCurve;
aload 7 /* key */
invokespecial org.bouncycastle.asn1.x9.X9ECPoint.<init>:(Lorg/bouncycastle/math/ec/ECCurve;Lorg/bouncycastle/asn1/ASN1OctetString;)V
astore 8 /* derQ */
start local 8 // org.bouncycastle.asn1.x9.X9ECPoint derQ
29: .line 324
new org.bouncycastle.crypto.params.ECPublicKeyParameters
dup
aload 8 /* derQ */
invokevirtual org.bouncycastle.asn1.x9.X9ECPoint.getPoint:()Lorg/bouncycastle/math/ec/ECPoint;
aload 4 /* dParams */
invokespecial org.bouncycastle.crypto.params.ECPublicKeyParameters.<init>:(Lorg/bouncycastle/math/ec/ECPoint;Lorg/bouncycastle/crypto/params/ECDomainParameters;)V
areturn
end local 8 // org.bouncycastle.asn1.x9.X9ECPoint derQ
end local 7 // org.bouncycastle.asn1.ASN1OctetString key
end local 6 // byte[] data
end local 5 // org.bouncycastle.asn1.DERBitString bits
end local 4 // org.bouncycastle.crypto.params.ECDomainParameters dParams
end local 3 // org.bouncycastle.asn1.x9.X962Parameters params
end local 2 // java.lang.Object defaultParams
end local 1 // org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo
end local 0 // org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter this
LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/bouncycastle/crypto/util/PublicKeyFactory$ECConverter;
0 30 1 keyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
0 30 2 defaultParams Ljava/lang/Object;
1 30 3 params Lorg/bouncycastle/asn1/x9/X962Parameters;
9 10 4 dParams Lorg/bouncycastle/crypto/params/ECDomainParameters;
12 13 4 dParams Lorg/bouncycastle/crypto/params/ECDomainParameters;
17 30 4 dParams Lorg/bouncycastle/crypto/params/ECDomainParameters;
3 9 5 oid Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
4 9 6 x9 Lorg/bouncycastle/asn1/x9/X9ECParameters;
14 17 5 x9 Lorg/bouncycastle/asn1/x9/X9ECParameters;
18 30 5 bits Lorg/bouncycastle/asn1/DERBitString;
19 30 6 data [B
20 30 7 key Lorg/bouncycastle/asn1/ASN1OctetString;
23 28 8 qLength I
29 30 8 derQ Lorg/bouncycastle/asn1/x9/X9ECPoint;
Exception table:
from to target type
24 25 26 Class java.io.IOException
MethodParameters:
Name Flags
keyInfo
defaultParams
}
SourceFile: "PublicKeyFactory.java"
NestHost: org.bouncycastle.crypto.util.PublicKeyFactory
InnerClasses:
private ECConverter = org.bouncycastle.crypto.util.PublicKeyFactory$ECConverter of org.bouncycastle.crypto.util.PublicKeyFactory
private abstract SubjectPublicKeyInfoConverter = org.bouncycastle.crypto.util.PublicKeyFactory$SubjectPublicKeyInfoConverter of org.bouncycastle.crypto.util.PublicKeyFactory