public final class com.sun.crypto.provider.TlsMasterSecretGenerator extends javax.crypto.KeyGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.TlsMasterSecretGenerator
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 sun.security.internal.spec.TlsMasterSecretParameterSpec spec;
descriptor: Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
flags: (0x0002) ACC_PRIVATE
private int protocolVersion;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.crypto.KeyGeneratorSpi.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
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 Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
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=3, locals=3, 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 com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
3: ldc "RAW"
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPremasterSecret:()Ljavax/crypto/SecretKey;
invokeinterface javax.crypto.SecretKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
4: new java.security.InvalidAlgorithmParameterException
dup
5: ldc "Key format must be RAW"
6: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getMajorVersion:()I
bipush 8
ishl
8: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getMinorVersion:()I
ior
9: putfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
10: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 768
if_icmplt 11
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 771
if_icmple 14
11: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
12: ldc "Only SSL 3.0, TLS 1.0/1.1/1.2 supported"
13: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
0 15 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 15 2 random Ljava/security/SecureRandom;
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 Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
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=7, locals=12, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.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 com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPremasterSecret:()Ljavax/crypto/SecretKey;
astore 1
start local 1 5: aload 1
invokeinterface javax.crypto.SecretKey.getEncoded:()[B
astore 2
start local 2 6: aload 1
invokeinterface javax.crypto.SecretKey.getAlgorithm:()Ljava/lang/String;
ldc "TlsRsaPremasterSecret"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
7: aload 2
iconst_0
baload
sipush 255
iand
istore 3
start local 3 8: aload 2
iconst_1
baload
sipush 255
iand
istore 4
start local 4 9: goto 12
end local 4 end local 3 10: StackMap locals: javax.crypto.SecretKey byte[]
StackMap stack:
iconst_m1
istore 3
start local 3 11: iconst_m1
istore 4
start local 4 12: StackMap locals: int int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 769
if_icmplt 32
13: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getExtendedMasterSecretSessionHash:()[B
14: astore 8
start local 8 15: aload 8
arraylength
ifeq 19
16: getstatic com.sun.crypto.provider.TlsPrfGenerator.LABEL_EXTENDED_MASTER_SECRET:[B
astore 6
start local 6 17: aload 8
astore 7
start local 7 18: goto 23
end local 7 end local 6 19: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int top top top byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getClientRandom:()[B
astore 9
start local 9 20: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getServerRandom:()[B
astore 10
start local 10 21: getstatic com.sun.crypto.provider.TlsPrfGenerator.LABEL_MASTER_SECRET:[B
astore 6
start local 6 22: aload 9
aload 10
invokestatic com.sun.crypto.provider.TlsPrfGenerator.concat:([B[B)[B
astore 7
end local 10 end local 9 start local 7 23: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int top byte[] byte[] byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 771
if_icmplt 29
24: aload 2
aload 6
aload 7
bipush 48
25: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPRFHashAlg:()Ljava/lang/String;
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPRFHashLength:()I
26: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getPRFBlockSize:()I
27: invokestatic com.sun.crypto.provider.TlsPrfGenerator.doTLS12PRF:([B[B[BILjava/lang/String;II)[B
28: goto 30
29: StackMap locals:
StackMap stack:
aload 2
aload 6
aload 7
bipush 48
invokestatic com.sun.crypto.provider.TlsPrfGenerator.doTLS10PRF:([B[B[BI)[B
30: StackMap locals:
StackMap stack: byte[]
astore 5
end local 8 end local 7 end local 6 start local 5 31: goto 50
end local 5 32: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int
StackMap stack:
bipush 48
newarray 8
astore 5
start local 5 33: ldc "MD5"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 6
start local 6 34: ldc "SHA"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 7
start local 7 35: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getClientRandom:()[B
astore 8
start local 8 36: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getServerRandom:()[B
astore 9
start local 9 37: bipush 20
newarray 8
astore 10
start local 10 38: iconst_0
istore 11
start local 11 39: goto 49
40: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int byte[] java.security.MessageDigest java.security.MessageDigest byte[] byte[] byte[] int
StackMap stack:
aload 7
getstatic com.sun.crypto.provider.TlsPrfGenerator.SSL3_CONST:[[B
iload 11
aaload
invokevirtual java.security.MessageDigest.update:([B)V
41: aload 7
aload 2
invokevirtual java.security.MessageDigest.update:([B)V
42: aload 7
aload 8
invokevirtual java.security.MessageDigest.update:([B)V
43: aload 7
aload 9
invokevirtual java.security.MessageDigest.update:([B)V
44: aload 7
aload 10
iconst_0
bipush 20
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
45: aload 6
aload 2
invokevirtual java.security.MessageDigest.update:([B)V
46: aload 6
aload 10
invokevirtual java.security.MessageDigest.update:([B)V
47: aload 6
aload 5
iload 11
iconst_4
ishl
bipush 16
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
48: iinc 11 1
StackMap locals:
StackMap stack:
49: iload 11
iconst_3
if_icmplt 40
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 50: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int byte[]
StackMap stack:
new com.sun.crypto.provider.TlsMasterSecretGenerator$TlsMasterSecretKey
dup
aload 5
iload 3
51: iload 4
52: invokespecial com.sun.crypto.provider.TlsMasterSecretGenerator$TlsMasterSecretKey.<init>:([BII)V
53: areturn
end local 5 54: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 55: new java.security.ProviderException
dup
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 56: StackMap locals:
StackMap stack: java.security.DigestException
astore 5
start local 5 57: new java.security.ProviderException
dup
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
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 58 0 this Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
5 58 1 premasterKey Ljavax/crypto/SecretKey;
6 58 2 premaster [B
8 10 3 premasterMajor I
11 58 3 premasterMajor I
9 10 4 premasterMinor I
12 58 4 premasterMinor I
31 32 5 master [B
33 54 5 master [B
17 19 6 label [B
22 31 6 label [B
18 19 7 seed [B
23 31 7 seed [B
15 31 8 extendedMasterSecretSessionHash [B
20 23 9 clientRandom [B
21 23 10 serverRandom [B
34 50 6 md5 Ljava/security/MessageDigest;
35 50 7 sha Ljava/security/MessageDigest;
36 50 8 clientRandom [B
37 50 9 serverRandom [B
38 50 10 tmp [B
39 50 11 i I
55 56 5 e Ljava/security/NoSuchAlgorithmException;
57 58 5 e Ljava/security/DigestException;
Exception table:
from to target type
12 53 54 Class java.security.NoSuchAlgorithmException
12 53 56 Class java.security.DigestException
}
SourceFile: "TlsMasterSecretGenerator.java"
NestMembers:
com.sun.crypto.provider.TlsMasterSecretGenerator$TlsMasterSecretKey
InnerClasses:
private final TlsMasterSecretKey = com.sun.crypto.provider.TlsMasterSecretGenerator$TlsMasterSecretKey of com.sun.crypto.provider.TlsMasterSecretGenerator