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
{
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=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.security.ec.NamedCurve.getECParameterSpec:(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=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic sun.security.ec.NamedCurve.getECParameterSpec:(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=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.security.ec.ECParameters.getNamedCurve:(Ljava/security/spec/ECParameterSpec;)Lsun/security/ec/NamedCurve;
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=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.security.ec.ECParameters.decodeParameters:([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=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.security.ec.ECParameters.encodeParameters:(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.ec.ECParameters.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 sun.security.ec.ECPublicKeyImpl
ifeq 2
1: aload 0
checkcast sun.security.ec.ECPublicKeyImpl
invokevirtual sun.security.ec.ECPublicKeyImpl.getEncodedPublicValue:()[B
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.security.interfaces.ECPublicKey
ifeq 7
3: aload 0
checkcast java.security.interfaces.ECPublicKey
astore 1
start local 1 4: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
astore 2
start local 2 5: aload 1
invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
astore 3
start local 3 6: aload 2
aload 3
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.ec.ECParameters.encodePoint:(Ljava/security/spec/ECPoint;Ljava/security/spec/EllipticCurve;)[B
areturn
end local 3 end local 2 end local 1 7: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
8: 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;
9: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 key Ljava/security/PublicKey;
4 7 1 ecKey Ljava/security/interfaces/ECPublicKey;
5 7 2 w Ljava/security/spec/ECPoint;
6 7 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=3, 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 12
8: aload 1
invokeinterface java.security.PublicKey.getEncoded:()[B
astore 2
start local 2 9: new sun.security.ec.ECPublicKeyImpl
dup
aload 2
invokespecial sun.security.ec.ECPublicKeyImpl.<init>:([B)V
astore 1
10: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
11: areturn
end local 2 12: 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
13: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 14: 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 15 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 15 1 key Ljava/security/PublicKey;
2 7 2 ecKey Ljava/security/interfaces/ECPublicKey;
9 12 2 encoded [B
14 15 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 6 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
7 11 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
12 13 13 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=3, 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 12
8: aload 1
invokeinterface java.security.PrivateKey.getEncoded:()[B
astore 2
start local 2 9: new sun.security.ec.ECPrivateKeyImpl
dup
aload 2
invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:([B)V
astore 1
10: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
11: areturn
end local 2 12: 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
13: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 14: 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 15 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 15 1 key Ljava/security/PrivateKey;
2 7 2 ecKey Ljava/security/interfaces/ECPrivateKey;
9 12 2 encoded [B
14 15 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 6 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
7 11 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
12 13 13 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: new sun.security.ec.ECPublicKeyImpl
dup
aload 2
invokespecial sun.security.ec.ECPublicKeyImpl.<init>:([B)V
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: new sun.security.ec.ECPrivateKeyImpl
dup
aload 2
invokespecial sun.security.ec.ECPrivateKeyImpl.<init>:([B)V
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=12, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic sun.security.ec.ECParameters.encodeParameters:(Ljava/security/spec/ECParameterSpec;)[B
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: new sun.security.util.DerValue
dup
iconst_4
3: aload 1
aload 2
invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
invokestatic sun.security.ec.ECParameters.encodePoint:(Ljava/security/spec/ECPoint;Ljava/security/spec/EllipticCurve;)[B
4: invokespecial sun.security.util.DerValue.<init>:(B[B)V
astore 5
start local 5 5: aload 5
invokevirtual sun.security.util.DerValue.toByteArray:()[B
astore 4
6: goto 9
StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.spec.ECPoint java.security.spec.ECParameterSpec byte[] byte[] sun.security.util.DerValue
StackMap stack: java.io.IOException
7: astore 6
start local 6 8: new java.lang.IllegalArgumentException
dup
ldc "Could not DER encode point"
aload 6
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 9: StackMap locals:
StackMap stack:
iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
10: 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
11: 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
12: 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
13: 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
14: astore 6
start local 6 15: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
16: ldc "import"
ldc 2
ldc 3
aload 6
17: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 6
18: aconst_null
astore 7
start local 7 19: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 7
20: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 7
invokevirtual sun.security.pkcs11.Session.id:()J
aload 6
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 8
start local 8 21: aload 7
lload 8
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 6
22: invokestatic sun.security.pkcs11.P11Key.publicKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PublicKey;
astore 11
23: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 7
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
24: aload 11
areturn
end local 8 25: StackMap locals: sun.security.pkcs11.P11ECKeyFactory java.security.spec.ECPoint java.security.spec.ECParameterSpec byte[] byte[] sun.security.util.DerValue sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 10
26: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
aload 7
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
27: aload 10
athrow
end local 7 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 28 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 28 1 point Ljava/security/spec/ECPoint;
0 28 2 params Ljava/security/spec/ECParameterSpec;
1 28 3 encodedParams [B
2 28 4 encodedPoint [B
5 28 5 pkECPoint Lsun/security/util/DerValue;
8 9 6 e Ljava/io/IOException;
15 28 6 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
19 28 7 session Lsun/security/pkcs11/Session;
21 25 8 keyID J
Exception table:
from to target type
5 6 7 Class java.io.IOException
19 23 25 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: aload 2
invokestatic sun.security.ec.ECParameters.encodeParameters:(Ljava/security/spec/ECParameterSpec;)[B
astore 3
start local 3 1: iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
2: 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
3: 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
4: 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
5: 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
6: astore 4
start local 4 7: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
8: ldc "import"
ldc 3
ldc 3
aload 4
9: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 4
10: aconst_null
astore 5
start local 5 11: aload 0
getfield sun.security.pkcs11.P11ECKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 5
12: 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 13: 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
14: 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
15: 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
16: aload 9
areturn
end local 6 17: 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
18: 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
19: 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 20 0 this Lsun/security/pkcs11/P11ECKeyFactory;
0 20 1 s Ljava/math/BigInteger;
0 20 2 params Ljava/security/spec/ECParameterSpec;
1 20 3 encodedParams [B
7 20 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
11 20 5 session Lsun/security/pkcs11/Session;
13 17 6 keyID J
Exception table:
from to target type
11 15 17 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=1, locals=1, args_size=1
start local 0 0: getstatic sun.security.ec.ECKeyFactory.INSTANCE: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"