abstract class org.bouncycastle.crypto.modes.gcm.GCMUtil
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.crypto.modes.gcm.GCMUtil
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // org.bouncycastle.crypto.modes.gcm.GCMUtil this
0: .line 6
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.bouncycastle.crypto.modes.gcm.GCMUtil this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/gcm/GCMUtil;
static byte[] oneAsBytes();
descriptor: ()[B
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: .line 10
bipush 16
newarray 8
astore 0 /* tmp */
start local 0 // byte[] tmp
1: .line 11
aload 0 /* tmp */
iconst_0
bipush -128
bastore
2: .line 12
aload 0 /* tmp */
areturn
end local 0 // byte[] tmp
LocalVariableTable:
Start End Slot Name Signature
1 3 0 tmp [B
static int[] oneAsInts();
descriptor: ()[I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: .line 17
iconst_4
newarray 10
astore 0 /* tmp */
start local 0 // int[] tmp
1: .line 18
aload 0 /* tmp */
iconst_0
ldc -2147483648
iastore
2: .line 19
aload 0 /* tmp */
areturn
end local 0 // int[] tmp
LocalVariableTable:
Start End Slot Name Signature
1 3 0 tmp [I
static int[] asInts(byte[]);
descriptor: ([B)[I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 // byte[] bs
0: .line 24
iconst_4
newarray 10
astore 1 /* us */
start local 1 // int[] us
1: .line 25
aload 1 /* us */
iconst_0
aload 0 /* bs */
iconst_0
invokestatic org.bouncycastle.crypto.util.Pack.bigEndianToInt:([BI)I
iastore
2: .line 26
aload 1 /* us */
iconst_1
aload 0 /* bs */
iconst_4
invokestatic org.bouncycastle.crypto.util.Pack.bigEndianToInt:([BI)I
iastore
3: .line 27
aload 1 /* us */
iconst_2
aload 0 /* bs */
bipush 8
invokestatic org.bouncycastle.crypto.util.Pack.bigEndianToInt:([BI)I
iastore
4: .line 28
aload 1 /* us */
iconst_3
aload 0 /* bs */
bipush 12
invokestatic org.bouncycastle.crypto.util.Pack.bigEndianToInt:([BI)I
iastore
5: .line 29
aload 1 /* us */
areturn
end local 1 // int[] us
end local 0 // byte[] bs
LocalVariableTable:
Start End Slot Name Signature
0 6 0 bs [B
1 6 1 us [I
MethodParameters:
Name Flags
bs
static void multiply(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 // byte[] block
start local 1 // byte[] val
0: .line 34
aload 0 /* block */
invokestatic org.bouncycastle.util.Arrays.clone:([B)[B
astore 2 /* tmp */
start local 2 // byte[] tmp
1: .line 35
bipush 16
newarray 8
astore 3 /* c */
start local 3 // byte[] c
2: .line 37
iconst_0
istore 4 /* i */
start local 4 // int i
3: goto 18
4: .line 39
StackMap locals: byte[] byte[] int
StackMap stack:
aload 1 /* val */
iload 4 /* i */
baload
istore 5 /* bits */
start local 5 // byte bits
5: .line 40
bipush 7
istore 6 /* j */
start local 6 // int j
6: goto 16
7: .line 42
StackMap locals: int int
StackMap stack:
iload 5 /* bits */
iconst_1
iload 6 /* j */
ishl
iand
ifeq 9
8: .line 44
aload 3 /* c */
aload 2 /* tmp */
invokestatic org.bouncycastle.crypto.modes.gcm.GCMUtil.xor:([B[B)V
9: .line 47
StackMap locals:
StackMap stack:
aload 2 /* tmp */
bipush 15
baload
iconst_1
iand
ifeq 10
iconst_1
goto 11
StackMap locals:
StackMap stack:
10: iconst_0
StackMap locals:
StackMap stack: int
11: istore 7 /* lsb */
start local 7 // boolean lsb
12: .line 48
aload 2 /* tmp */
invokestatic org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight:([B)V
13: .line 49
iload 7 /* lsb */
ifeq 15
14: .line 53
aload 2 /* tmp */
iconst_0
dup2
baload
bipush -31
ixor
i2b
bastore
end local 7 // boolean lsb
15: .line 40
StackMap locals:
StackMap stack:
iinc 6 /* j */ -1
StackMap locals:
StackMap stack:
16: iload 6 /* j */
ifge 7
end local 6 // int j
end local 5 // byte bits
17: .line 37
iinc 4 /* i */ 1
StackMap locals:
StackMap stack:
18: iload 4 /* i */
bipush 16
if_icmplt 4
end local 4 // int i
19: .line 58
aload 3 /* c */
iconst_0
aload 0 /* block */
iconst_0
bipush 16
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: .line 59
return
end local 3 // byte[] c
end local 2 // byte[] tmp
end local 1 // byte[] val
end local 0 // byte[] block
LocalVariableTable:
Start End Slot Name Signature
0 21 0 block [B
0 21 1 val [B
1 21 2 tmp [B
2 21 3 c [B
3 19 4 i I
5 17 5 bits B
6 17 6 j I
12 15 7 lsb Z
MethodParameters:
Name Flags
block
val
static void multiplyP(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 // int[] x
0: .line 64
aload 0 /* x */
iconst_3
iaload
iconst_1
iand
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1 /* lsb */
start local 1 // boolean lsb
3: .line 65
aload 0 /* x */
invokestatic org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight:([I)V
4: .line 66
iload 1 /* lsb */
ifeq 6
5: .line 70
aload 0 /* x */
iconst_0
dup2
iaload
ldc -520093696
ixor
iastore
6: .line 72
StackMap locals: int
StackMap stack:
return
end local 1 // boolean lsb
end local 0 // int[] x
LocalVariableTable:
Start End Slot Name Signature
0 7 0 x [I
3 7 1 lsb Z
MethodParameters:
Name Flags
x
static void multiplyP8(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 // int[] x
0: .line 76
bipush 8
istore 1 /* i */
start local 1 // int i
1: goto 4
2: .line 78
StackMap locals: int
StackMap stack:
aload 0 /* x */
invokestatic org.bouncycastle.crypto.modes.gcm.GCMUtil.multiplyP:([I)V
3: .line 76
iinc 1 /* i */ -1
StackMap locals:
StackMap stack:
4: iload 1 /* i */
ifne 2
end local 1 // int i
5: .line 80
return
end local 0 // int[] x
LocalVariableTable:
Start End Slot Name Signature
0 6 0 x [I
1 5 1 i I
MethodParameters:
Name Flags
x
static void shiftRight(byte[]);
descriptor: ([B)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 // byte[] block
0: .line 84
iconst_0
istore 1 /* i */
start local 1 // int i
1: .line 85
iconst_0
istore 2 /* bit */
start local 2 // int bit
2: .line 88
StackMap locals: int int
StackMap stack:
aload 0 /* block */
iload 1 /* i */
baload
sipush 255
iand
istore 3 /* b */
start local 3 // int b
3: .line 89
aload 0 /* block */
iload 1 /* i */
iload 3 /* b */
iconst_1
iushr
iload 2 /* bit */
ior
i2b
bastore
4: .line 90
iinc 1 /* i */ 1
iload 1 /* i */
bipush 16
if_icmpne 6
5: .line 92
goto 8
6: .line 94
StackMap locals: int
StackMap stack:
iload 3 /* b */
iconst_1
iand
bipush 7
ishl
istore 2 /* bit */
end local 3 // int b
7: .line 86
goto 2
8: .line 96
StackMap locals:
StackMap stack:
return
end local 2 // int bit
end local 1 // int i
end local 0 // byte[] block
LocalVariableTable:
Start End Slot Name Signature
0 9 0 block [B
1 9 1 i I
2 9 2 bit I
3 7 3 b I
MethodParameters:
Name Flags
block
static void shiftRight(int[]);
descriptor: ([I)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 // int[] block
0: .line 100
iconst_0
istore 1 /* i */
start local 1 // int i
1: .line 101
iconst_0
istore 2 /* bit */
start local 2 // int bit
2: .line 104
StackMap locals: int int
StackMap stack:
aload 0 /* block */
iload 1 /* i */
iaload
istore 3 /* b */
start local 3 // int b
3: .line 105
aload 0 /* block */
iload 1 /* i */
iload 3 /* b */
iconst_1
iushr
iload 2 /* bit */
ior
iastore
4: .line 106
iinc 1 /* i */ 1
iload 1 /* i */
iconst_4
if_icmpne 6
5: .line 108
goto 8
6: .line 110
StackMap locals: int
StackMap stack:
iload 3 /* b */
bipush 31
ishl
istore 2 /* bit */
end local 3 // int b
7: .line 102
goto 2
8: .line 112
StackMap locals:
StackMap stack:
return
end local 2 // int bit
end local 1 // int i
end local 0 // int[] block
LocalVariableTable:
Start End Slot Name Signature
0 9 0 block [I
1 9 1 i I
2 9 2 bit I
3 7 3 b I
MethodParameters:
Name Flags
block
static void xor(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 // byte[] block
start local 1 // byte[] val
0: .line 116
bipush 15
istore 2 /* i */
start local 2 // int i
1: goto 4
2: .line 118
StackMap locals: int
StackMap stack:
aload 0 /* block */
iload 2 /* i */
dup2
baload
aload 1 /* val */
iload 2 /* i */
baload
ixor
i2b
bastore
3: .line 116
iinc 2 /* i */ -1
StackMap locals:
StackMap stack:
4: iload 2 /* i */
ifge 2
end local 2 // int i
5: .line 120
return
end local 1 // byte[] val
end local 0 // byte[] block
LocalVariableTable:
Start End Slot Name Signature
0 6 0 block [B
0 6 1 val [B
1 5 2 i I
MethodParameters:
Name Flags
block
val
static void xor(int[], int[]);
descriptor: ([I[I)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 // int[] block
start local 1 // int[] val
0: .line 124
iconst_3
istore 2 /* i */
start local 2 // int i
1: goto 4
2: .line 126
StackMap locals: int
StackMap stack:
aload 0 /* block */
iload 2 /* i */
dup2
iaload
aload 1 /* val */
iload 2 /* i */
iaload
ixor
iastore
3: .line 124
iinc 2 /* i */ -1
StackMap locals:
StackMap stack:
4: iload 2 /* i */
ifge 2
end local 2 // int i
5: .line 128
return
end local 1 // int[] val
end local 0 // int[] block
LocalVariableTable:
Start End Slot Name Signature
0 6 0 block [I
0 6 1 val [I
1 5 2 i I
MethodParameters:
Name Flags
block
val
}
SourceFile: "GCMUtil.java"