final class sun.security.pkcs11.P11DHKeyFactory extends sun.security.pkcs11.P11KeyFactory
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11DHKeyFactory
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/P11DHKeyFactory;
0 2 1 token Lsun/security/pkcs11/Token;
0 2 2 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
token
algorithm
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 javax.crypto.interfaces.DHPublicKey
ifeq 9
1: aload 1
checkcast javax.crypto.interfaces.DHPublicKey
astore 2
start local 2 2: aload 2
invokeinterface javax.crypto.interfaces.DHPublicKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
astore 3
start local 3 3: aload 0
4: aload 2
invokeinterface javax.crypto.interfaces.DHPublicKey.getY:()Ljava/math/BigInteger;
5: aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
6: aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
7: invokevirtual sun.security.pkcs11.P11DHKeyFactory.generatePublic:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
8: areturn
end local 3 end local 2 9: 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 16
10: aload 0
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implGetSoftwareFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 11: aload 2
aload 1
invokevirtual java.security.KeyFactory.translateKey:(Ljava/security/Key;)Ljava/security/Key;
checkcast java.security.PublicKey
astore 1
12: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
13: areturn
end local 2 14: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 15: new java.security.InvalidKeyException
dup
ldc "Could not translate key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PublicKey must be instance of DHPublicKey or have X.509 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 18: new java.security.InvalidKeyException
dup
ldc "Could not create DH 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 19 0 this Lsun/security/pkcs11/P11DHKeyFactory;
0 19 1 key Ljava/security/PublicKey;
2 9 2 dhKey Ljavax/crypto/interfaces/DHPublicKey;
3 9 3 params Ljavax/crypto/spec/DHParameterSpec;
11 14 2 factory Ljava/security/KeyFactory;
15 16 2 e Ljava/security/GeneralSecurityException;
18 19 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
10 13 14 Class java.security.GeneralSecurityException
0 8 17 Class sun.security.pkcs11.wrapper.PKCS11Exception
9 13 17 Class sun.security.pkcs11.wrapper.PKCS11Exception
14 17 17 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 javax.crypto.interfaces.DHPrivateKey
ifeq 9
1: aload 1
checkcast javax.crypto.interfaces.DHPrivateKey
astore 2
start local 2 2: aload 2
invokeinterface javax.crypto.interfaces.DHPrivateKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
astore 3
start local 3 3: aload 0
4: aload 2
invokeinterface javax.crypto.interfaces.DHPrivateKey.getX:()Ljava/math/BigInteger;
5: aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
6: aload 3
invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
7: invokevirtual sun.security.pkcs11.P11DHKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
8: areturn
end local 3 end local 2 9: 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 16
10: aload 0
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implGetSoftwareFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 11: aload 2
aload 1
invokevirtual java.security.KeyFactory.translateKey:(Ljava/security/Key;)Ljava/security/Key;
checkcast java.security.PrivateKey
astore 1
12: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
13: areturn
end local 2 14: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 15: new java.security.InvalidKeyException
dup
ldc "Could not translate key"
aload 2
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PrivateKey must be instance of DHPrivateKey or have PKCS#8 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 18: new java.security.InvalidKeyException
dup
ldc "Could not create DH 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 19 0 this Lsun/security/pkcs11/P11DHKeyFactory;
0 19 1 key Ljava/security/PrivateKey;
2 9 2 dhKey Ljavax/crypto/interfaces/DHPrivateKey;
3 9 3 params Ljavax/crypto/spec/DHParameterSpec;
11 14 2 factory Ljava/security/KeyFactory;
15 16 2 e Ljava/security/GeneralSecurityException;
18 19 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
10 13 14 Class java.security.GeneralSecurityException
0 8 17 Class sun.security.pkcs11.wrapper.PKCS11Exception
9 13 17 Class sun.security.pkcs11.wrapper.PKCS11Exception
14 17 17 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.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.X509EncodedKeySpec
ifeq 10
2: aload 0
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implGetSoftwareFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 3: aload 2
aload 1
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
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 DH 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 javax.crypto.spec.DHPublicKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only DHPublicKeySpec and X509EncodedKeySpec supported for DH public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.spec.DHPublicKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual javax.crypto.spec.DHPublicKeySpec.getY:()Ljava/math/BigInteger;
15: aload 2
invokevirtual javax.crypto.spec.DHPublicKeySpec.getP:()Ljava/math/BigInteger;
16: aload 2
invokevirtual javax.crypto.spec.DHPublicKeySpec.getG:()Ljava/math/BigInteger;
17: invokevirtual sun.security.pkcs11.P11DHKeyFactory.generatePublic:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
18: areturn
end local 2 19: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 20: new java.security.spec.InvalidKeySpecException
dup
21: ldc "Could not create DH public key"
aload 2
22: 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 23 0 this Lsun/security/pkcs11/P11DHKeyFactory;
0 23 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 factory Ljava/security/KeyFactory;
4 6 3 key Ljava/security/PublicKey;
7 10 2 e Ljava/security/GeneralSecurityException;
13 19 2 ds Ljavax/crypto/spec/DHPublicKeySpec;
20 23 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.GeneralSecurityException
12 18 19 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.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.PKCS8EncodedKeySpec
ifeq 10
2: aload 0
invokevirtual sun.security.pkcs11.P11DHKeyFactory.implGetSoftwareFactory:()Ljava/security/KeyFactory;
astore 2
start local 2 3: aload 2
aload 1
invokevirtual java.security.KeyFactory.generatePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11DHKeyFactory.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 DH 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 javax.crypto.spec.DHPrivateKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only DHPrivateKeySpec and PKCS8EncodedKeySpec supported for DH private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.spec.DHPrivateKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual javax.crypto.spec.DHPrivateKeySpec.getX:()Ljava/math/BigInteger;
15: aload 2
invokevirtual javax.crypto.spec.DHPrivateKeySpec.getP:()Ljava/math/BigInteger;
16: aload 2
invokevirtual javax.crypto.spec.DHPrivateKeySpec.getG:()Ljava/math/BigInteger;
17: invokevirtual sun.security.pkcs11.P11DHKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
18: areturn
end local 2 19: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 20: new java.security.spec.InvalidKeySpecException
dup
21: ldc "Could not create DH private key"
aload 2
22: 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 23 0 this Lsun/security/pkcs11/P11DHKeyFactory;
0 23 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 factory Ljava/security/KeyFactory;
4 6 3 key Ljava/security/PrivateKey;
7 10 2 e Ljava/security/GeneralSecurityException;
13 19 2 ds Ljavax/crypto/spec/DHPrivateKeySpec;
20 23 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.GeneralSecurityException
12 18 19 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PublicKey generatePublic(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_5
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
1: 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
2: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
ldc 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
3: 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
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
aload 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_4
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
6: astore 4
start local 4 7: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
8: ldc "import"
ldc 2
ldc 2
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.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 5
12: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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 "DH"
aload 2
invokevirtual java.math.BigInteger.bitLength:()I
aload 4
14: invokestatic sun.security.pkcs11.P11Key.publicKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PublicKey;
astore 9
15: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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.P11DHKeyFactory java.math.BigInteger java.math.BigInteger java.math.BigInteger sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 8
18: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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/P11DHKeyFactory;
0 20 1 y Ljava/math/BigInteger;
0 20 2 p Ljava/math/BigInteger;
0 20 3 g Ljava/math/BigInteger;
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
y
p
g
private java.security.PrivateKey generatePrivate(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_5
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
1: 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
2: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
ldc 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
3: 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
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
aload 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_4
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
6: astore 4
start local 4 7: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
8: ldc "import"
ldc 3
ldc 2
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.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 5
12: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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 "DH"
aload 2
invokevirtual java.math.BigInteger.bitLength:()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.P11DHKeyFactory.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.P11DHKeyFactory java.math.BigInteger java.math.BigInteger java.math.BigInteger sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 8
18: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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/P11DHKeyFactory;
0 20 1 x Ljava/math/BigInteger;
0 20 2 p Ljava/math/BigInteger;
0 20 3 g Ljava/math/BigInteger;
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
x
p
g
<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=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljavax/crypto/spec/DHPublicKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_3
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 304
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_2
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
6: astore 4
start local 4 7: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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
8: new javax.crypto.spec.DHPublicKeySpec
dup
9: aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
10: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
11: aload 4
iconst_2
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
12: invokespecial javax.crypto.spec.DHPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 5
start local 5 13: aload 2
aload 5
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 5 end local 4 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only DHPublicKeySpec and X509EncodedKeySpec supported for DH 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 15 0 this Lsun/security/pkcs11/P11DHKeyFactory;
0 15 1 key Lsun/security/pkcs11/P11Key;
0 15 2 keySpec Ljava/lang/Class<TT;>;
0 15 3 session [Lsun/security/pkcs11/Session;
7 14 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
13 14 5 spec Ljava/security/spec/KeySpec;
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 Ljavax/crypto/spec/DHPrivateKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_3
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 304
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_2
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
6: astore 4
start local 4 7: aload 0
getfield sun.security.pkcs11.P11DHKeyFactory.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
8: new javax.crypto.spec.DHPrivateKeySpec
dup
9: aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
10: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
11: aload 4
iconst_2
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
12: invokespecial javax.crypto.spec.DHPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 5
start local 5 13: aload 2
aload 5
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 5 end local 4 14: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only DHPrivateKeySpec and PKCS8EncodedKeySpec supported for DH 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/P11DHKeyFactory;
0 15 1 key Lsun/security/pkcs11/P11Key;
0 15 2 keySpec Ljava/lang/Class<TT;>;
0 15 3 session [Lsun/security/pkcs11/Session;
7 14 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
13 14 5 spec Ljava/security/spec/KeySpec;
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 "DH"
invokestatic sun.security.pkcs11.P11Util.getSunJceProvider:()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/P11DHKeyFactory;
Exceptions:
throws java.security.GeneralSecurityException
}
SourceFile: "P11DHKeyFactory.java"