final class sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$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[] fixedIv;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int recordIvSize;
descriptor: I
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=3, 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$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$GcmReadCipher.tagSize:I
3: aload 0
aload 5
putfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$GcmReadCipher.fixedIv:[B
5: aload 0
aload 3
getfield sun.security.ssl.SSLCipher.ivSize:I
aload 3
getfield sun.security.ssl.SSLCipher.fixedIvSize:I
isub
putfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
6: aload 0
aload 7
putfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.random:Ljava/security/SecureRandom;
7: 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 8 0 this Lsun/security/ssl/SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher;
0 8 1 authenticator Lsun/security/ssl/Authenticator;
0 8 2 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 8 3 sslCipher Lsun/security/ssl/SSLCipher;
0 8 4 algorithm Ljava/lang/String;
0 8 5 key Ljava/security/Key;
0 8 6 params Ljava/security/spec/AlgorithmParameterSpec;
0 8 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=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.tagSize:I
iadd
if_icmpge 8
1: new javax.crypto.BadPaddingException
dup
2: new java.lang.StringBuilder
dup
ldc "Insufficient buffer remaining for AEAD cipher fragment ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: 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;
4: ldc "more than or equal to IV size ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
5: ldc ") + tag size ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.tagSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial javax.crypto.BadPaddingException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.fixedIv:[B
9: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.fixedIv:[B
arraylength
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
iadd
10: invokestatic java.util.Arrays.copyOf:([BI)[B
astore 4
start local 4 11: aload 2
aload 4
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.fixedIv:[B
arraylength
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
12: new javax.crypto.spec.GCMParameterSpec
dup
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.tagSize:I
bipush 8
imul
aload 4
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
astore 5
start local 5 13: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
iconst_2
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.key:Ljava/security/Key;
aload 5
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.random:Ljava/security/SecureRandom;
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
14: goto 19
15: StackMap locals: sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] javax.crypto.spec.GCMParameterSpec
StackMap stack: java.security.GeneralSecurityException
astore 6
start local 6 16: new java.lang.RuntimeException
dup
17: ldc "invalid key or spec in GCM mode"
aload 6
18: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 19: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.authenticator:Lsun/security/ssl/Authenticator;
20: iload 1
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.tagSize:I
isub
21: aload 3
22: invokevirtual sun.security.ssl.Authenticator.acquireAuthenticationBytes:(BI[B)[B
astore 6
start local 6 23: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
aload 6
invokevirtual javax.crypto.Cipher.updateAAD:([B)V
24: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 8
start local 8 25: aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 9
start local 9 26: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
aload 9
aload 2
invokevirtual javax.crypto.Cipher.doFinal:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
istore 7
start local 7 27: goto 38
end local 7 StackMap locals: sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] javax.crypto.spec.GCMParameterSpec byte[] top int java.nio.ByteBuffer
StackMap stack: javax.crypto.IllegalBlockSizeException
28: astore 10
start local 10 29: new java.lang.RuntimeException
dup
30: new java.lang.StringBuilder
dup
ldc "Cipher error in AEAD mode \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual javax.crypto.IllegalBlockSizeException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: ldc " \"in JCE provider "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 10 34: StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
astore 10
start local 10 35: 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
36: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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 10
37: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 10 start local 7 38: StackMap locals: sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher int java.nio.ByteBuffer byte[] byte[] javax.crypto.spec.GCMParameterSpec byte[] int int java.nio.ByteBuffer
StackMap stack:
aload 2
iload 8
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
39: aload 2
iload 8
iload 7
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
40: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 43
ldc "plaintext"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 43
41: ldc "Plaintext after DECRYPTION"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aastore
42: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
43: StackMap locals:
StackMap stack:
new sun.security.ssl.Plaintext
dup
iload 1
44: 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
45: iconst_m1
ldc -1
aload 2
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
46: invokespecial sun.security.ssl.Plaintext.<init>:(BBBIJLjava/nio/ByteBuffer;)V
areturn
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 47 0 this Lsun/security/ssl/SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher;
0 47 1 contentType B
0 47 2 bb Ljava/nio/ByteBuffer;
0 47 3 sequence [B
11 47 4 iv [B
13 47 5 spec Ljavax/crypto/spec/GCMParameterSpec;
16 19 6 ikae Ljava/security/GeneralSecurityException;
23 47 6 aad [B
27 28 7 len I
38 47 7 len I
25 47 8 pos I
26 47 9 dup Ljava/nio/ByteBuffer;
29 34 10 ibse Ljavax/crypto/IllegalBlockSizeException;
35 38 10 sbe Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
13 14 15 Class java.security.InvalidKeyException
13 14 15 Class java.security.InvalidAlgorithmParameterException
26 27 28 Class javax.crypto.IllegalBlockSizeException
26 27 34 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$T12GcmReadCipherGenerator$GcmReadCipher.cipher:Ljavax/crypto/Cipher;
ifnull 4
1: aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$GcmReadCipher.recordIvSize:I
isub
aload 0
getfield sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$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$T12GcmReadCipherGenerator$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 T12GcmReadCipherGenerator = sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator of sun.security.ssl.SSLCipher
final GcmReadCipher = sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher of sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator