class com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt extends com.sun.crypto.provider.GaloisCounterMode$GCMEngine
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt
super_class: com.sun.crypto.provider.GaloisCounterMode$GCMEngine
{
byte[] tag;
descriptor: [B
flags: (0x0000)
int tagOfs;
descriptor: I
flags: (0x0000)
final com.sun.crypto.provider.GaloisCounterMode this$0;
descriptor: Lcom/sun/crypto/provider/GaloisCounterMode;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.sun.crypto.provider.GaloisCounterMode, com.sun.crypto.provider.SymmetricCipher);
descriptor: (Lcom/sun/crypto/provider/GaloisCounterMode;Lcom/sun/crypto/provider/SymmetricCipher;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
1: aload 0
aload 1
aload 2
invokespecial com.sun.crypto.provider.GaloisCounterMode$GCMEngine.<init>:(Lcom/sun/crypto/provider/GaloisCounterMode;Lcom/sun/crypto/provider/SymmetricCipher;)V
2: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 4 2 blockCipher Lcom/sun/crypto/provider/SymmetricCipher;
MethodParameters:
Name Flags
this$0 final
blockCipher
private void checkDataLength(int[]);
descriptor: ([I)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: ldc 2147483647
istore 2
start local 2 1: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt int[] int top int int int[]
StackMap stack:
2: aload 6
iload 4
iaload
istore 3
start local 3 3: iload 2
iload 3
invokestatic java.lang.Math.subtractExact:(II)I
istore 2
4: iload 2
ifge 6
5: new java.security.ProviderException
dup
ldc "SunJCE provider only supports input size up to 2147483647 bytes"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 2
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 9 1 lengths [I
1 9 2 max I
3 6 3 len I
MethodParameters:
Name Flags
lengths
public int getOutputSize(int, boolean);
descriptor: (IZ)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.getBufferedLength:()I
iadd
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
iconst_0
invokestatic java.lang.Math.max:(II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 3 1 inLen I
0 3 2 isFinal Z
MethodParameters:
Name Flags
inLen
isFinal
void findTag(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
newarray 8
putfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tag:[B
1: iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmplt 7
2: aload 0
iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
putfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
3: aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
iadd
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tag:[B
iconst_0
4: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
5: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: goto 14
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 4
start local 4 8: aload 0
aload 0
aload 4
9: aload 4
arraylength
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
iload 3
isub
isub
aload 1
iload 2
iload 3
10: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tag:[B
11: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.mergeBlock:([BI[BII[B)I
12: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
13: putfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 15 1 in [B
0 15 2 inOfs I
0 15 3 inLen I
8 14 4 buffer [B
MethodParameters:
Name Flags
in
inOfs
inLen
byte[] doUpdate(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0000)
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
aconst_null
iconst_0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.doUpdate:([BII[BI)I
pop
1: goto 3
StackMap locals:
StackMap stack: javax.crypto.ShortBufferException
2: pop
3: StackMap locals:
StackMap stack:
iconst_0
newarray 8
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 4 1 in [B
0 4 2 inOff I
0 4 3 inLen I
Exception table:
from to target type
0 1 2 Class javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOff
inLen
public int doUpdate(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.processAAD:()V
1: iload 3
ifle 4
2: aload 0
iload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.initBuffer:(I)V
3: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ibuffer:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 5 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 5 1 in [B
0 5 2 inOfs I
0 5 3 inLen I
0 5 4 out [B
0 5 5 outOfs I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
inLen
out
outOfs
public int doUpdate(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.processAAD:()V
1: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 17
2: aload 1
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 8
3: aload 0
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
iadd
4: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
aconst_null
iconst_0
5: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.doUpdate:([BII[BI)I
pop
6: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
7: goto 17
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
newarray 8
astore 3
start local 3 9: aload 1
aload 3
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
10: aload 0
aload 3
arraylength
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.initBuffer:(I)V
11: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ibuffer:Ljava/io/ByteArrayOutputStream;
aload 3
invokevirtual java.io.ByteArrayOutputStream.write:([B)V
12: goto 17
StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt java.nio.ByteBuffer java.nio.ByteBuffer byte[]
StackMap stack: java.io.IOException
13: astore 4
start local 4 14: new java.security.ProviderException
dup
15: ldc "Unable to add remaining input to the buffer"
aload 4
16: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 17: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 18 1 src Ljava/nio/ByteBuffer;
0 18 2 dst Ljava/nio/ByteBuffer;
9 17 3 b [B
14 17 4 e Ljava/io/IOException;
Exception table:
from to target type
11 12 13 Class java.io.IOException
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
src
dst
public int doFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=10, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 3
aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.getBufferedLength:()I
iadd
istore 6
start local 6 1: iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmpge 6
2: new javax.crypto.AEADBadTagException
dup
new java.lang.StringBuilder
dup
ldc "Input data too short to contain an expected tag length of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc "bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int
StackMap stack:
aload 4
iload 5
iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
7: goto 10
StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
8: pop
9: new javax.crypto.ShortBufferException
dup
ldc "Output buffer invalid"
invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
aload 4
arraylength
iload 5
isub
if_icmple 14
11: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too small, mustbe at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
iconst_1
newarray 10
dup
iconst_0
iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
iastore
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.checkDataLength:([I)V
15: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.processAAD:()V
16: aload 0
aload 1
iload 2
iload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.findTag:([BII)V
17: aload 0
aload 1
iload 2
aload 4
iload 5
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.overlapDetection:([BI[BI)[B
astore 4
18: aload 0
new com.sun.crypto.provider.GaloisCounterMode$DecryptOp
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.gctr:Lcom/sun/crypto/provider/GCTR;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
invokespecial com.sun.crypto.provider.GaloisCounterMode$DecryptOp.<init>:(Lcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)V
aload 1
iload 2
iload 3
19: aload 4
iload 5
20: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.decryptBlocks:(Lcom/sun/crypto/provider/GaloisCounterMode$GCMOperation;[BII[BI)I
istore 6
21: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.sizeOfAAD:I
iload 6
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(II)[B
astore 7
start local 7 22: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
aload 7
invokevirtual com.sun.crypto.provider.GHASH.update:([B)I
pop
23: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 7
24: new com.sun.crypto.provider.GCTR
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.preCounterBlock:[B
invokespecial com.sun.crypto.provider.GCTR.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;[B)V
aload 7
iconst_0
25: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
aload 7
iconst_0
26: invokevirtual com.sun.crypto.provider.GCTR.doFinal:([BII[BI)I
pop
27: iconst_0
istore 8
start local 8 28: iconst_0
istore 9
start local 9 29: goto 32
30: StackMap locals: byte[] int int
StackMap stack:
iload 8
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tag:[B
iload 9
baload
aload 7
iload 9
baload
ixor
ior
istore 8
31: iinc 9 1
StackMap locals:
StackMap stack:
32: iload 9
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmplt 30
end local 9 33: iload 8
ifeq 36
34: aload 4
iload 5
iload 5
iload 6
iadd
iconst_0
invokestatic java.util.Arrays.fill:([BIIB)V
35: new javax.crypto.AEADBadTagException
dup
ldc "Tag mismatch"
invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals:
StackMap stack:
aload 0
aload 4
iload 6
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.restoreOut:([BI)V
37: iload 6
ireturn
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 38 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 38 1 in [B
0 38 2 inOfs I
0 38 3 inLen I
0 38 4 out [B
0 38 5 outOfs I
1 38 6 len I
22 38 7 block [B
28 38 8 mismatch I
29 33 9 i I
Exception table:
from to target type
6 7 8 Class java.lang.ArrayIndexOutOfBoundsException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.AEADBadTagException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
inLen
out
outOfs
public int doFinal(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
istore 6
start local 6 3: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.getBufferedLength:()I
ifeq 6
4: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 5
5: iload 6
aload 5
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
istore 6
6: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt java.nio.ByteBuffer java.nio.ByteBuffer top java.nio.ByteBuffer java.nio.ByteBuffer int
StackMap stack:
aload 0
iconst_1
newarray 10
dup
iconst_0
iload 6
iastore
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.checkDataLength:([I)V
7: iload 6
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 11
8: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too small, must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
9: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmplt 16
12: aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 3
start local 3 13: aload 3
aload 4
invokevirtual java.nio.ByteBuffer.limit:()I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
14: aload 4
aload 4
invokevirtual java.nio.ByteBuffer.limit:()I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
15: goto 31
end local 3 StackMap locals:
StackMap stack:
16: aload 5
ifnull 27
17: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 18: aload 5
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
isub
isub
istore 7
start local 7 19: aload 5
invokevirtual java.nio.ByteBuffer.mark:()Ljava/nio/ByteBuffer;
pop
20: aload 5
iload 7
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
21: aload 3
aload 5
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
22: aload 5
invokevirtual java.nio.ByteBuffer.reset:()Ljava/nio/ByteBuffer;
pop
23: aload 5
iload 7
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
24: aload 3
aload 4
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
25: aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
end local 7 26: goto 31
end local 3 27: StackMap locals:
StackMap stack:
new javax.crypto.AEADBadTagException
dup
new java.lang.StringBuilder
dup
ldc "Input data too short to contain an expected tag length of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
29: ldc "bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
30: invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
start local 3 31: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt java.nio.ByteBuffer java.nio.ByteBuffer java.nio.ByteBuffer java.nio.ByteBuffer java.nio.ByteBuffer int
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.overlapDetection:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
astore 2
32: aload 2
invokevirtual java.nio.ByteBuffer.mark:()Ljava/nio/ByteBuffer;
pop
33: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.processAAD:()V
34: aload 0
new com.sun.crypto.provider.GaloisCounterMode$DecryptOp
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.gctr:Lcom/sun/crypto/provider/GCTR;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
invokespecial com.sun.crypto.provider.GaloisCounterMode$DecryptOp.<init>:(Lcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)V
aload 5
aload 4
aload 2
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.doLastBlock:(Lcom/sun/crypto/provider/GaloisCounterMode$GCMOperation;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
istore 6
35: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.sizeOfAAD:I
iload 6
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(II)[B
astore 7
start local 7 36: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
aload 7
invokevirtual com.sun.crypto.provider.GHASH.update:([B)I
pop
37: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 7
38: new com.sun.crypto.provider.GCTR
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.preCounterBlock:[B
invokespecial com.sun.crypto.provider.GCTR.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;[B)V
aload 7
iconst_0
39: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
aload 7
iconst_0
40: invokevirtual com.sun.crypto.provider.GCTR.doFinal:([BII[BI)I
pop
41: iconst_0
istore 8
start local 8 42: iconst_0
istore 9
start local 9 43: goto 46
44: StackMap locals: byte[] int int
StackMap stack:
iload 8
aload 3
invokevirtual java.nio.ByteBuffer.get:()B
aload 7
iload 9
baload
ixor
ior
istore 8
45: iinc 9 1
StackMap locals:
StackMap stack:
46: iload 9
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmplt 44
end local 9 47: iload 8
ifeq 57
48: aload 2
invokevirtual java.nio.ByteBuffer.reset:()Ljava/nio/ByteBuffer;
pop
49: aload 2
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 53
50: aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iadd
istore 9
start local 9 51: aload 2
invokevirtual java.nio.ByteBuffer.array:()[B
iload 9
iload 9
iload 6
iadd
iconst_0
invokestatic java.util.Arrays.fill:([BIIB)V
end local 9 52: goto 56
53: StackMap locals:
StackMap stack:
invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
aload 2
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
54: iload 6
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iadd
i2l
iconst_0
55: invokevirtual jdk.internal.misc.Unsafe.setMemory:(JJB)V
56: StackMap locals:
StackMap stack:
new javax.crypto.AEADBadTagException
dup
ldc "Tag mismatch"
invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
57: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
58: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
59: aload 0
aload 2
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.restoreDst:(Ljava/nio/ByteBuffer;)V
60: iload 6
ireturn
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 61 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 61 1 src Ljava/nio/ByteBuffer;
0 61 2 dst Ljava/nio/ByteBuffer;
13 16 3 tag Ljava/nio/ByteBuffer;
18 27 3 tag Ljava/nio/ByteBuffer;
31 61 3 tag Ljava/nio/ByteBuffer;
1 61 4 ct Ljava/nio/ByteBuffer;
2 61 5 buffer Ljava/nio/ByteBuffer;
3 61 6 len I
19 26 7 limit I
36 61 7 block [B
42 61 8 mismatch I
43 47 9 i I
51 52 9 ofs I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.AEADBadTagException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
src
dst
int decryptBlocks(com.sun.crypto.provider.GaloisCounterMode$GCMOperation, byte[], int, int, byte[], int);
descriptor: (Lcom/sun/crypto/provider/GaloisCounterMode$GCMOperation;[BII[BI)I
flags: (0x0000)
Code:
stack=9, locals=14, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: iconst_0
istore 9
start local 9 1: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.getBufferedLength:()I
istore 11
start local 11 2: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
ifge 6
3: iconst_0
istore 4
4: iload 11
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.tagOfs:I
iadd
istore 11
5: goto 7
6: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt com.sun.crypto.provider.GaloisCounterMode$GCMOperation byte[] int int byte[] int top top int top int
StackMap stack:
iload 4
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.this$0:Lcom/sun/crypto/provider/GaloisCounterMode;
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
istore 4
7: StackMap locals:
StackMap stack:
iload 11
ifle 39
8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 7
start local 7 9: iload 11
sipush 8192
if_icmplt 14
10: aload 7
iconst_0
iload 11
11: aload 7
iconst_0
aload 5
iload 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.gctr:Lcom/sun/crypto/provider/GCTR;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.ghash:Lcom/sun/crypto/provider/GHASH;
12: invokestatic com.sun.crypto.provider.GaloisCounterMode.implGCMCrypt:([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I
istore 9
13: iload 6
iload 9
iadd
istore 6
14: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt com.sun.crypto.provider.GaloisCounterMode$GCMOperation byte[] int int byte[] int byte[] top int top int
StackMap stack:
iload 11
iload 9
isub
istore 12
start local 12 15: iload 12
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.blockSize:I
if_icmplt 22
16: aload 1
aload 7
iload 9
iload 12
aload 5
17: iload 6
18: invokeinterface com.sun.crypto.provider.GaloisCounterMode$GCMOperation.update:([BII[BI)I
istore 10
start local 10 19: iload 9
iload 10
iadd
istore 9
20: iload 6
iload 10
iadd
istore 6
21: iload 12
iload 10
isub
istore 12
end local 10 22: StackMap locals: int
StackMap stack:
iload 12
ifle 39
23: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.blockSize:I
newarray 8
astore 8
start local 8 24: aload 0
aload 7
iload 9
iload 12
aload 2
25: iload 3
iload 4
aload 8
26: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.mergeBlock:([BII[BII[B)I
istore 13
start local 13 27: iload 3
iload 13
iadd
istore 3
28: iload 4
iload 13
isub
istore 4
29: iload 4
ifle 36
30: aload 1
aload 8
iconst_0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.blockSize:I
31: aload 5
iload 6
32: invokeinterface com.sun.crypto.provider.GaloisCounterMode$GCMOperation.update:([BII[BI)I
istore 10
start local 10 33: iload 6
iload 10
iadd
istore 6
34: iload 9
iload 10
iadd
istore 9
35: goto 39
end local 10 36: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt com.sun.crypto.provider.GaloisCounterMode$GCMOperation byte[] int int byte[] int byte[] byte[] int top int int int
StackMap stack:
aload 8
astore 2
37: iconst_0
istore 3
38: iload 13
iload 12
iadd
istore 4
end local 13 end local 12 end local 8 end local 7 39: StackMap locals: com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt com.sun.crypto.provider.GaloisCounterMode$GCMOperation byte[] int int byte[] int top top int top int
StackMap stack:
iload 9
aload 1
aload 2
iload 3
iload 4
aload 5
iload 6
invokeinterface com.sun.crypto.provider.GaloisCounterMode$GCMOperation.doFinal:([BII[BI)I
iadd
ireturn
end local 11 end local 9 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 40 0 this Lcom/sun/crypto/provider/GaloisCounterMode$GCMDecrypt;
0 40 1 op Lcom/sun/crypto/provider/GaloisCounterMode$GCMOperation;
0 40 2 in [B
0 40 3 inOfs I
0 40 4 inLen I
0 40 5 out [B
0 40 6 outOfs I
9 39 7 buffer [B
24 39 8 block [B
1 40 9 len I
19 22 10 resultLen I
33 36 10 resultLen I
2 40 11 bLen I
15 39 12 bufRemainder I
27 39 13 inUsed I
MethodParameters:
Name Flags
op
in
inOfs
inLen
out
outOfs
}
SourceFile: "GaloisCounterMode.java"
NestHost: com.sun.crypto.provider.GaloisCounterMode
InnerClasses:
final DecryptOp = com.sun.crypto.provider.GaloisCounterMode$DecryptOp of com.sun.crypto.provider.GaloisCounterMode
GCMDecrypt = com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt of com.sun.crypto.provider.GaloisCounterMode
abstract GCMEngine = com.sun.crypto.provider.GaloisCounterMode$GCMEngine of com.sun.crypto.provider.GaloisCounterMode
public abstract GCMOperation = com.sun.crypto.provider.GaloisCounterMode$GCMOperation of com.sun.crypto.provider.GaloisCounterMode