final class com.sun.crypto.provider.GaloisCounterMode extends com.sun.crypto.provider.FeedbackCipher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.GaloisCounterMode
super_class: com.sun.crypto.provider.FeedbackCipher
{
static int DEFAULT_TAG_LEN;
descriptor: I
flags: (0x0008) ACC_STATIC
static int DEFAULT_IV_LEN;
descriptor: I
flags: (0x0008) ACC_STATIC
private static final int MAX_BUF_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2147483647
private static final int TRIGGERLEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65536
private java.io.ByteArrayOutputStream aadBuffer;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private int sizeOfAAD;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.io.ByteArrayOutputStream ibuffer;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private int tagLenBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] subkeyH;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] preCounterBlock;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private com.sun.crypto.provider.GCTR gctrPAndC;
descriptor: Lcom/sun/crypto/provider/GCTR;
flags: (0x0002) ACC_PRIVATE
private com.sun.crypto.provider.GHASH ghashAllToS;
descriptor: Lcom/sun/crypto/provider/GHASH;
flags: (0x0002) ACC_PRIVATE
private int processed;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] aadBufferSave;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int sizeOfAADSave;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] ibufferSave;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int processedSave;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 16
putstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
1: bipush 12
putstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_IV_LEN:I
2: return
LocalVariableTable:
Start End Slot Name Signature
static void increment32(byte[]);
descriptor: ([B)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
arraylength
bipush 16
if_icmpeq 2
1: new java.security.ProviderException
dup
ldc "Illegal counter block length"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
arraylength
iconst_1
isub
istore 1
start local 1 3: goto 5
4: StackMap locals: int
StackMap stack:
iinc 1 -1
5: StackMap locals:
StackMap stack:
iload 1
aload 0
arraylength
iconst_4
isub
if_icmplt 6
aload 0
iload 1
dup2
baload
iconst_1
iadd
i2b
dup_x2
bastore
ifeq 4
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 value [B
3 7 1 n I
MethodParameters:
Name Flags
value
private static byte[] getLengthBlock(int);
descriptor: (I)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: iload 0
i2l
iconst_3
lshl
lstore 1
start local 1 1: bipush 16
newarray 8
astore 3
start local 3 2: aload 3
bipush 8
lload 1
bipush 56
lushr
l2i
i2b
bastore
3: aload 3
bipush 9
lload 1
bipush 48
lushr
l2i
i2b
bastore
4: aload 3
bipush 10
lload 1
bipush 40
lushr
l2i
i2b
bastore
5: aload 3
bipush 11
lload 1
bipush 32
lushr
l2i
i2b
bastore
6: aload 3
bipush 12
lload 1
bipush 24
lushr
l2i
i2b
bastore
7: aload 3
bipush 13
lload 1
bipush 16
lushr
l2i
i2b
bastore
8: aload 3
bipush 14
lload 1
bipush 8
lushr
l2i
i2b
bastore
9: aload 3
bipush 15
lload 1
l2i
i2b
bastore
10: aload 3
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 ivLenInBytes I
1 11 1 ivLen J
2 11 3 out [B
MethodParameters:
Name Flags
ivLenInBytes
private static byte[] getLengthBlock(int, int);
descriptor: (II)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: iload 0
i2l
iconst_3
lshl
lstore 2
start local 2 1: iload 1
i2l
iconst_3
lshl
lstore 4
start local 4 2: bipush 16
newarray 8
astore 6
start local 6 3: aload 6
iconst_0
lload 2
bipush 56
lushr
l2i
i2b
bastore
4: aload 6
iconst_1
lload 2
bipush 48
lushr
l2i
i2b
bastore
5: aload 6
iconst_2
lload 2
bipush 40
lushr
l2i
i2b
bastore
6: aload 6
iconst_3
lload 2
bipush 32
lushr
l2i
i2b
bastore
7: aload 6
iconst_4
lload 2
bipush 24
lushr
l2i
i2b
bastore
8: aload 6
iconst_5
lload 2
bipush 16
lushr
l2i
i2b
bastore
9: aload 6
bipush 6
lload 2
bipush 8
lushr
l2i
i2b
bastore
10: aload 6
bipush 7
lload 2
l2i
i2b
bastore
11: aload 6
bipush 8
lload 4
bipush 56
lushr
l2i
i2b
bastore
12: aload 6
bipush 9
lload 4
bipush 48
lushr
l2i
i2b
bastore
13: aload 6
bipush 10
lload 4
bipush 40
lushr
l2i
i2b
bastore
14: aload 6
bipush 11
lload 4
bipush 32
lushr
l2i
i2b
bastore
15: aload 6
bipush 12
lload 4
bipush 24
lushr
l2i
i2b
bastore
16: aload 6
bipush 13
lload 4
bipush 16
lushr
l2i
i2b
bastore
17: aload 6
bipush 14
lload 4
bipush 8
lushr
l2i
i2b
bastore
18: aload 6
bipush 15
lload 4
l2i
i2b
bastore
19: aload 6
areturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 aLenInBytes I
0 20 1 cLenInBytes I
1 20 2 aLen J
2 20 4 cLen J
3 20 6 out [B
MethodParameters:
Name Flags
aLenInBytes
cLenInBytes
private static byte[] expandToOneBlock(byte[], int, int);
descriptor: ([BII)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
bipush 16
if_icmple 2
1: new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "input "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " too long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
bipush 16
if_icmpne 4
iload 1
ifne 4
3: aload 0
areturn
4: StackMap locals:
StackMap stack:
bipush 16
newarray 8
astore 3
start local 3 5: aload 0
iload 1
aload 3
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 in [B
0 7 1 inOfs I
0 7 2 len I
5 7 3 paddedIn [B
MethodParameters:
Name Flags
in
inOfs
len
private static byte[] getJ0(byte[], byte[]);
descriptor: ([B[B)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
arraylength
bipush 12
if_icmpne 4
1: aload 0
iconst_0
aload 0
arraylength
invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BII)[B
astore 2
start local 2 2: aload 2
bipush 15
iconst_1
bastore
3: goto 16
end local 2 4: StackMap locals:
StackMap stack:
new com.sun.crypto.provider.GHASH
dup
aload 1
invokespecial com.sun.crypto.provider.GHASH.<init>:([B)V
astore 3
start local 3 5: aload 0
arraylength
bipush 16
irem
istore 4
start local 4 6: iload 4
ifeq 12
7: aload 3
aload 0
iconst_0
aload 0
arraylength
iload 4
isub
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
8: aload 0
aload 0
arraylength
iload 4
isub
iload 4
invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BII)[B
9: astore 5
start local 5 10: aload 3
aload 5
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
end local 5 11: goto 13
12: StackMap locals: byte[] byte[] top com.sun.crypto.provider.GHASH int
StackMap stack:
aload 3
aload 0
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
13: StackMap locals:
StackMap stack:
aload 0
arraylength
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(I)[B
astore 5
start local 5 14: aload 3
aload 5
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
15: aload 3
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 2
end local 5 end local 4 end local 3 start local 2 16: StackMap locals: byte[] byte[] byte[]
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 iv [B
0 17 1 subkeyH [B
2 4 2 j0 [B
16 17 2 j0 [B
5 16 3 g Lcom/sun/crypto/provider/GHASH;
6 16 4 lastLen I
10 11 5 padded [B
14 16 5 lengthBlock [B
MethodParameters:
Name Flags
iv
subkeyH
private static void checkDataLength(int, int);
descriptor: (II)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 0
ldc 2147483647
iload 1
isub
if_icmple 2
1: 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
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 processed I
0 3 1 len I
MethodParameters:
Name Flags
processed
len
void <init>(com.sun.crypto.provider.SymmetricCipher);
descriptor: (Lcom/sun/crypto/provider/SymmetricCipher;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.sun.crypto.provider.FeedbackCipher.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
1: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
2: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
3: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
4: aload 0
getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
putfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
5: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.subkeyH:[B
6: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.preCounterBlock:[B
7: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
8: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
9: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
10: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.aadBufferSave:[B
11: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAADSave:I
12: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.ibufferSave:[B
13: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.processedSave:I
14: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 16 1 embeddedCipher Lcom/sun/crypto/provider/SymmetricCipher;
MethodParameters:
Name Flags
embeddedCipher
java.lang.String getFeedback();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "GCM"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnonnull 3
1: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
ifnull 5
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
invokevirtual com.sun.crypto.provider.GCTR.reset:()V
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
ifnull 6
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.reset:()V
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
7: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
ifnull 10
9: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
void save();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
putfield com.sun.crypto.provider.GaloisCounterMode.processedSave:I
1: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAADSave:I
2: aload 0
3: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnull 4
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 5
4: StackMap locals:
StackMap stack: com.sun.crypto.provider.GaloisCounterMode
aconst_null
goto 6
StackMap locals:
StackMap stack: com.sun.crypto.provider.GaloisCounterMode
5: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
6: StackMap locals: com.sun.crypto.provider.GaloisCounterMode
StackMap stack: com.sun.crypto.provider.GaloisCounterMode byte[]
putfield com.sun.crypto.provider.GaloisCounterMode.aadBufferSave:[B
7: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
ifnull 8
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
invokevirtual com.sun.crypto.provider.GCTR.save:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
ifnull 9
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.save:()V
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
ifnull 11
10: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
putfield com.sun.crypto.provider.GaloisCounterMode.ibufferSave:[B
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
void restore();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processedSave:I
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
1: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAADSave:I
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
2: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnull 6
3: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
4: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBufferSave:[B
ifnull 6
5: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBufferSave:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBufferSave:[B
arraylength
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
ifnull 7
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
invokevirtual com.sun.crypto.provider.GCTR.restore:()V
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
ifnull 8
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.restore:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
ifnull 11
9: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
10: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibufferSave:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibufferSave:[B
arraylength
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
void init(boolean, java.lang.String, byte[], byte[]);
descriptor: (ZLjava/lang/String;[B[B)V
flags: (0x0000)
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
aload 2
aload 3
aload 4
getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
invokevirtual com.sun.crypto.provider.GaloisCounterMode.init:(ZLjava/lang/String;[B[BI)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 2 1 decrypting Z
0 2 2 algorithm Ljava/lang/String;
0 2 3 key [B
0 2 4 iv [B
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
decrypting
algorithm
key
iv
void init(boolean, java.lang.String, byte[], byte[], int);
descriptor: (ZLjava/lang/String;[B[BI)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Internal error"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 4
ifnonnull 4
3: new java.security.InvalidAlgorithmParameterException
dup
ldc "Internal error"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 4
arraylength
ifne 6
5: new java.security.InvalidAlgorithmParameterException
dup
ldc "IV is empty"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
iconst_0
aload 2
aload 3
invokevirtual com.sun.crypto.provider.SymmetricCipher.init:(ZLjava/lang/String;[B)V
7: aload 0
bipush 16
newarray 8
putfield com.sun.crypto.provider.GaloisCounterMode.subkeyH:[B
8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
bipush 16
newarray 8
iconst_0
9: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.subkeyH:[B
iconst_0
10: invokevirtual com.sun.crypto.provider.SymmetricCipher.encryptBlock:([BI[BI)V
11: aload 0
aload 4
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
12: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.subkeyH:[B
invokestatic com.sun.crypto.provider.GaloisCounterMode.getJ0:([B[B)[B
putfield com.sun.crypto.provider.GaloisCounterMode.preCounterBlock:[B
13: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.preCounterBlock:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
astore 6
start local 6 14: aload 6
invokestatic com.sun.crypto.provider.GaloisCounterMode.increment32:([B)V
15: aload 0
new com.sun.crypto.provider.GCTR
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 6
invokespecial com.sun.crypto.provider.GCTR.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;[B)V
putfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
16: aload 0
new com.sun.crypto.provider.GHASH
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.subkeyH:[B
invokespecial com.sun.crypto.provider.GHASH.<init>:([B)V
putfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
17: aload 0
iload 5
putfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
18: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnonnull 21
19: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
20: goto 22
21: StackMap locals: byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
22: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
23: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
24: iload 1
ifeq 26
25: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
26: StackMap locals:
StackMap stack:
return
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 27 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 27 1 decrypting Z
0 27 2 algorithm Ljava/lang/String;
0 27 3 keyValue [B
0 27 4 ivValue [B
0 27 5 tagLenBytes I
14 27 6 j0Plus1 [B
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
decrypting
algorithm
keyValue
ivValue
tagLenBytes
void updateAAD(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnull 3
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
2: goto 6
3: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
4: ldc "Update has been called; no more AAD data"
5: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 7 1 src [B
0 7 2 offset I
0 7 3 len I
MethodParameters:
Name Flags
src
offset
len
void processAAD();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
ifnull 14
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifle 13
2: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 1
start local 1 3: aload 0
aload 1
arraylength
putfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
4: aload 1
arraylength
bipush 16
irem
istore 2
start local 2 5: iload 2
ifeq 12
6: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 1
iconst_0
aload 1
arraylength
iload 2
isub
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
7: aload 1
aload 1
arraylength
iload 2
isub
8: iload 2
9: invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BII)[B
astore 3
start local 3 10: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 3
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
end local 3 11: goto 13
12: StackMap locals: byte[] int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 1
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
end local 2 end local 1 13: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.aadBuffer:Ljava/io/ByteArrayOutputStream;
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
3 13 1 aad [B
5 13 2 lastLen I
10 11 3 padded [B
void doLastBlock(byte[], int, int, byte[], int, boolean);
descriptor: ([BII[BIZ)V
flags: (0x0000)
Code:
stack=6, locals=13, 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: iload 3
istore 9
start local 9 1: iload 6
ifeq 5
2: aload 4
astore 7
start local 7 3: iload 5
istore 8
start local 8 4: goto 7
end local 8 end local 7 5: StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[] int int top top int
StackMap stack:
aload 1
astore 7
start local 7 6: iload 2
istore 8
start local 8 7: StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[] int int byte[] int int
StackMap stack:
iload 3
ldc 65536
if_icmple 20
8: iconst_0
istore 10
start local 10 9: iload 3
sipush 1024
idiv
istore 12
start local 12 10: goto 17
11: StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[] int int byte[] int int int top int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
aload 1
iload 2
bipush 96
aload 4
iload 5
invokevirtual com.sun.crypto.provider.GCTR.update:([BII[BI)I
istore 11
start local 11 12: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 7
iload 8
iload 11
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
13: iload 2
iload 11
iadd
istore 2
14: iload 5
iload 11
iadd
istore 5
15: iload 8
iload 11
iadd
istore 8
16: iinc 10 1
end local 11 17: StackMap locals:
StackMap stack:
iload 12
iload 10
if_icmpgt 11
18: iload 9
iload 12
bipush 96
imul
isub
istore 9
19: aload 0
dup
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
iload 12
bipush 96
imul
iadd
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
end local 12 end local 10 20: StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[] int int byte[] int int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
aload 1
iload 2
iload 9
aload 4
iload 5
invokevirtual com.sun.crypto.provider.GCTR.doFinal:([BII[BI)I
pop
21: aload 0
dup
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
iload 9
iadd
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
22: iload 9
bipush 16
irem
istore 10
start local 10 23: iload 10
ifeq 29
24: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 7
iload 8
iload 9
iload 10
isub
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
25: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
26: aload 7
iload 8
iload 9
iadd
iload 10
isub
iload 10
invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BII)[B
27: invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
28: goto 30
29: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 7
iload 8
iload 9
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
30: StackMap locals:
StackMap stack:
return
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 31 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 31 1 in [B
0 31 2 inOfs I
0 31 3 len I
0 31 4 out [B
0 31 5 outOfs I
0 31 6 isEncrypt Z
3 5 7 ct [B
6 31 7 ct [B
4 5 8 ctOfs I
7 31 8 ctOfs I
1 31 9 ilen I
9 20 10 i I
12 17 11 tlen I
10 20 12 count I
23 31 10 lastLen I
Exceptions:
throws javax.crypto.IllegalBlockSizeException
MethodParameters:
Name Flags
in
inOfs
len
out
outOfs
isEncrypt
int encrypt(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=6, locals=6, 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
getfield com.sun.crypto.provider.GaloisCounterMode.blockSize:I
invokestatic sun.security.util.ArrayUtil.blockSizeCheck:(II)V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
iload 3
invokestatic com.sun.crypto.provider.GaloisCounterMode.checkDataLength:(II)V
2: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.processAAD:()V
3: iload 3
ifle 9
4: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
5: aload 4
iload 5
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
6: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.gctrPAndC:Lcom/sun/crypto/provider/GCTR;
aload 1
iload 2
iload 3
aload 4
iload 5
invokevirtual com.sun.crypto.provider.GCTR.update:([BII[BI)I
pop
7: aload 0
dup
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
iload 3
iadd
putfield com.sun.crypto.provider.GaloisCounterMode.processed:I
8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 4
iload 5
iload 3
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)V
9: StackMap locals:
StackMap stack:
iload 3
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 10 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 10 1 in [B
0 10 2 inOfs I
0 10 3 len I
0 10 4 out [B
0 10 5 outOfs I
MethodParameters:
Name Flags
in
inOfs
len
out
outOfs
int encryptFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
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
ldc 2147483647
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
if_icmple 4
1: new javax.crypto.ShortBufferException
dup
2: ldc "Can't fit both data and tag into one buffer"
3: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 4
iload 5
5: iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
iadd
6: 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 too small"
invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
iload 3
invokestatic com.sun.crypto.provider.GaloisCounterMode.checkDataLength:(II)V
11: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.processAAD:()V
12: iload 3
ifle 15
13: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
14: aload 0
aload 1
iload 2
iload 3
aload 4
iload 5
iconst_1
invokevirtual com.sun.crypto.provider.GaloisCounterMode.doLastBlock:([BII[BIZ)V
15: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(II)[B
16: astore 6
start local 6 17: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 6
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
18: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 7
start local 7 19: aload 7
arraylength
newarray 8
astore 8
start local 8 20: new com.sun.crypto.provider.GCTR
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.preCounterBlock:[B
invokespecial com.sun.crypto.provider.GCTR.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;[B)V
astore 9
start local 9 21: aload 9
aload 7
iconst_0
aload 7
arraylength
aload 8
iconst_0
invokevirtual com.sun.crypto.provider.GCTR.doFinal:([BII[BI)I
pop
22: aload 8
iconst_0
aload 4
iload 5
iload 3
iadd
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
23: iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
iadd
ireturn
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 24 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 24 1 in [B
0 24 2 inOfs I
0 24 3 len I
0 24 4 out [B
0 24 5 outOfs I
17 24 6 lengthBlock [B
19 24 7 s [B
20 24 8 sOut [B
21 24 9 gctrForSToTag Lcom/sun/crypto/provider/GCTR;
Exception table:
from to target type
4 7 8 Class java.lang.ArrayIndexOutOfBoundsException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
len
out
outOfs
int decrypt(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
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: iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.blockSize:I
invokestatic sun.security.util.ArrayUtil.blockSizeCheck:(II)V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
iload 3
invokestatic com.sun.crypto.provider.GaloisCounterMode.checkDataLength:(II)V
2: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.processAAD:()V
3: iload 3
ifle 6
4: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
5: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
6: 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 7 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 7 1 in [B
0 7 2 inOfs I
0 7 3 len I
0 7 4 out [B
0 7 5 outOfs I
MethodParameters:
Name Flags
in
inOfs
len
out
outOfs
int decryptFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=7, locals=13, 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
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmpge 2
1: new javax.crypto.AEADBadTagException
dup
ldc "Input too short - need tag"
invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
invokestatic com.sun.crypto.provider.GaloisCounterMode.checkDataLength:(II)V
3: aload 4
iload 5
4: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
iload 3
iadd
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
5: invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
6: goto 9
StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
7: pop
8: new javax.crypto.ShortBufferException
dup
ldc "Output buffer too small"
invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.processAAD:()V
10: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
11: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
newarray 8
astore 6
start local 6 12: aload 1
iload 2
iload 3
iadd
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
aload 6
iconst_0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: iload 3
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
isub
istore 3
14: aload 1
aload 4
if_acmpeq 15
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifle 21
15: StackMap locals: byte[]
StackMap stack:
iload 3
ifle 17
16: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
17: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 1
18: iconst_0
istore 2
19: aload 1
arraylength
istore 3
20: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
21: StackMap locals:
StackMap stack:
iload 3
ifle 23
22: aload 0
aload 1
iload 2
iload 3
aload 4
iload 5
iconst_0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.doLastBlock:([BII[BIZ)V
23: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.sizeOfAAD:I
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.processed:I
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(II)[B
24: astore 7
start local 7 25: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
aload 7
invokevirtual com.sun.crypto.provider.GHASH.update:([B)V
26: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ghashAllToS:Lcom/sun/crypto/provider/GHASH;
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 8
start local 8 27: aload 8
arraylength
newarray 8
astore 9
start local 9 28: new com.sun.crypto.provider.GCTR
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.embeddedCipher:Lcom/sun/crypto/provider/SymmetricCipher;
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.preCounterBlock:[B
invokespecial com.sun.crypto.provider.GCTR.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;[B)V
astore 10
start local 10 29: aload 10
aload 8
iconst_0
aload 8
arraylength
aload 9
iconst_0
invokevirtual com.sun.crypto.provider.GCTR.doFinal:([BII[BI)I
pop
30: iconst_0
istore 11
start local 11 31: iconst_0
istore 12
start local 12 32: goto 35
33: StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[] int byte[] byte[] byte[] byte[] com.sun.crypto.provider.GCTR int int
StackMap stack:
iload 11
aload 6
iload 12
baload
aload 9
iload 12
baload
ixor
ior
istore 11
34: iinc 12 1
StackMap locals:
StackMap stack:
35: iload 12
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
if_icmplt 33
end local 12 36: iload 11
ifeq 38
37: new javax.crypto.AEADBadTagException
dup
ldc "Tag mismatch!"
invokespecial javax.crypto.AEADBadTagException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
iload 3
ireturn
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 39 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 39 1 in [B
0 39 2 inOfs I
0 39 3 len I
0 39 4 out [B
0 39 5 outOfs I
12 39 6 tag [B
25 39 7 lengthBlock [B
27 39 8 s [B
28 39 9 sOut [B
29 39 10 gctrForSToTag Lcom/sun/crypto/provider/GCTR;
31 39 11 mismatch I
32 36 12 i I
Exception table:
from to target type
3 6 7 Class java.lang.ArrayIndexOutOfBoundsException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.AEADBadTagException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
len
out
outOfs
int getTagLen();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
int getBufferedLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.ibuffer:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
}
SourceFile: "GaloisCounterMode.java"