final class sun.security.ssl.HandshakeHash
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.HandshakeHash
super_class: java.lang.Object
{
private int version;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.io.ByteArrayOutputStream data;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private final boolean isServer;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.security.MessageDigest md5;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private java.security.MessageDigest sha;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private final int clonesNeeded;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean cvAlgDetermined;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String cvAlg;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.security.MessageDigest finMD;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
void <init>(boolean, boolean, java.util.Set<java.lang.String>);
descriptor: (ZZLjava/util/Set;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield sun.security.ssl.HandshakeHash.version:I
2: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
3: aload 0
iconst_0
putfield sun.security.ssl.HandshakeHash.cvAlgDetermined:Z
4: aload 0
iload 1
putfield sun.security.ssl.HandshakeHash.isServer:Z
5: aload 0
iload 2
ifeq 6
iconst_5
goto 7
StackMap locals: sun.security.ssl.HandshakeHash int int java.util.Set
StackMap stack: sun.security.ssl.HandshakeHash
6: iconst_4
StackMap locals: sun.security.ssl.HandshakeHash int int java.util.Set
StackMap stack: sun.security.ssl.HandshakeHash int
7: putfield sun.security.ssl.HandshakeHash.clonesNeeded:I
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ssl/HandshakeHash;
0 9 1 isServer Z
0 9 2 needCertificateVerify Z
0 9 3 algs Ljava/util/Set<Ljava/lang/String;>;
Signature: (ZZLjava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
isServer
needCertificateVerify
algs
void update(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
tableswitch { // 1 - 1
1: 1
default: 4
}
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.md5:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
2: aload 0
getfield sun.security.ssl.HandshakeHash.sha:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
3: goto 7
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
ifnull 6
5: aload 0
getfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/HandshakeHash;
0 8 1 b [B
0 8 2 offset I
0 8 3 len I
MethodParameters:
Name Flags
b
offset
len
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
iconst_m1
if_icmpeq 4
1: new java.lang.RuntimeException
dup
2: ldc "reset() can be only be called before protocolDetermined"
3: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/HandshakeHash;
void protocolDetermined(sun.security.ssl.ProtocolVersion);
descriptor: (Lsun/security/ssl/ProtocolVersion;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
iconst_m1
if_icmpeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 1
getstatic sun.security.ssl.ProtocolVersion.TLS12:Lsun/security/ssl/ProtocolVersion;
invokevirtual sun.security.ssl.ProtocolVersion.compareTo:(Lsun/security/ssl/ProtocolVersion;)I
iflt 2
iconst_2
goto 3
StackMap locals:
StackMap stack: sun.security.ssl.HandshakeHash
2: iconst_1
StackMap locals: sun.security.ssl.HandshakeHash sun.security.ssl.ProtocolVersion
StackMap stack: sun.security.ssl.HandshakeHash int
3: putfield sun.security.ssl.HandshakeHash.version:I
4: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
tableswitch { // 1 - 2
1: 5
2: 15
default: 15
}
5: StackMap locals:
StackMap stack:
aload 0
ldc "MD5"
aload 0
getfield sun.security.ssl.HandshakeHash.clonesNeeded:I
invokestatic sun.security.ssl.CloneableDigest.getDigest:(Ljava/lang/String;I)Ljava/security/MessageDigest;
putfield sun.security.ssl.HandshakeHash.md5:Ljava/security/MessageDigest;
6: aload 0
ldc "SHA"
aload 0
getfield sun.security.ssl.HandshakeHash.clonesNeeded:I
invokestatic sun.security.ssl.CloneableDigest.getDigest:(Ljava/lang/String;I)Ljava/security/MessageDigest;
putfield sun.security.ssl.HandshakeHash.sha:Ljava/security/MessageDigest;
7: goto 12
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
8: astore 2
start local 2 9: new java.lang.RuntimeException
dup
10: ldc "Algorithm MD5 or SHA not available"
aload 2
11: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 12: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 2
start local 2 13: aload 0
aload 2
iconst_0
aload 2
arraylength
invokevirtual sun.security.ssl.HandshakeHash.update:([BII)V
14: goto 15
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/security/ssl/HandshakeHash;
0 16 1 pv Lsun/security/ssl/ProtocolVersion;
9 12 2 e Ljava/security/NoSuchAlgorithmException;
13 15 2 bytes [B
Exception table:
from to target type
5 7 8 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
pv
java.security.MessageDigest getMD5Clone();
descriptor: ()Ljava/security/MessageDigest;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
iconst_1
if_icmpeq 4
1: new java.lang.RuntimeException
dup
2: ldc "getMD5Clone() can be only be called for TLS 1.1"
3: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.md5:Ljava/security/MessageDigest;
invokestatic sun.security.ssl.HandshakeHash.cloneDigest:(Ljava/security/MessageDigest;)Ljava/security/MessageDigest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/HandshakeHash;
java.security.MessageDigest getSHAClone();
descriptor: ()Ljava/security/MessageDigest;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
iconst_1
if_icmpeq 4
1: new java.lang.RuntimeException
dup
2: ldc "getSHAClone() can be only be called for TLS 1.1"
3: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.sha:Ljava/security/MessageDigest;
invokestatic sun.security.ssl.HandshakeHash.cloneDigest:(Ljava/security/MessageDigest;)Ljava/security/MessageDigest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/HandshakeHash;
private static java.security.MessageDigest cloneDigest(java.security.MessageDigest);
descriptor: (Ljava/security/MessageDigest;)Ljava/security/MessageDigest;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
checkcast java.security.MessageDigest
1: areturn
2: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
astore 1
start local 1 3: new java.lang.RuntimeException
dup
ldc "Could not clone digest"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 digest Ljava/security/MessageDigest;
3 4 1 e Ljava/lang/CloneNotSupportedException;
Exception table:
from to target type
0 1 2 Class java.lang.CloneNotSupportedException
MethodParameters:
Name Flags
digest
private static java.lang.String normalizeAlgName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 0
1: aload 0
ldc "SHA"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
2: aload 0
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpne 4
3: ldc "SHA-1"
areturn
4: StackMap locals:
StackMap stack:
aload 0
iconst_3
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpeq 6
5: new java.lang.StringBuilder
dup
ldc "SHA-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 alg Ljava/lang/String;
MethodParameters:
Name Flags
alg
void setFinishedAlg(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 4
1: new java.lang.RuntimeException
dup
2: ldc "setFinishedAlg's argument cannot be null"
3: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
ifnull 5
return
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.security.ssl.HandshakeHash.normalizeAlgName:(Ljava/lang/String;)Ljava/lang/String;
iconst_4
invokestatic sun.security.ssl.CloneableDigest.getDigest:(Ljava/lang/String;I)Ljava/security/MessageDigest;
putfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
6: goto 9
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
7: astore 2
start local 2 8: new java.lang.Error
dup
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
aload 0
getfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokevirtual java.security.MessageDigest.update:([B)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ssl/HandshakeHash;
0 11 1 s Ljava/lang/String;
8 9 2 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
5 6 7 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
s
void restrictCertificateVerifyAlgs(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.HandshakeHash.version:I
iconst_1
if_icmpne 4
1: new java.lang.RuntimeException
dup
2: ldc "setCertificateVerifyAlg() cannot be called for TLS 1.1"
3: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/HandshakeHash;
0 5 1 algs Ljava/util/Set<Ljava/lang/String;>;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
algs
void setCertificateVerifyAlg(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.HandshakeHash.cvAlgDetermined:Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals:
StackMap stack: sun.security.ssl.HandshakeHash
2: aload 1
invokestatic sun.security.ssl.HandshakeHash.normalizeAlgName:(Ljava/lang/String;)Ljava/lang/String;
StackMap locals: sun.security.ssl.HandshakeHash java.lang.String
StackMap stack: sun.security.ssl.HandshakeHash java.lang.String
3: putfield sun.security.ssl.HandshakeHash.cvAlg:Ljava/lang/String;
4: aload 0
iconst_1
putfield sun.security.ssl.HandshakeHash.cvAlgDetermined:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/HandshakeHash;
0 6 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
byte[] getAllHandshakeMessages();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeHash.data:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/HandshakeHash;
byte[] getFinishedHash();
descriptor: ()[B
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.HandshakeHash.finMD:Ljava/security/MessageDigest;
invokestatic sun.security.ssl.HandshakeHash.cloneDigest:(Ljava/security/MessageDigest;)Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: new java.lang.Error
dup
ldc "BAD"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/HandshakeHash;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
}
SourceFile: "HandshakeHash.java"