public final class sun.security.pkcs11.P11TlsMasterSecretGenerator extends javax.crypto.KeyGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11TlsMasterSecretGenerator
super_class: javax.crypto.KeyGeneratorSpi
{
private static final java.lang.String MSG;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "TlsMasterSecretGenerator must be initialized using a TlsMasterSecretParameterSpec"
private final sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long mechanism;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.security.internal.spec.TlsMasterSecretParameterSpec spec;
descriptor: Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.P11Key p11Key;
descriptor: Lsun/security/pkcs11/P11Key;
flags: (0x0002) ACC_PRIVATE
int version;
descriptor: I
flags: (0x0000)
void <init>(sun.security.pkcs11.Token, java.lang.String, long);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;J)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial javax.crypto.KeyGeneratorSpi.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
2: aload 0
aload 2
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.algorithm:Ljava/lang/String;
3: aload 0
lload 3
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.mechanism:J
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/P11TlsMasterSecretGenerator;
0 5 1 token Lsun/security/pkcs11/Token;
0 5 2 algorithm Ljava/lang/String;
0 5 3 mechanism J
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
token
algorithm
mechanism
protected void engineInit(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.security.InvalidParameterException
dup
ldc "TlsMasterSecretGenerator must be initialized using a TlsMasterSecretParameterSpec"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11TlsMasterSecretGenerator;
0 1 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
random
protected void engineInit(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof sun.security.internal.spec.TlsMasterSecretParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "TlsMasterSecretGenerator must be initialized using a TlsMasterSecretParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast sun.security.internal.spec.TlsMasterSecretParameterSpec
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
3: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPremasterSecret:()Ljavax/crypto/SecretKey;
astore 3
start local 3 4: aload 0
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
aload 3
aconst_null
invokestatic sun.security.pkcs11.P11SecretKeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.p11Key:Lsun/security/pkcs11/P11Key;
5: goto 8
StackMap locals: sun.security.pkcs11.P11TlsMasterSecretGenerator java.security.spec.AlgorithmParameterSpec java.security.SecureRandom javax.crypto.SecretKey
StackMap stack: java.security.InvalidKeyException
6: astore 4
start local 4 7: new java.security.InvalidAlgorithmParameterException
dup
ldc "init() failed"
aload 4
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 8: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getMajorVersion:()I
bipush 8
ishl
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getMinorVersion:()I
ior
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.version:I
9: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.version:I
sipush 768
if_icmplt 10
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.version:I
sipush 770
if_icmple 13
10: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
11: ldc "Only SSL 3.0, TLS 1.0, and TLS 1.1 supported"
12: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
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/P11TlsMasterSecretGenerator;
0 14 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 14 2 random Ljava/security/SecureRandom;
4 14 3 key Ljavax/crypto/SecretKey;
7 8 4 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
4 5 6 Class java.security.InvalidKeyException
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
protected void engineInit(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.security.InvalidParameterException
dup
ldc "TlsMasterSecretGenerator must be initialized using a TlsMasterSecretParameterSpec"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11TlsMasterSecretGenerator;
0 1 1 keysize I
0 1 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
keysize
random
protected javax.crypto.SecretKey engineGenerateKey();
descriptor: ()Ljavax/crypto/SecretKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=15, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
ifnonnull 4
1: new java.lang.IllegalStateException
dup
2: ldc "TlsMasterSecretGenerator must be initialized"
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.getAlgorithm:()Ljava/lang/String;
ldc "TlsRsaPremasterSecret"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
5: aload 0
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.version:I
sipush 768
if_icmpne 6
ldc 881
goto 7
6: StackMap locals:
StackMap stack: sun.security.pkcs11.P11TlsMasterSecretGenerator
ldc 885
7: StackMap locals: sun.security.pkcs11.P11TlsMasterSecretGenerator
StackMap stack: sun.security.pkcs11.P11TlsMasterSecretGenerator long
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.mechanism:J
8: new sun.security.pkcs11.wrapper.CK_VERSION
dup
iconst_0
iconst_0
invokespecial sun.security.pkcs11.wrapper.CK_VERSION.<init>:(II)V
astore 1
start local 1 9: goto 14
end local 1 10: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.version:I
sipush 768
if_icmpne 11
ldc 883
goto 12
11: StackMap locals:
StackMap stack: sun.security.pkcs11.P11TlsMasterSecretGenerator
ldc 887
12: StackMap locals: sun.security.pkcs11.P11TlsMasterSecretGenerator
StackMap stack: sun.security.pkcs11.P11TlsMasterSecretGenerator long
putfield sun.security.pkcs11.P11TlsMasterSecretGenerator.mechanism:J
13: aconst_null
astore 1
start local 1 14: StackMap locals: sun.security.pkcs11.wrapper.CK_VERSION
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getClientRandom:()[B
astore 2
start local 2 15: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getServerRandom:()[B
astore 3
start local 3 16: new sun.security.pkcs11.wrapper.CK_SSL3_RANDOM_DATA
dup
aload 2
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_SSL3_RANDOM_DATA.<init>:([B[B)V
17: astore 4
start local 4 18: new sun.security.pkcs11.wrapper.CK_SSL3_MASTER_KEY_DERIVE_PARAMS
dup
aload 4
aload 1
invokespecial sun.security.pkcs11.wrapper.CK_SSL3_MASTER_KEY_DERIVE_PARAMS.<init>:(Lsun/security/pkcs11/wrapper/CK_SSL3_RANDOM_DATA;Lsun/security/pkcs11/wrapper/CK_VERSION;)V
19: astore 5
start local 5 20: aconst_null
astore 6
start local 6 21: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 6
22: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
ldc "generate"
23: ldc 4
ldc 16
iconst_0
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
24: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 7
start local 7 25: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.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
26: new sun.security.pkcs11.wrapper.CK_MECHANISM
dup
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.mechanism:J
aload 5
invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_SSL3_MASTER_KEY_DERIVE_PARAMS;)V
aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.p11Key:Lsun/security/pkcs11/P11Key;
getfield sun.security.pkcs11.P11Key.keyID:J
aload 7
27: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 8
start local 8 28: aload 5
getfield sun.security.pkcs11.wrapper.CK_SSL3_MASTER_KEY_DERIVE_PARAMS.pVersion:Lsun/security/pkcs11/wrapper/CK_VERSION;
astore 1
29: aload 1
ifnonnull 33
30: iconst_m1
istore 10
start local 10 31: iconst_m1
istore 11
start local 11 32: goto 35
end local 11 end local 10 33: StackMap locals: sun.security.pkcs11.P11TlsMasterSecretGenerator sun.security.pkcs11.wrapper.CK_VERSION byte[] byte[] sun.security.pkcs11.wrapper.CK_SSL3_RANDOM_DATA sun.security.pkcs11.wrapper.CK_SSL3_MASTER_KEY_DERIVE_PARAMS sun.security.pkcs11.Session sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] long
StackMap stack:
aload 1
getfield sun.security.pkcs11.wrapper.CK_VERSION.major:B
istore 10
start local 10 34: aload 1
getfield sun.security.pkcs11.wrapper.CK_VERSION.minor:B
istore 11
start local 11 35: StackMap locals: int int
StackMap stack:
aload 6
lload 8
36: ldc "TlsMasterSecret"
sipush 384
aload 7
iload 10
iload 11
37: invokestatic sun.security.pkcs11.P11Key.masterSecretKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;II)Ljavax/crypto/SecretKey;
astore 12
start local 12 38: aload 12
astore 14
39: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
40: aload 14
areturn
end local 12 end local 11 end local 10 end local 8 end local 7 41: StackMap locals: sun.security.pkcs11.P11TlsMasterSecretGenerator sun.security.pkcs11.wrapper.CK_VERSION byte[] byte[] sun.security.pkcs11.wrapper.CK_SSL3_RANDOM_DATA sun.security.pkcs11.wrapper.CK_SSL3_MASTER_KEY_DERIVE_PARAMS sun.security.pkcs11.Session
StackMap stack: java.lang.Exception
astore 7
start local 7 42: new java.security.ProviderException
dup
ldc "Could not generate key"
aload 7
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 43: StackMap locals:
StackMap stack: java.lang.Throwable
astore 13
44: aload 0
getfield sun.security.pkcs11.P11TlsMasterSecretGenerator.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
45: aload 13
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 46 0 this Lsun/security/pkcs11/P11TlsMasterSecretGenerator;
9 10 1 ckVersion Lsun/security/pkcs11/wrapper/CK_VERSION;
14 46 1 ckVersion Lsun/security/pkcs11/wrapper/CK_VERSION;
15 46 2 clientRandom [B
16 46 3 serverRandom [B
18 46 4 random Lsun/security/pkcs11/wrapper/CK_SSL3_RANDOM_DATA;
20 46 5 params Lsun/security/pkcs11/wrapper/CK_SSL3_MASTER_KEY_DERIVE_PARAMS;
21 46 6 session Lsun/security/pkcs11/Session;
25 41 7 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
28 41 8 keyID J
31 33 10 major I
34 41 10 major I
32 33 11 minor I
35 41 11 minor I
38 41 12 key Ljavax/crypto/SecretKey;
42 43 7 e Ljava/lang/Exception;
Exception table:
from to target type
21 39 41 Class java.lang.Exception
21 39 43 any
41 43 43 any
}
SourceFile: "P11TlsMasterSecretGenerator.java"