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
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
aload 1
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
2: aload 0
aload 1
invokevirtual java.security.SecureRandom.nextInt:()I
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieVersion:I
3: aload 0
bipush 64
newarray 8
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
4: aload 0
bipush 64
newarray 8
putfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
5: aload 1
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: 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
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 8 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
dup
astore 5
monitorenter
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[] sun.security.ssl.HelloCookieManager$T13HelloCookieManager
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: aload 5
monitorexit
8: goto 11
end local 4 end local 3 StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage top top sun.security.ssl.HelloCookieManager$T13HelloCookieManager
StackMap stack: java.lang.Throwable
9: aload 5
monitorexit
10: athrow
start local 3 start local 4 11: StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage int byte[]
StackMap stack:
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;
12: invokestatic sun.security.ssl.JsseJce.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 13: aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHeaderBytes:()[B
astore 6
start local 6 14: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
15: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 16: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
invokevirtual sun.security.ssl.HandshakeHash.update:()V
17: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
invokevirtual sun.security.ssl.HandshakeHash.digest:()[B
astore 8
start local 8 18: iconst_3
newarray 8
dup
iconst_0
19: 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
20: 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
21: iload 3
bipush 24
ishr
sipush 255
iand
i2b
bastore
22: astore 9
start local 9 23: aload 9
24: aload 9
arraylength
aload 7
arraylength
iadd
aload 8
arraylength
iadd
25: invokestatic java.util.Arrays.copyOf:([BI)[B
astore 10
start local 10 26: aload 7
iconst_0
aload 10
27: aload 9
arraylength
aload 7
arraylength
28: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
29: aload 8
iconst_0
aload 10
30: aload 9
arraylength
aload 7
arraylength
iadd
aload 8
arraylength
31: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: 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 33 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 33 1 context Lsun/security/ssl/ServerHandshakeContext;
0 33 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 9 3 version I
11 33 3 version I
3 9 4 secret [B
11 33 4 secret [B
13 33 5 md Ljava/security/MessageDigest;
14 33 6 headerBytes [B
16 33 7 headerCookie [B
18 33 8 clientHelloHash [B
23 33 9 prefix [B
26 33 10 cookie [B
Exception table:
from to target type
1 8 9 any
9 10 9 any
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
dup
astore 10
monitorenter
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 18
end local 9 17: StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] int sun.security.ssl.CipherSuite int byte[] byte[] top sun.security.ssl.HelloCookieManager$T13HelloCookieManager
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$T13HelloCookieManager.legacySecret:[B
astore 9
start local 9 18: StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] int sun.security.ssl.CipherSuite int byte[] byte[] byte[] sun.security.ssl.HelloCookieManager$T13HelloCookieManager
StackMap stack:
aload 10
monitorexit
19: goto 22
end local 9 StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] int sun.security.ssl.CipherSuite int byte[] byte[] top sun.security.ssl.HelloCookieManager$T13HelloCookieManager
StackMap stack: java.lang.Throwable
20: aload 10
monitorexit
21: athrow
start local 9 22: StackMap locals: sun.security.ssl.HelloCookieManager$T13HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] int sun.security.ssl.CipherSuite int byte[] byte[] byte[]
StackMap stack:
aload 5
getfield sun.security.ssl.CipherSuite.hashAlg:Lsun/security/ssl/CipherSuite$HashAlg;
getfield sun.security.ssl.CipherSuite$HashAlg.name:Ljava/lang/String;
invokestatic sun.security.ssl.JsseJce.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 10
start local 10 23: aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHeaderBytes:()[B
astore 11
start local 11 24: aload 10
aload 11
invokevirtual java.security.MessageDigest.update:([B)V
25: aload 10
aload 9
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 12
start local 12 26: aload 12
aload 7
invokestatic java.util.Arrays.equals:([B[B)Z
ifne 28
27: iconst_0
ireturn
28: StackMap locals: java.security.MessageDigest 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
29: astore 13
start local 13 30: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 13
invokevirtual sun.security.ssl.HandshakeHash.push:([B)V
31: iconst_4
iload 6
iadd
newarray 8
astore 14
start local 14 32: aload 14
iconst_0
getstatic sun.security.ssl.SSLHandshake.MESSAGE_HASH:Lsun/security/ssl/SSLHandshake;
getfield sun.security.ssl.SSLHandshake.id:B
bastore
33: aload 14
iconst_1
iconst_0
bastore
34: aload 14
iconst_2
iconst_0
bastore
35: aload 14
iconst_3
iload 6
sipush 255
iand
i2b
bastore
36: aload 8
iconst_0
37: aload 14
iconst_4
iload 6
38: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
39: aload 1
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 14
invokevirtual sun.security.ssl.HandshakeHash.push:([B)V
40: 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 41 0 this Lsun/security/ssl/HelloCookieManager$T13HelloCookieManager;
0 41 1 context Lsun/security/ssl/ServerHandshakeContext;
0 41 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
0 41 3 cookie [B
3 41 4 csId I
4 41 5 cs Lsun/security/ssl/CipherSuite;
7 41 6 hashLen I
11 41 7 prevHeadCookie [B
13 41 8 prevClientHelloHash [B
16 17 9 secret [B
18 20 9 secret [B
22 41 9 secret [B
23 41 10 md Ljava/security/MessageDigest;
24 41 11 headerBytes [B
26 41 12 headerCookie [B
30 41 13 hrrMessage [B
32 41 14 hashedClientHello [B
Exception table:
from to target type
14 19 20 any
20 21 20 any
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