final class sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher extends sun.security.ssl.SSLCipher$SSLReadCipher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher
super_class: sun.security.ssl.SSLCipher$SSLReadCipher
{
private final javax.crypto.Cipher cipher;
descriptor: Ljavax/crypto/Cipher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int tagSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.Key key;
descriptor: Ljava/security/Key;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] iv;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.ssl.Authenticator, sun.security.ssl.ProtocolVersion, sun.security.ssl.SSLCipher, java.lang.String, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Lsun/security/ssl/Authenticator;Lsun/security/ssl/ProtocolVersion;Lsun/security/ssl/SSLCipher;Ljava/lang/String;Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 1
aload 2
invokespecial sun.security.ssl.SSLCipher$SSLReadCipher.<init>:(Lsun/security/ssl/Authenticator;Lsun/security/ssl/ProtocolVersion;)V
1: aload 0
aload 4
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
2: aload 0
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
bipush 16
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.tagSize:I
3: aload 0
aload 5
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.key:Ljava/security/Key;
4: aload 0
aload 6
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.iv:[B
5: aload 0
aload 7
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.random:Ljava/security/SecureRandom;
6: aload 0
getstatic sun.security.ssl.SSLCipher.cipherLimits:Ljava/util/HashMap;
7: new java.lang.StringBuilder
dup
aload 4
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.security.ssl.SSLCipher.tag:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
8: invokevirtual java.util.HashMap.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitCountdown:J
9: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 14
ldc "ssl"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 14
10: new java.lang.StringBuilder
dup
ldc "KeyLimit read side: algorithm = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 4
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.security.ssl.SSLCipher.tag:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc "\ncountdown value = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitCountdown:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher sun.security.ssl.Authenticator sun.security.ssl.ProtocolVersion sun.security.ssl.SSLCipher java.lang.String java.security.Key java.security.spec.AlgorithmParameterSpec java.security.SecureRandom
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitCountdown:J
lconst_0
lcmp
ifle 16
15: aload 0
iconst_1
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitEnabled:Z
16: StackMap locals:
StackMap stack:
return
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 17 0 this Lsun/security/ssl/SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher;
0 17 1 authenticator Lsun/security/ssl/Authenticator;
0 17 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 17 3 sslCipher Lsun/security/ssl/SSLCipher;
0 17 4 algorithm Ljava/lang/String;
0 17 5 key Ljava/security/Key;
0 17 6 params Ljava/security/spec/AlgorithmParameterSpec;
0 17 7 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
authenticator
protocolVersion
sslCipher
algorithm
key
params
random
public sun.security.ssl.Plaintext decrypt(byte, java.nio.ByteBuffer, byte[]);
descriptor: (BLjava/nio/ByteBuffer;[B)Lsun/security/ssl/Plaintext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
getstatic sun.security.ssl.ContentType.CHANGE_CIPHER_SPEC:Lsun/security/ssl/ContentType;
getfield sun.security.ssl.ContentType.id:B
if_icmpne 5
1: new sun.security.ssl.Plaintext
dup
iload 1
2: getstatic sun.security.ssl.ProtocolVersion.NONE:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.major:B
getstatic sun.security.ssl.ProtocolVersion.NONE:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.minor:B
3: iconst_m1
ldc -1
aload 2
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
4: invokespecial sun.security.ssl.Plaintext.<init>:(BBBIJLjava/nio/ByteBuffer;)V
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.tagSize:I
if_icmpgt 12
6: new javax.crypto.BadPaddingException
dup
7: new java.lang.StringBuilder
dup
ldc "Insufficient buffer remaining for AEAD cipher fragment ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "). Needs to be "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "more than tag size ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.tagSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial javax.crypto.BadPaddingException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 3
astore 4
start local 4 13: aload 4
ifnonnull 15
14: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.authenticator:Lsun/security/ssl/Authenticator;
invokevirtual sun.security.ssl.Authenticator.sequenceNumber:()[B
astore 4
15: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.iv:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 16: aload 5
arraylength
aload 4
arraylength
isub
istore 6
start local 6 17: iconst_0
istore 7
start local 7 18: goto 21
19: StackMap locals: byte[] int int
StackMap stack:
aload 5
iload 6
iload 7
iadd
dup2
baload
aload 4
iload 7
baload
ixor
i2b
bastore
20: iinc 7 1
StackMap locals:
StackMap stack:
21: iload 7
aload 4
arraylength
if_icmplt 19
end local 7 22: new javax.crypto.spec.GCMParameterSpec
dup
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.tagSize:I
bipush 8
imul
aload 5
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
23: astore 7
start local 7 24: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
iconst_2
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.key:Ljava/security/Key;
aload 7
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.random:Ljava/security/SecureRandom;
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
25: goto 30
26: StackMap locals: sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] byte[] int javax.crypto.spec.GCMParameterSpec
StackMap stack: java.security.GeneralSecurityException
astore 8
start local 8 27: new java.lang.RuntimeException
dup
28: ldc "invalid key or spec in GCM mode"
aload 8
29: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 8 30: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.authenticator:Lsun/security/ssl/Authenticator;
31: iload 1
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 4
32: invokevirtual sun.security.ssl.Authenticator.acquireAuthenticationBytes:(BI[B)[B
astore 8
start local 8 33: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
aload 8
invokevirtual javax.crypto.Cipher.updateAAD:([B)V
34: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 10
start local 10 35: aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 11
start local 11 36: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
aload 11
aload 2
invokevirtual javax.crypto.Cipher.doFinal:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
istore 9
start local 9 37: goto 48
end local 9 StackMap locals: sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] byte[] int javax.crypto.spec.GCMParameterSpec byte[] top int java.nio.ByteBuffer
StackMap stack: javax.crypto.IllegalBlockSizeException
38: astore 12
start local 12 39: new java.lang.RuntimeException
dup
40: new java.lang.StringBuilder
dup
ldc "Cipher error in AEAD mode \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual javax.crypto.IllegalBlockSizeException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
41: ldc " \"in JCE provider "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getProvider:()Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
42: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
43: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 12 44: StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
astore 12
start local 12 45: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Cipher buffering error in JCE provider "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
46: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getProvider:()Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 12
47: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 12 start local 9 48: StackMap locals: sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] byte[] int javax.crypto.spec.GCMParameterSpec byte[] int int java.nio.ByteBuffer
StackMap stack:
aload 2
iload 10
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
49: aload 2
iload 10
iload 9
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
50: aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
iconst_1
isub
istore 12
start local 12 51: goto 53
StackMap locals: int
StackMap stack:
52: iinc 12 -1
StackMap locals:
StackMap stack:
53: iload 12
ifle 54
aload 2
iload 12
invokevirtual java.nio.ByteBuffer.get:(I)B
ifeq 52
54: StackMap locals:
StackMap stack:
iload 12
iload 10
iconst_1
iadd
if_icmpge 58
55: new javax.crypto.BadPaddingException
dup
56: ldc "Incorrect inner plaintext: no content type"
57: invokespecial javax.crypto.BadPaddingException.<init>:(Ljava/lang/String;)V
athrow
58: StackMap locals:
StackMap stack:
aload 2
iload 12
invokevirtual java.nio.ByteBuffer.get:(I)B
istore 1
59: aload 2
iload 12
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
60: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 63
ldc "plaintext"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 63
61: ldc "Plaintext after DECRYPTION"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aastore
62: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
63: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitEnabled:Z
ifeq 65
64: aload 0
dup
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitCountdown:J
iload 9
i2l
lsub
putfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.keyLimitCountdown:J
65: StackMap locals:
StackMap stack:
new sun.security.ssl.Plaintext
dup
iload 1
66: getstatic sun.security.ssl.ProtocolVersion.NONE:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.major:B
getstatic sun.security.ssl.ProtocolVersion.NONE:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.minor:B
67: iconst_m1
ldc -1
aload 2
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
68: invokespecial sun.security.ssl.Plaintext.<init>:(BBBIJLjava/nio/ByteBuffer;)V
areturn
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 69 0 this Lsun/security/ssl/SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher;
0 69 1 contentType B
0 69 2 bb Ljava/nio/ByteBuffer;
0 69 3 sequence [B
13 69 4 sn [B
16 69 5 nonce [B
17 69 6 offset I
18 22 7 i I
24 69 7 spec Ljavax/crypto/spec/GCMParameterSpec;
27 30 8 ikae Ljava/security/GeneralSecurityException;
33 69 8 aad [B
37 38 9 len I
48 69 9 len I
35 69 10 pos I
36 69 11 dup Ljava/nio/ByteBuffer;
39 44 12 ibse Ljavax/crypto/IllegalBlockSizeException;
45 48 12 sbe Ljavax/crypto/ShortBufferException;
51 69 12 i I
Exception table:
from to target type
24 25 26 Class java.security.InvalidKeyException
24 25 26 Class java.security.InvalidAlgorithmParameterException
36 37 38 Class javax.crypto.IllegalBlockSizeException
36 37 44 Class javax.crypto.ShortBufferException
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
contentType
bb
sequence
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
ifnull 4
1: aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.doFinal:()[B
pop
2: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
int estimateFragmentSize(int, int);
descriptor: (II)I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
isub
aload 0
getfield sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher.tagSize:I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher;
0 1 1 packetSize I
0 1 2 headerSize I
MethodParameters:
Name Flags
packetSize
headerSize
}
SourceFile: "SSLCipher.java"
NestHost: sun.security.ssl.SSLCipher
InnerClasses:
abstract SSLReadCipher = sun.security.ssl.SSLCipher$SSLReadCipher of sun.security.ssl.SSLCipher
private final T13GcmReadCipherGenerator = sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator of sun.security.ssl.SSLCipher
final GcmReadCipher = sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator$GcmReadCipher of sun.security.ssl.SSLCipher$T13GcmReadCipherGenerator