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 5
4: new java.security.InvalidAlgorithmParameterException
dup
ldc "Key format must be RAW"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
5: 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
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.spec:Lsun/security/internal/spec/TlsMasterSecretParameterSpec;
invokevirtual sun.security.internal.spec.TlsMasterSecretParameterSpec.getMinorVersion:()I
ior
putfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
6: aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 768
if_icmplt 7
aload 0
getfield com.sun.crypto.provider.TlsMasterSecretGenerator.protocolVersion:I
sipush 770
if_icmple 10
7: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
8: ldc "Only SSL 3.0, TLS 1.0, and TLS 1.1 supported"
9: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
0 11 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 11 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=5, 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 25
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 2
aload 6
aload 7
bipush 48
invokestatic com.sun.crypto.provider.TlsPrfGenerator.doPRF:([B[B[BI)[B
astore 5
end local 8 end local 7 end local 6 start local 5 24: goto 43
end local 5 25: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int
StackMap stack:
bipush 48
newarray 8
astore 5
start local 5 26: ldc "MD5"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 6
start local 6 27: ldc "SHA"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 7
start local 7 28: 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 29: 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 30: bipush 20
newarray 8
astore 10
start local 10 31: iconst_0
istore 11
start local 11 32: goto 42
33: 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
34: aload 7
aload 2
invokevirtual java.security.MessageDigest.update:([B)V
35: aload 7
aload 8
invokevirtual java.security.MessageDigest.update:([B)V
36: aload 7
aload 9
invokevirtual java.security.MessageDigest.update:([B)V
37: aload 7
aload 10
iconst_0
bipush 20
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
38: aload 6
aload 2
invokevirtual java.security.MessageDigest.update:([B)V
39: aload 6
aload 10
invokevirtual java.security.MessageDigest.update:([B)V
40: aload 6
aload 5
iload 11
iconst_4
ishl
bipush 16
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
41: iinc 11 1
StackMap locals:
StackMap stack:
42: iload 11
iconst_3
if_icmplt 33
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 43: 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
iload 4
invokespecial com.sun.crypto.provider.TlsMasterSecretGenerator$TlsMasterSecretKey.<init>:([BII)V
44: areturn
end local 5 45: StackMap locals: com.sun.crypto.provider.TlsMasterSecretGenerator javax.crypto.SecretKey byte[] int int
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 46: new java.security.ProviderException
dup
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 47: StackMap locals:
StackMap stack: java.security.DigestException
astore 5
start local 5 48: 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 49 0 this Lcom/sun/crypto/provider/TlsMasterSecretGenerator;
5 49 1 premasterKey Ljavax/crypto/SecretKey;
6 49 2 premaster [B
8 10 3 premasterMajor I
11 49 3 premasterMajor I
9 10 4 premasterMinor I
12 49 4 premasterMinor I
24 25 5 master [B
26 45 5 master [B
17 19 6 label [B
22 24 6 label [B
18 19 7 seed [B
23 24 7 seed [B
15 24 8 extendedMasterSecretSessionHash [B
20 23 9 clientRandom [B
21 23 10 serverRandom [B
27 43 6 md5 Ljava/security/MessageDigest;
28 43 7 sha Ljava/security/MessageDigest;
29 43 8 clientRandom [B
30 43 9 serverRandom [B
31 43 10 tmp [B
32 43 11 i I
46 47 5 e Ljava/security/NoSuchAlgorithmException;
48 49 5 e Ljava/security/DigestException;
Exception table:
from to target type
12 44 45 Class java.security.NoSuchAlgorithmException
12 44 47 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