class org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser extends org.bouncycastle.openssl.PEMReader$KeyPairParser
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser
super_class: org.bouncycastle.openssl.PEMReader$KeyPairParser
{
final org.bouncycastle.openssl.PEMReader this$0;
descriptor: Lorg/bouncycastle/openssl/PEMReader;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(org.bouncycastle.openssl.PEMReader, java.lang.String);
descriptor: (Lorg/bouncycastle/openssl/PEMReader;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 // org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser this
start local 2 // java.lang.String provider
0: .line 320
aload 0 /* this */
aload 1
putfield org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser.this$0:Lorg/bouncycastle/openssl/PEMReader;
1: .line 321
aload 0 /* this */
aload 1
aload 2 /* provider */
invokespecial org.bouncycastle.openssl.PEMReader$KeyPairParser.<init>:(Lorg/bouncycastle/openssl/PEMReader;Ljava/lang/String;)V
2: .line 322
return
end local 2 // java.lang.String provider
end local 0 // org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/openssl/PEMReader$ECDSAKeyPairParser;
0 3 2 provider Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
provider
public java.lang.Object parseObject(org.bouncycastle.util.io.pem.PemObject);
descriptor: (Lorg/bouncycastle/util/io/pem/PemObject;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=2
start local 0 // org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser this
start local 1 // org.bouncycastle.util.io.pem.PemObject obj
0: .line 329
aload 0 /* this */
aload 1 /* obj */
invokevirtual org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser.readKeyPair:(Lorg/bouncycastle/util/io/pem/PemObject;)Lorg/bouncycastle/asn1/ASN1Sequence;
astore 2 /* seq */
start local 2 // org.bouncycastle.asn1.ASN1Sequence seq
1: .line 331
new org.bouncycastle.asn1.sec.ECPrivateKeyStructure
dup
aload 2 /* seq */
invokespecial org.bouncycastle.asn1.sec.ECPrivateKeyStructure.<init>:(Lorg/bouncycastle/asn1/ASN1Sequence;)V
astore 3 /* pKey */
start local 3 // org.bouncycastle.asn1.sec.ECPrivateKeyStructure pKey
2: .line 332
new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
getstatic org.bouncycastle.asn1.x9.X9ObjectIdentifiers.id_ecPublicKey:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 3 /* pKey */
invokevirtual org.bouncycastle.asn1.sec.ECPrivateKeyStructure.getParameters:()Lorg/bouncycastle/asn1/ASN1Object;
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/DERObjectIdentifier;Lorg/bouncycastle/asn1/DEREncodable;)V
astore 4 /* algId */
start local 4 // org.bouncycastle.asn1.x509.AlgorithmIdentifier algId
3: .line 333
new org.bouncycastle.asn1.pkcs.PrivateKeyInfo
dup
aload 4 /* algId */
aload 3 /* pKey */
invokevirtual org.bouncycastle.asn1.sec.ECPrivateKeyStructure.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokespecial org.bouncycastle.asn1.pkcs.PrivateKeyInfo.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/DERObject;)V
astore 5 /* privInfo */
start local 5 // org.bouncycastle.asn1.pkcs.PrivateKeyInfo privInfo
4: .line 334
new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
dup
aload 4 /* algId */
aload 3 /* pKey */
invokevirtual org.bouncycastle.asn1.sec.ECPrivateKeyStructure.getPublicKey:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
invokespecial org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;[B)V
astore 6 /* pubInfo */
start local 6 // org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubInfo
5: .line 336
new java.security.spec.PKCS8EncodedKeySpec
dup
aload 5 /* privInfo */
invokevirtual org.bouncycastle.asn1.pkcs.PrivateKeyInfo.getEncoded:()[B
invokespecial java.security.spec.PKCS8EncodedKeySpec.<init>:([B)V
astore 7 /* privSpec */
start local 7 // java.security.spec.PKCS8EncodedKeySpec privSpec
6: .line 337
new java.security.spec.X509EncodedKeySpec
dup
aload 6 /* pubInfo */
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getEncoded:()[B
invokespecial java.security.spec.X509EncodedKeySpec.<init>:([B)V
astore 8 /* pubSpec */
start local 8 // java.security.spec.X509EncodedKeySpec pubSpec
7: .line 340
ldc "ECDSA"
aload 0 /* this */
getfield org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser.provider:Ljava/lang/String;
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyFactory;
astore 9 /* fact */
start local 9 // java.security.KeyFactory fact
8: .line 343
new java.security.KeyPair
dup
9: .line 344
aload 9 /* fact */
aload 8 /* pubSpec */
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
10: .line 345
aload 9 /* fact */
aload 7 /* privSpec */
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
11: .line 343
invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
12: areturn
end local 9 // java.security.KeyFactory fact
end local 8 // java.security.spec.X509EncodedKeySpec pubSpec
end local 7 // java.security.spec.PKCS8EncodedKeySpec privSpec
end local 6 // org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubInfo
end local 5 // org.bouncycastle.asn1.pkcs.PrivateKeyInfo privInfo
end local 4 // org.bouncycastle.asn1.x509.AlgorithmIdentifier algId
end local 3 // org.bouncycastle.asn1.sec.ECPrivateKeyStructure pKey
end local 2 // org.bouncycastle.asn1.ASN1Sequence seq
13: .line 347
StackMap locals:
StackMap stack: java.io.IOException
astore 2 /* e */
start local 2 // java.io.IOException e
14: .line 349
aload 2 /* e */
athrow
end local 2 // java.io.IOException e
15: .line 351
StackMap locals:
StackMap stack: java.lang.Exception
astore 2 /* e */
start local 2 // java.lang.Exception e
16: .line 353
new org.bouncycastle.openssl.PEMException
dup
17: .line 354
new java.lang.StringBuilder
dup
ldc "problem creating EC private key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2 /* e */
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2 /* e */
18: .line 353
invokespecial org.bouncycastle.openssl.PEMException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 // java.lang.Exception e
end local 1 // org.bouncycastle.util.io.pem.PemObject obj
end local 0 // org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser this
LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/bouncycastle/openssl/PEMReader$ECDSAKeyPairParser;
0 19 1 obj Lorg/bouncycastle/util/io/pem/PemObject;
1 13 2 seq Lorg/bouncycastle/asn1/ASN1Sequence;
2 13 3 pKey Lorg/bouncycastle/asn1/sec/ECPrivateKeyStructure;
3 13 4 algId Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
4 13 5 privInfo Lorg/bouncycastle/asn1/pkcs/PrivateKeyInfo;
5 13 6 pubInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
6 13 7 privSpec Ljava/security/spec/PKCS8EncodedKeySpec;
7 13 8 pubSpec Ljava/security/spec/X509EncodedKeySpec;
8 13 9 fact Ljava/security/KeyFactory;
14 15 2 e Ljava/io/IOException;
16 19 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 12 13 Class java.io.IOException
0 12 15 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
obj
}
SourceFile: "PEMReader.java"
NestHost: org.bouncycastle.openssl.PEMReader
InnerClasses:
private ECDSAKeyPairParser = org.bouncycastle.openssl.PEMReader$ECDSAKeyPairParser of org.bouncycastle.openssl.PEMReader
private abstract KeyPairParser = org.bouncycastle.openssl.PEMReader$KeyPairParser of org.bouncycastle.openssl.PEMReader