final class sun.security.pkcs11.P11ECKeyFactory extends sun.security.pkcs11.P11KeyFactory
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11ECKeyFactory
super_class: sun.security.pkcs11.P11KeyFactory
{
private static java.security.Provider sunECprovider;
descriptor: Ljava/security/Provider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.security.Provider getSunECProvider();
descriptor: ()Ljava/security/Provider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic sun.security.pkcs11.P11ECKeyFactory.sunECprovider:Ljava/security/Provider;
ifnonnull 4
1: ldc "SunEC"
invokestatic java.security.Security.getProvider:(Ljava/lang/String;)Ljava/security/Provider;
putstatic sun.security.pkcs11.P11ECKeyFactory.sunECprovider:Ljava/security/Provider;
2: getstatic sun.security.pkcs11.P11ECKeyFactory.sunECprovider:Ljava/security/Provider;
ifnonnull 4
3: new java.lang.RuntimeException
dup
ldc "Cannot load SunEC provider"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.P11ECKeyFactory.sunECprovider:Ljava/security/Provider;
areturn
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.security.pkcs11.Token, java.lang.String);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.security.pkcs11.P11KeyFactory.<init>:(Lsun/security/pkcs11/Token;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 2 1 token Lsun/security/pkcs11/Token;
0 2 2 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
token
algorithm
static java.security.spec.ECParameterSpec getECParameterSpec(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/spec/ECParameterSpec;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 0
invokestatic sun.security.util.ECUtil.getECParameterSpec:(Ljava/security/Provider;Ljava/lang/String;)Ljava/security/spec/ECParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
static java.security.spec.ECParameterSpec getECParameterSpec(int);
descriptor: (I)Ljava/security/spec/ECParameterSpec;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
iload 0
invokestatic sun.security.util.ECUtil.getECParameterSpec:(Ljava/security/Provider;I)Ljava/security/spec/ECParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 keySize I
MethodParameters:
Name Flags
keySize
static java.security.spec.ECParameterSpec getECParameterSpec(java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/spec/ECParameterSpec;)Ljava/security/spec/ECParameterSpec;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 0
invokestatic sun.security.util.ECUtil.getECParameterSpec:(Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)Ljava/security/spec/ECParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 spec Ljava/security/spec/ECParameterSpec;
MethodParameters:
Name Flags
spec
static java.security.spec.ECParameterSpec decodeParameters(byte[]);
descriptor: ([B)Ljava/security/spec/ECParameterSpec;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 0
invokestatic sun.security.util.ECUtil.getECParameterSpec:(Ljava/security/Provider;[B)Ljava/security/spec/ECParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 params [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
params
static byte[] encodeParameters(java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/spec/ECParameterSpec;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 0
invokestatic sun.security.util.ECUtil.encodeECParameterSpec:(Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 params Ljava/security/spec/ECParameterSpec;
MethodParameters:
Name Flags
params
static java.security.spec.ECPoint decodePoint(byte[], java.security.spec.EllipticCurve);
descriptor: ([BLjava/security/spec/EllipticCurve;)Ljava/security/spec/ECPoint;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic sun.security.util.ECUtil.decodePoint:([BLjava/security/spec/EllipticCurve;)Ljava/security/spec/ECPoint;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 encoded [B
0 1 1 curve Ljava/security/spec/EllipticCurve;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoded
curve
static byte[] getEncodedPublicValue(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
instanceof java.security.interfaces.ECPublicKey
ifeq 5
1: aload 0
checkcast java.security.interfaces.ECPublicKey
astore 1
start local 1 2: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
astore 2
start local 2 3: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
astore 3
start local 3 4: aload 2
aload 3
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.util.ECUtil.encodePoint:(Ljava/security/spec/ECPoint;Ljava/security/spec/EllipticCurve;)[B
areturn
end local 3 end local 2 end local 1 5: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
6: new java.lang.StringBuilder
dup
ldc "Key class not yet supported: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key Ljava/security/PublicKey;
2 5 1 ecKey Ljava/security/interfaces/ECPublicKey;
3 5 2 w Ljava/security/spec/ECPoint;
4 5 3 params Ljava/security/spec/ECParameterSpec;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
java.security.PublicKey implTranslatePublicKey(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)Ljava/security/PublicKey;
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.ECPublicKey
ifeq 7
1: aload 1
checkcast java.security.interfaces.ECPublicKey
astore 2
start local 2 2: aload 0
3: aload 2
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
4: aload 2
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
5: invokevirtual sun.security.pkcs11.P11ECKeyFactory.generatePublic:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)Ljava/security/PublicKey;
6: areturn
end local 2 7: StackMap locals:
StackMap stack:
ldc "X.509"
aload 1
invokeinterface java.security.PublicKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
8: aload 1
invokeinterface java.security.PublicKey.getEncoded:()[B
astore 2
start local 2 9: aload 2
invokestatic sun.security.util.ECUtil.decodeX509ECPublicKey:([B)Ljava/security/interfaces/ECPublicKey;
astore 1
10: goto 13
StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.PublicKey byte[]
StackMap stack: java.security.spec.InvalidKeySpecException
11: astore 3
start local 3 12: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 13: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
14: areturn
end local 2 15: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PublicKey must be instance of ECPublicKey or have X.509 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 17: new java.security.InvalidKeyException
dup
ldc "Could not create EC public key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 18 1 key Ljava/security/PublicKey;
2 7 2 ecKey Ljava/security/interfaces/ECPublicKey;
9 15 2 encoded [B
12 13 3 ikse Ljava/security/spec/InvalidKeySpecException;
17 18 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
9 10 11 Class java.security.spec.InvalidKeySpecException
0 6 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
7 14 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
15 16 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
java.security.PrivateKey implTranslatePrivateKey(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.ECPrivateKey
ifeq 7
1: aload 1
checkcast java.security.interfaces.ECPrivateKey
astore 2
start local 2 2: aload 0
3: aload 2
invokeinterface java.security.interfaces.ECPrivateKey.getS:()Ljava/math/BigInteger;
4: aload 2
invokeinterface java.security.interfaces.ECPrivateKey.getParams:()Ljava/security/spec/ECParameterSpec;
5: invokevirtual sun.security.pkcs11.P11ECKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)Ljava/security/PrivateKey;
6: areturn
end local 2 7: StackMap locals:
StackMap stack:
ldc "PKCS#8"
aload 1
invokeinterface java.security.PrivateKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
8: aload 1
invokeinterface java.security.PrivateKey.getEncoded:()[B
astore 2
start local 2 9: aload 2
invokestatic sun.security.util.ECUtil.decodePKCS8ECPrivateKey:([B)Ljava/security/interfaces/ECPrivateKey;
astore 1
10: goto 13
StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.PrivateKey byte[]
StackMap stack: java.security.spec.InvalidKeySpecException
11: astore 3
start local 3 12: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 13: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
14: areturn
end local 2 15: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PrivateKey must be instance of ECPrivateKey or have PKCS#8 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 17: new java.security.InvalidKeyException
dup
ldc "Could not create EC private key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 18 1 key Ljava/security/PrivateKey;
2 7 2 ecKey Ljava/security/interfaces/ECPrivateKey;
9 15 2 encoded [B
12 13 3 ikse Ljava/security/spec/InvalidKeySpecException;
17 18 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
9 10 11 Class java.security.spec.InvalidKeySpecException
0 6 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
7 14 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
15 16 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.X509EncodedKeySpec
ifeq 10
2: aload 1
checkcast java.security.spec.X509EncodedKeySpec
invokevirtual java.security.spec.X509EncodedKeySpec.getEncoded:()[B
astore 2
start local 2 3: aload 2
invokestatic sun.security.util.ECUtil.decodeX509ECPublicKey:([B)Ljava/security/interfaces/ECPublicKey;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
5: areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 2
start local 2 7: new java.security.spec.InvalidKeySpecException
dup
8: ldc "Could not create EC public key"
aload 2
9: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.ECPublicKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPublicKeySpec and X509EncodedKeySpec supported for EC public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.ECPublicKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual java.security.spec.ECPublicKeySpec.getW:()Ljava/security/spec/ECPoint;
15: aload 2
invokevirtual java.security.spec.ECPublicKeySpec.getParams:()Ljava/security/spec/ECParameterSpec;
16: invokevirtual sun.security.pkcs11.P11ECKeyFactory.generatePublic:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)Ljava/security/PublicKey;
17: areturn
end local 2 18: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 19: new java.security.spec.InvalidKeySpecException
dup
20: ldc "Could not create EC public key"
aload 2
21: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 22 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 encoded [B
4 6 3 key Ljava/security/PublicKey;
7 10 2 e Ljava/security/InvalidKeyException;
13 18 2 ec Ljava/security/spec/ECPublicKeySpec;
19 22 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.InvalidKeyException
12 17 18 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.PKCS8EncodedKeySpec
ifeq 10
2: aload 1
checkcast java.security.spec.PKCS8EncodedKeySpec
invokevirtual java.security.spec.PKCS8EncodedKeySpec.getEncoded:()[B
astore 2
start local 2 3: aload 2
invokestatic sun.security.util.ECUtil.decodePKCS8ECPrivateKey:([B)Ljava/security/interfaces/ECPrivateKey;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
5: areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 7: new java.security.spec.InvalidKeySpecException
dup
8: ldc "Could not create EC private key"
aload 2
9: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.ECPrivateKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPrivateKeySpec and PKCS8EncodedKeySpec supported for EC private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.ECPrivateKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual java.security.spec.ECPrivateKeySpec.getS:()Ljava/math/BigInteger;
15: aload 2
invokevirtual java.security.spec.ECPrivateKeySpec.getParams:()Ljava/security/spec/ECParameterSpec;
16: invokevirtual sun.security.pkcs11.P11ECKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)Ljava/security/PrivateKey;
17: areturn
end local 2 18: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 19: new java.security.spec.InvalidKeySpecException
dup
20: ldc "Could not create EC private key"
aload 2
21: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 22 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 encoded [B
4 6 3 key Ljava/security/PrivateKey;
7 10 2 e Ljava/security/GeneralSecurityException;
13 18 2 ec Ljava/security/spec/ECPrivateKeySpec;
19 22 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.GeneralSecurityException
12 17 18 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PublicKey generatePublic(java.security.spec.ECPoint, java.security.spec.ECParameterSpec);
descriptor: (Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=11, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 2
invokestatic sun.security.util.ECUtil.encodeECParameterSpec:(Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)[B
1: astore 3
start local 3 2: aload 1
aload 2
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.util.ECUtil.encodePoint:(Ljava/security/spec/ECPoint;Ljava/security/spec/EllipticCurve;)[B
3: astore 4
start local 4 4: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.config:Lsun/security/pkcs11/Config;
invokevirtual sun.security.pkcs11.Config.getUseEcX963Encoding:()Z
ifne 12
5: new sun.security.util.DerValue
dup
iconst_4
aload 4
invokespecial sun.security.util.DerValue.<init>:(B[B)V
6: invokevirtual sun.security.util.DerValue.toByteArray:()[B
7: astore 4
8: goto 12
StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.spec.ECPoint java.security.spec.ECParameterSpec byte[] byte[]
StackMap stack: java.io.IOException
9: astore 5
start local 5 10: new java.lang.IllegalArgumentException
dup
ldc "Could not DER encode point"
aload 5
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 12: StackMap locals:
StackMap stack:
iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
13: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
lconst_0
ldc 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_1
14: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
ldc 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
15: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 385
aload 4
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/lang/Object;)V
aastore
dup
iconst_3
16: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 384
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/lang/Object;)V
aastore
17: astore 5
start local 5 18: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
19: ldc "import"
ldc 2
ldc 3
aload 5
20: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 5
21: aconst_null
astore 6
start local 6 22: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 6
23: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 6
invokevirtual sun.security.pkcs11.Session.id:()J
aload 5
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 7
start local 7 24: aload 6
lload 7
ldc "EC"
aload 2
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
invokeinterface java.security.spec.ECField.getFieldSize:()I
aload 5
25: invokestatic sun.security.pkcs11.P11Key.publicKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PublicKey;
astore 10
26: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
27: aload 10
areturn
end local 7 28: StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.spec.ECPoint java.security.spec.ECParameterSpec byte[] byte[] sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 9
29: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
30: aload 9
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 31 1 point Ljava/security/spec/ECPoint;
0 31 2 params Ljava/security/spec/ECParameterSpec;
2 31 3 encodedParams [B
4 31 4 encodedPoint [B
10 12 5 e Ljava/io/IOException;
18 31 5 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
22 31 6 session Lsun/security/pkcs11/Session;
24 28 7 keyID J
Exception table:
from to target type
5 8 9 Class java.io.IOException
22 26 28 any
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
point
params
private java.security.PrivateKey generatePrivate(java.math.BigInteger, java.security.spec.ECParameterSpec);
descriptor: (Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=10, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
aload 2
invokestatic sun.security.util.ECUtil.encodeECParameterSpec:(Ljava/security/Provider;Ljava/security/spec/ECParameterSpec;)[B
1: astore 3
start local 3 2: iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
lconst_0
ldc 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_1
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
ldc 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
aload 1
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_3
6: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 384
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/lang/Object;)V
aastore
7: astore 4
start local 4 8: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
9: ldc "import"
ldc 3
ldc 3
aload 4
10: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 4
11: aconst_null
astore 5
start local 5 12: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 5
13: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 5
invokevirtual sun.security.pkcs11.Session.id:()J
aload 4
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 6
start local 6 14: aload 5
lload 6
ldc "EC"
aload 2
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
invokeinterface java.security.spec.ECField.getFieldSize:()I
aload 4
15: invokestatic sun.security.pkcs11.P11Key.privateKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PrivateKey;
astore 9
16: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
17: aload 9
areturn
end local 6 18: StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.math.BigInteger java.security.spec.ECParameterSpec byte[] sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 8
19: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
20: aload 8
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 21 1 s Ljava/math/BigInteger;
0 21 2 params Ljava/security/spec/ECParameterSpec;
2 21 3 encodedParams [B
8 21 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
12 21 5 session Lsun/security/pkcs11/Session;
14 18 6 keyID J
Exception table:
from to target type
12 16 18 any
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
s
params
<T extends java.security.spec.KeySpec> T implGetPublicKeySpec(sun.security.pkcs11.P11Key, java.lang.Class<T>, sun.security.pkcs11.Session[]);
descriptor: (Lsun/security/pkcs11/P11Key;Ljava/lang/Class;[Lsun/security/pkcs11/Session;)Ljava/security/spec/KeySpec;
flags: (0x0000)
Code:
stack=7, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljava/security/spec/ECPublicKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_2
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 385
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_1
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 384
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
5: astore 4
start local 4 6: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
iconst_0
aaload
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
getfield sun.security.pkcs11.P11Key.keyID:J
aload 4
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
7: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getByteArray:()[B
invokestatic sun.security.pkcs11.P11ECKeyFactory.decodeParameters:([B)Ljava/security/spec/ECParameterSpec;
astore 5
start local 5 8: aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getByteArray:()[B
aload 5
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.pkcs11.P11ECKeyFactory.decodePoint:([BLjava/security/spec/EllipticCurve;)Ljava/security/spec/ECPoint;
astore 6
start local 6 9: aload 2
new java.security.spec.ECPublicKeySpec
dup
aload 6
aload 5
invokespecial java.security.spec.ECPublicKeySpec.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
10: areturn
end local 6 end local 5 11: StackMap locals: sun.security.pkcs11.P11ECKeyFactory sun.security.pkcs11.P11Key java.lang.Class sun.security.pkcs11.Session[] sun.security.pkcs11.wrapper.CK_ATTRIBUTE[]
StackMap stack: java.io.IOException
astore 5
start local 5 12: new java.security.spec.InvalidKeySpecException
dup
ldc "Could not parse key"
aload 5
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 13: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPublicKeySpec and X509EncodedKeySpec supported for EC public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 14 1 key Lsun/security/pkcs11/P11Key;
0 14 2 keySpec Ljava/lang/Class<TT;>;
0 14 3 session [Lsun/security/pkcs11/Session;
6 13 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
8 11 5 params Ljava/security/spec/ECParameterSpec;
9 11 6 point Ljava/security/spec/ECPoint;
12 13 5 e Ljava/io/IOException;
Exception table:
from to target type
7 10 11 Class java.io.IOException
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception, java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Lsun/security/pkcs11/P11Key;Ljava/lang/Class<TT;>;[Lsun/security/pkcs11/Session;)TT;
MethodParameters:
Name Flags
key
keySpec
session
<T extends java.security.spec.KeySpec> T implGetPrivateKeySpec(sun.security.pkcs11.P11Key, java.lang.Class<T>, sun.security.pkcs11.Session[]);
descriptor: (Lsun/security/pkcs11/P11Key;Ljava/lang/Class;[Lsun/security/pkcs11/Session;)Ljava/security/spec/KeySpec;
flags: (0x0000)
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljava/security/spec/ECPrivateKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_2
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_1
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 384
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
5: astore 4
start local 4 6: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
iconst_0
aaload
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
getfield sun.security.pkcs11.P11Key.keyID:J
aload 4
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
7: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getByteArray:()[B
invokestatic sun.security.pkcs11.P11ECKeyFactory.decodeParameters:([B)Ljava/security/spec/ECParameterSpec;
astore 5
start local 5 8: aload 2
9: new java.security.spec.ECPrivateKeySpec
dup
aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
aload 5
invokespecial java.security.spec.ECPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/security/spec/ECParameterSpec;)V
10: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
11: areturn
end local 5 12: StackMap locals: sun.security.pkcs11.P11ECKeyFactory sun.security.pkcs11.P11Key java.lang.Class sun.security.pkcs11.Session[] sun.security.pkcs11.wrapper.CK_ATTRIBUTE[]
StackMap stack: java.io.IOException
astore 5
start local 5 13: new java.security.spec.InvalidKeySpecException
dup
ldc "Could not parse key"
aload 5
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only ECPrivateKeySpec and PKCS8EncodedKeySpec supported for EC private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 15 1 key Lsun/security/pkcs11/P11Key;
0 15 2 keySpec Ljava/lang/Class<TT;>;
0 15 3 session [Lsun/security/pkcs11/Session;
6 14 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
8 12 5 params Ljava/security/spec/ECParameterSpec;
13 14 5 e Ljava/io/IOException;
Exception table:
from to target type
7 11 12 Class java.io.IOException
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception, java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Lsun/security/pkcs11/P11Key;Ljava/lang/Class<TT;>;[Lsun/security/pkcs11/Session;)TT;
MethodParameters:
Name Flags
key
keySpec
session
java.security.KeyFactory implGetSoftwareFactory();
descriptor: ()Ljava/security/KeyFactory;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "EC"
invokestatic sun.security.pkcs11.P11ECKeyFactory.getSunECProvider:()Ljava/security/Provider;
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11ECKeyFactory;
Exceptions:
throws java.security.GeneralSecurityException
}
SourceFile: "P11ECKeyFactory.java"