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 byte[] arrayS;
descriptor: [B
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
aload 1
invokespecial sun.security.pkcs.PKCS8Key.<init>:([B)V
1: aload 0
invokevirtual sun.security.ec.ECPrivateKeyImpl.parseKeyBits:()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=2, locals=3, 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
aload 1
invokevirtual sun.security.ec.ECPrivateKeyImpl.makeEncoding:(Ljava/math/BigInteger;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 5 1 s Ljava/math/BigInteger;
0 5 2 params Ljava/security/spec/ECParameterSpec;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
s
params
void <init>(byte[], java.security.spec.ECParameterSpec);
descriptor: ([BLjava/security/spec/ECParameterSpec;)V
flags: (0x0000)
Code:
stack=2, locals=3, 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
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
2: aload 0
aload 2
putfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
3: aload 0
aload 1
invokevirtual sun.security.ec.ECPrivateKeyImpl.makeEncoding:([B)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 5 1 s [B
0 5 2 params Ljava/security/spec/ECParameterSpec;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
s
params
private void makeEncoding(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
new sun.security.x509.AlgorithmId
dup
1: getstatic sun.security.x509.AlgorithmId.EC_oid:Lsun/security/util/ObjectIdentifier;
aload 0
getfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
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
2: putfield sun.security.ec.ECPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 4: aload 2
iconst_1
invokevirtual sun.security.util.DerOutputStream.putInteger:(I)V
5: aload 1
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
astore 3
start local 3 6: aload 3
invokestatic sun.security.util.ArrayUtil.reverse:([B)V
7: aload 2
aload 3
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
8: new sun.security.util.DerValue
dup
bipush 48
aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial sun.security.util.DerValue.<init>:(B[B)V
9: astore 4
start local 4 10: aload 0
aload 4
invokevirtual sun.security.util.DerValue.toByteArray:()[B
putfield sun.security.ec.ECPrivateKeyImpl.key:[B
end local 4 end local 3 end local 2 11: goto 14
StackMap locals:
StackMap stack: java.io.IOException
12: astore 2
start local 2 13: new java.security.InvalidKeyException
dup
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 15 1 s [B
4 11 2 out Lsun/security/util/DerOutputStream;
6 11 3 privBytes [B
10 11 4 val Lsun/security/util/DerValue;
13 14 2 exc Ljava/io/IOException;
Exception table:
from to target type
3 11 12 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
s
private void makeEncoding(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 0
new sun.security.x509.AlgorithmId
dup
getstatic sun.security.x509.AlgorithmId.EC_oid:Lsun/security/util/ObjectIdentifier;
1: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
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
2: putfield sun.security.ec.ECPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
3: aload 1
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 2
start local 2 4: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
invokevirtual java.security.spec.ECParameterSpec.getOrder:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
bipush 7
iadd
bipush 8
idiv
istore 3
start local 3 5: iload 3
newarray 8
astore 4
start local 4 6: aload 2
arraylength
aload 4
arraylength
isub
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 5
start local 5 7: aload 4
arraylength
aload 2
arraylength
isub
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 6
start local 6 8: aload 2
arraylength
aload 4
arraylength
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 9: aload 2
iload 5
aload 4
iload 6
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 8
start local 8 11: aload 8
iconst_1
invokevirtual sun.security.util.DerOutputStream.putInteger:(I)V
12: aload 8
aload 4
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
13: new sun.security.util.DerValue
dup
bipush 48
aload 8
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokespecial sun.security.util.DerValue.<init>:(B[B)V
14: astore 9
start local 9 15: aload 0
aload 9
invokevirtual sun.security.util.DerValue.toByteArray:()[B
putfield sun.security.ec.ECPrivateKeyImpl.key:[B
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 16: goto 19
StackMap locals:
StackMap stack: java.io.IOException
17: astore 2
start local 2 18: new java.lang.AssertionError
dup
ldc "Should not happen"
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/ec/ECPrivateKeyImpl;
0 20 1 s Ljava/math/BigInteger;
4 16 2 sArr [B
5 16 3 numOctets I
6 16 4 sOctets [B
7 16 5 inPos I
8 16 6 outPos I
9 16 7 length I
11 16 8 out Lsun/security/util/DerOutputStream;
15 16 9 val Lsun/security/util/DerValue;
18 19 2 exc Ljava/io/IOException;
Exception table:
from to target type
3 16 17 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
s
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=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
ifnonnull 4
1: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
astore 1
start local 1 2: aload 1
invokestatic sun.security.util.ArrayUtil.reverse:([B)V
3: aload 0
new java.math.BigInteger
dup
iconst_1
aload 1
invokespecial java.math.BigInteger.<init>:(I[B)V
putfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ec.ECPrivateKeyImpl.s:Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/ECPrivateKeyImpl;
2 4 1 arrCopy [B
public byte[] getArrayS();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
ifnonnull 2
1: aload 0
aload 0
invokevirtual sun.security.ec.ECPrivateKeyImpl.getS:()Ljava/math/BigInteger;
aload 0
getfield sun.security.ec.ECPrivateKeyImpl.params:Ljava/security/spec/ECParameterSpec;
invokestatic sun.security.util.ECUtil.sArray:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)[B
putfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 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;
private void parseKeyBits();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 5
invokestatic sun.security.util.ArrayUtil.reverse:([B)V
10: aload 0
aload 5
putfield sun.security.ec.ECPrivateKeyImpl.arrayS:[B
11: goto 16
12: StackMap locals: byte[]
StackMap stack:
aload 3
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 6
start local 6 13: aload 6
iconst_0
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifne 16
14: aload 6
iconst_1
invokevirtual sun.security.util.DerValue.isContextSpecific:(B)Z
ifne 16
15: 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 16: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 12
17: 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 18: aload 6
ifnonnull 20
19: 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
20: 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 21: goto 26
StackMap locals: sun.security.ec.ECPrivateKeyImpl
StackMap stack: java.io.IOException
22: astore 1
start local 1 23: 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 24: StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
astore 1
start local 1 25: 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 26: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/ec/ECPrivateKeyImpl;
1 21 1 in Lsun/security/util/DerInputStream;
2 21 2 derValue Lsun/security/util/DerValue;
5 21 3 data Lsun/security/util/DerInputStream;
6 21 4 version I
9 21 5 privData [B
13 16 6 value Lsun/security/util/DerValue;
18 21 6 algParams Ljava/security/AlgorithmParameters;
23 24 1 e Ljava/io/IOException;
25 26 1 e Ljava/security/spec/InvalidParameterSpecException;
Exception table:
from to target type
0 21 22 Class java.io.IOException
0 21 24 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.security.InvalidKeyException
}
SourceFile: "ECPrivateKeyImpl.java"