public final class sun.security.ec.ECPrivateKeyImpl extends sun.security.pkcs.PKCS8Key implements java.security.interfaces.ECPrivateKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.ECPrivateKeyImpl
super_class: sun.security.pkcs.PKCS8Key
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 88695385615075129
private java.math.BigInteger s;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
private java.security.spec.ECParameterSpec params;
descriptor: Ljava/security/spec/ECParameterSpec;
flags: (0x0002) ACC_PRIVATE
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.pkcs.PKCS8Key.<init>:()V
1: aload 0
aload 1
invokevirtual sun.security.ec.ECPrivateKeyImpl.decode:([B)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 3 1 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
void <init>(java.math.BigInteger, java.security.spec.ECParameterSpec);
descriptor: (Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.pkcs.PKCS8Key.<init>:()V
1: aload 0
aload 1
putfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
2: aload 0
aload 2
putfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
3: aload 0
new sun.security.x509.AlgorithmId
dup
4: getstatic sun.security.x509.AlgorithmId.EC_oid:Lsun/security/util/ObjectIdentifier;
aload 2
invokestatic sun.security.util.ECParameters.getAlgorithmParameters:(Ljava/security/spec/ECParameterSpec;)Ljava/security/AlgorithmParameters;
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;Ljava/security/AlgorithmParameters;)V
5: putfield sun.security.ec.ECPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
6: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 7: aload 3
iconst_1
invokevirtual sun.security.util.DerOutputStream.putInteger:(I)V
8: aload 1
invokevirtual java.math.BigInteger.toByteArray:()[B
invokestatic sun.security.util.ECUtil.trimZeroes:([B)[B
astore 4
start local 4 9: aload 3
aload 4
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
10: new sun.security.util.DerValue
dup
bipush 48
aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial sun.security.util.DerValue.<init>:(B[B)V
11: astore 5
start local 5 12: aload 0
aload 5
invokevirtual sun.security.util.DerValue.toByteArray:()[B
putfield sun.security.ec.ECPrivateKeyImpl.key:[B
end local 5 end local 4 end local 3 13: goto 16
StackMap locals: sun.security.ec.ECPrivateKeyImpl java.math.BigInteger java.security.spec.ECParameterSpec
StackMap stack: java.io.IOException
14: astore 3
start local 3 15: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 17 1 s Ljava/math/BigInteger;
0 17 2 params Ljava/security/spec/ECParameterSpec;
7 13 3 out Lsun/security/util/DerOutputStream;
9 13 4 privBytes [B
12 13 5 val Lsun/security/util/DerValue;
15 16 3 exc Ljava/io/IOException;
Exception table:
from to target type
6 13 14 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
s
params
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "EC"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ECPrivateKeyImpl;
public java.math.BigInteger getS();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ECPrivateKeyImpl;
public java.security.spec.ECParameterSpec getParams();
descriptor: ()Ljava/security/spec/ECParameterSpec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/ECPrivateKeyImpl;
protected void parseKeyBits();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=1
start local 0 0: new sun.security.util.DerInputStream
dup
aload 0
getfield sun.security.ec.ECPrivateKeyImpl.key:[B
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 1
start local 1 1: aload 1
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 2
start local 2 2: aload 2
getfield sun.security.util.DerValue.tag:B
bipush 48
if_icmpeq 4
3: new java.io.IOException
dup
ldc "Not a SEQUENCE"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: sun.security.util.DerInputStream sun.security.util.DerValue
StackMap stack:
aload 2
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
astore 3
start local 3 5: aload 3
invokevirtual sun.security.util.DerInputStream.getInteger:()I
istore 4
start local 4 6: iload 4
iconst_1
if_icmpeq 8
7: new java.io.IOException
dup
ldc "Version must be 1"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: sun.security.util.DerInputStream int
StackMap stack:
aload 3
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
astore 5
start local 5 9: aload 0
new java.math.BigInteger
dup
iconst_1
aload 5
invokespecial java.math.BigInteger.<init>:(I[B)V
putfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
10: goto 15
11: StackMap locals: byte[]
StackMap stack:
aload 3
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 6
start local 6 12: aload 6
iconst_0
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifne 15
13: aload 6
iconst_1
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifne 15
14: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected value: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 6 15: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 11
16: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
invokevirtual sun.security.x509.AlgorithmId.getParameters:()Ljava/security/AlgorithmParameters;
astore 6
start local 6 17: aload 6
ifnonnull 19
18: new java.security.InvalidKeyException
dup
ldc "EC domain parameters must be encoded in the algorithm identifier"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.security.AlgorithmParameters
StackMap stack:
aload 0
aload 6
ldc Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast java.security.spec.ECParameterSpec
putfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 20: goto 25
StackMap locals: sun.security.ec.ECPrivateKeyImpl
StackMap stack: java.io.IOException
21: astore 1
start local 1 22: new java.security.InvalidKeyException
dup
ldc "Invalid EC private key"
aload 1
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 23: StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
astore 1
start local 1 24: new java.security.InvalidKeyException
dup
ldc "Invalid EC private key"
aload 1
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 25: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/security/ec/ECPrivateKeyImpl;
1 20 1 in Lsun/security/util/DerInputStream;
2 20 2 derValue Lsun/security/util/DerValue;
5 20 3 data Lsun/security/util/DerInputStream;
6 20 4 version I
9 20 5 privData [B
12 15 6 value Lsun/security/util/DerValue;
17 20 6 algParams Ljava/security/AlgorithmParameters;
22 23 1 e Ljava/io/IOException;
24 25 1 e Ljava/security/spec/InvalidParameterSpecException;
Exception table:
from to target type
0 20 21 Class java.io.IOException
0 20 23 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.security.InvalidKeyException
}
SourceFile: "ECPrivateKeyImpl.java"