public class org.bouncycastle.crypto.macs.CBCBlockCipherMac implements org.bouncycastle.crypto.Mac
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.macs.CBCBlockCipherMac
super_class: java.lang.Object
{
private byte[] mac;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int bufOff;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.BlockCipher cipher;
descriptor: Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.paddings.BlockCipherPadding padding;
descriptor: Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
flags: (0x0002) ACC_PRIVATE
private int macSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.crypto.BlockCipher);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
bipush 8
imul
iconst_2
idiv
aconst_null
invokespecial org.bouncycastle.crypto.macs.CBCBlockCipherMac.<init>:(Lorg/bouncycastle/crypto/BlockCipher;ILorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 2 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
MethodParameters:
Name Flags
cipher
public void <init>(org.bouncycastle.crypto.BlockCipher, org.bouncycastle.crypto.paddings.BlockCipherPadding);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
bipush 8
imul
iconst_2
idiv
aload 2
invokespecial org.bouncycastle.crypto.macs.CBCBlockCipherMac.<init>:(Lorg/bouncycastle/crypto/BlockCipher;ILorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 2 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
0 2 2 padding Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
MethodParameters:
Name Flags
cipher
padding
public void <init>(org.bouncycastle.crypto.BlockCipher, int);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
aconst_null
invokespecial org.bouncycastle.crypto.macs.CBCBlockCipherMac.<init>:(Lorg/bouncycastle/crypto/BlockCipher;ILorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 2 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
0 2 2 macSizeInBits I
MethodParameters:
Name Flags
cipher
macSizeInBits
public void <init>(org.bouncycastle.crypto.BlockCipher, int, org.bouncycastle.crypto.paddings.BlockCipherPadding);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;ILorg/bouncycastle/crypto/paddings/BlockCipherPadding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 2
bipush 8
irem
ifeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "MAC size must be multiple of 8"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.crypto.macs.CBCBlockCipherMac org.bouncycastle.crypto.BlockCipher int org.bouncycastle.crypto.paddings.BlockCipherPadding
StackMap stack:
aload 0
new org.bouncycastle.crypto.modes.CBCBlockCipher
dup
aload 1
invokespecial org.bouncycastle.crypto.modes.CBCBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
4: aload 0
aload 3
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
5: aload 0
iload 2
bipush 8
idiv
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.macSize:I
6: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
7: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
8: aload 0
iconst_0
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 10 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
0 10 2 macSizeInBits I
0 10 3 padding Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
MethodParameters:
Name Flags
cipher
macSizeInBits
padding
public java.lang.String getAlgorithmName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getAlgorithmName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
public void init(org.bouncycastle.crypto.CipherParameters);
descriptor: (Lorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.crypto.macs.CBCBlockCipherMac.reset:()V
1: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iconst_1
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 3 1 params Lorg/bouncycastle/crypto/CipherParameters;
MethodParameters:
Name Flags
params
public int getMacSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.macSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
public void update(byte);
descriptor: (B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
arraylength
if_icmpne 3
1: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
3: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
aload 0
dup
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
dup_x1
iconst_1
iadd
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 1
bastore
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 5 1 in B
MethodParameters:
Name Flags
in
public void update(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Can't have a negative input length!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
istore 4
start local 4 3: iload 4
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
isub
istore 5
start local 5 4: iload 3
iload 5
if_icmple 15
5: aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
7: aload 0
iconst_0
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
8: iload 3
iload 5
isub
istore 3
9: iload 2
iload 5
iadd
istore 2
10: goto 14
11: StackMap locals: int int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
12: iload 3
iload 4
isub
istore 3
13: iload 2
iload 4
iadd
istore 2
14: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmpgt 11
15: StackMap locals:
StackMap stack:
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
16: aload 0
dup
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 3
iadd
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
17: return
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 18 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 18 1 in [B
0 18 2 inOff I
0 18 3 len I
3 18 4 blockSize I
4 18 5 gapLen I
MethodParameters:
Name Flags
in
inOff
len
public int doFinal(byte[], int);
descriptor: ([BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
istore 3
start local 3 1: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
ifnonnull 7
2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iconst_0
bastore
4: aload 0
dup
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iconst_1
iadd
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
5: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 3
if_icmplt 3
6: goto 11
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
iload 3
if_icmpne 10
8: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
9: aload 0
iconst_0
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
10: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
invokeinterface org.bouncycastle.crypto.paddings.BlockCipherPadding.addPadding:([BI)I
pop
11: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
12: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.mac:[B
iconst_0
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.macSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
invokevirtual org.bouncycastle.crypto.macs.CBCBlockCipherMac.reset:()V
14: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.macSize:I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
0 15 1 out [B
0 15 2 outOff I
1 15 3 blockSize I
MethodParameters:
Name Flags
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
iload 1
iconst_0
bastore
3: iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.buf:[B
arraylength
if_icmplt 2
end local 1 5: aload 0
iconst_0
putfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.bufOff:I
6: aload 0
getfield org.bouncycastle.crypto.macs.CBCBlockCipherMac.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.reset:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/crypto/macs/CBCBlockCipherMac;
1 5 1 i I
}
SourceFile: "CBCBlockCipherMac.java"