final class sun.security.ssl.HelloCookieManager$T13HelloCookieManager extends sun.security.ssl.HelloCookieManager
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.HelloCookieManager$T13HelloCookieManager
super_class: sun.security.ssl.HelloCookieManager
{
final java.security.SecureRandom secureRandom;
descriptor: Ljava/security/SecureRandom;
flags: (0x0010) ACC_FINAL
private int cookieVersion;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final byte[] cookieSecret;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] legacySecret;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.ReentrantLock t13ManagerLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.ssl.HelloCookieManager.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
aload 1
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
3: aload 0
aload 1
invokevirtual java.security.SecureRandom.nextInt:()I
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
4: aload 0
bipush 64
newarray 8
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
5: aload 0
bipush 64
newarray 8
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
6: aload 1
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
7: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
iconst_0
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
iconst_0
bipush 64
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 9 1 secureRandom Ljava/security/SecureRandom;
MethodParameters:
Name Flags
secureRandom
byte[] createCookie(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.ClientHello$ClientHelloMessage);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;)[B
flags: (0x0000)
Code:
stack=5, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
istore 3
start local 3 2: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
astore 4
start local 4 3: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
ldc 16777215
iand
ifne 6
4: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
iconst_0
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
iconst_0
bipush 64
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: StackMap locals: int byte[]
StackMap stack:
aload 0
dup
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
iconst_1
iadd
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
7: goto 11
end local 4 end local 3 StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage
StackMap stack: java.lang.Throwable
8: astore 5
9: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: aload 5
athrow
start local 3 start local 4 11: StackMap locals: int byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: aload 1
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.name:Ljava/lang/String;
13: invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 14: goto 23
end local 5 StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
15: astore 6
start local 6 16: new java.lang.RuntimeException
dup
17: new java.lang.StringBuilder
dup
ldc "MessageDigest algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 1
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc " is not available"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: aload 6
22: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 start local 5 23: StackMap locals: java.security.MessageDigest
StackMap stack:
aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHeaderBytes:()[B
astore 6
start local 6 24: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
25: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 26: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
invokevirtual sun.security.ssl.HandshakeHash.update:()V
27: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
invokevirtual sun.security.ssl.HandshakeHash.digest:()[B
astore 8
start local 8 28: iconst_3
newarray 8
dup
iconst_0
29: aload 1
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.id:I
bipush 8
ishr
sipush 255
iand
i2b
bastore
dup
iconst_1
30: aload 1
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.id:I
sipush 255
iand
i2b
bastore
dup
iconst_2
31: iload 3
bipush 24
ishr
sipush 255
iand
i2b
bastore
32: astore 9
start local 9 33: aload 9
34: aload 9
arraylength
aload 7
arraylength
iadd
aload 8
arraylength
iadd
35: invokestatic java.util.Arrays.copyOf:([BI)[B
astore 10
start local 10 36: aload 7
iconst_0
aload 10
37: aload 9
arraylength
aload 7
arraylength
38: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
39: aload 8
iconst_0
aload 10
40: aload 9
arraylength
aload 7
arraylength
iadd
aload 8
arraylength
41: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
42: aload 10
areturn
end local 10 end local 9 end local 8 end local 7 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 43 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 43 1 context Lsun/security/ssl/ServerHandshakeContext;
0 43 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 8 3 version I
11 43 3 version I
3 8 4 secret [B
11 43 4 secret [B
14 15 5 md Ljava/security/MessageDigest;
23 43 5 md Ljava/security/MessageDigest;
16 23 6 nsae Ljava/security/NoSuchAlgorithmException;
24 43 6 headerBytes [B
26 43 7 headerCookie [B
28 43 8 clientHelloHash [B
33 43 9 prefix [B
36 43 10 cookie [B
Exception table:
from to target type
1 8 8 any
12 14 15 Class java.security.NoSuchAlgorithmException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
clientHello
boolean isCookieValid(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.ClientHello$ClientHelloMessage, byte[]);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;[B)Z
flags: (0x0000)
Code:
stack=5, locals=15, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 1
aload 3
arraylength
bipush 32
if_icmpgt 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 3
iconst_0
baload
sipush 255
iand
bipush 8
ishl
aload 3
iconst_1
baload
sipush 255
iand
ior
istore 4
start local 4 3: iload 4
invokestatic sun.security.ssl.CipherSuite.valueOf:(I)Lsun/security/ssl/CipherSuite;
astore 5
start local 5 4: aload 5
ifnull 5
aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
ifnull 5
aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.hashLength:I
ifne 6
5: StackMap locals: int sun.security.ssl.CipherSuite
StackMap stack:
iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.hashLength:I
istore 6
start local 6 7: aload 3
arraylength
iconst_3
iload 6
iconst_2
imul
iadd
if_icmpeq 9
8: iconst_0
ireturn
9: StackMap locals: int
StackMap stack:
aload 3
iconst_3
iconst_3
iload 6
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
10: astore 7
start local 7 11: aload 3
iconst_3
iload 6
iadd
aload 3
arraylength
invokestatic java.util.Arrays.copyOfRange:([BII)[B
12: astore 8
start local 8 13: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
14: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
bipush 24
ishr
sipush 255
iand
i2b
aload 3
iconst_2
baload
if_icmpne 17
15: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
astore 9
start local 9 16: goto 22
end local 9 17: StackMap locals: byte[] byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
astore 9
start local 9 18: goto 22
end local 9 StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 10
20: aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
21: aload 10
athrow
start local 9 22: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.t13ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
23: aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.name:Ljava/lang/String;
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 10
start local 10 24: goto 32
end local 10 StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
25: astore 11
start local 11 26: new java.lang.RuntimeException
dup
27: new java.lang.StringBuilder
dup
ldc "MessageDigest algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not available"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
29: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
30: aload 11
31: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 11 start local 10 32: StackMap locals: java.security.MessageDigest
StackMap stack:
aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHeaderBytes:()[B
astore 11
start local 11 33: aload 10
aload 11
invokevirtual java.security.MessageDigest.update:([B)V
34: aload 10
aload 9
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 12
start local 12 35: aload 12
aload 7
invokestatic java.util.Arrays.equals:([B[B)Z
ifne 37
36: iconst_0
ireturn
37: StackMap locals: byte[] byte[]
StackMap stack:
getstatic sun.security.ssl.ServerHello.hrrReproducer:Lsun/security/ssl/HandshakeProducer;
aload 1
aload 2
invokeinterface sun.security.ssl.HandshakeProducer.produce:(Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)[B
38: astore 13
start local 13 39: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 13
invokevirtual sun.security.ssl.HandshakeHash.push:([B)V
40: iconst_4
iload 6
iadd
newarray 8
astore 14
start local 14 41: aload 14
iconst_0
getstatic sun.security.ssl.SSLHandshake.MESSAGE_HASH:Lsun/security/ssl/SSLHandshake;
getfield sun.security.ssl.SSLHandshake.id:B
bastore
42: aload 14
iconst_1
iconst_0
bastore
43: aload 14
iconst_2
iconst_0
bastore
44: aload 14
iconst_3
iload 6
sipush 255
iand
i2b
bastore
45: aload 8
iconst_0
46: aload 14
iconst_4
iload 6
47: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
48: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 14
invokevirtual sun.security.ssl.HandshakeHash.push:([B)V
49: iconst_1
ireturn
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 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 50 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 50 1 context Lsun/security/ssl/ServerHandshakeContext;
0 50 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
0 50 3 cookie [B
3 50 4 csId I
4 50 5 cs Lsun/security/ssl/CipherSuite;
7 50 6 hashLen I
11 50 7 prevHeadCookie [B
13 50 8 prevClientHelloHash [B
16 17 9 secret [B
18 19 9 secret [B
22 50 9 secret [B
24 25 10 md Ljava/security/MessageDigest;
32 50 10 md Ljava/security/MessageDigest;
26 32 11 nsae Ljava/security/NoSuchAlgorithmException;
33 50 11 headerBytes [B
35 50 12 headerCookie [B
39 50 13 hrrMessage [B
41 50 14 hashedClientHello [B
Exception table:
from to target type
14 19 19 any
23 24 25 Class java.security.NoSuchAlgorithmException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
clientHello
cookie
}
SourceFile: "HelloCookieManager.java"
NestHost: sun.security.ssl.HelloCookieManager
InnerClasses:
final HashAlg = sun.security.ssl.CipherSuite$HashAlg of sun.security.ssl.CipherSuite
final ClientHelloMessage = sun.security.ssl.ClientHello$ClientHelloMessage of sun.security.ssl.ClientHello
private final T13HelloCookieManager = sun.security.ssl.HelloCookieManager$T13HelloCookieManager of sun.security.ssl.HelloCookieManager
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake