public class org.bouncycastle.crypto.BufferedBlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.BufferedBlockCipher
super_class: java.lang.Object
{
protected byte[] buf;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected int bufOff;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected boolean forEncryption;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected org.bouncycastle.crypto.BlockCipher cipher;
descriptor: Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0004) ACC_PROTECTED
protected boolean partialBlockOkay;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected boolean pgpCFB;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
public void <init>(org.bouncycastle.crypto.BlockCipher);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
2: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
3: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
4: aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getAlgorithmName:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
iconst_1
iadd
istore 3
start local 3 6: aload 0
iload 3
ifle 7
aload 2
ldc "PGP"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifeq 7
iconst_1
goto 8
StackMap locals: org.bouncycastle.crypto.BufferedBlockCipher org.bouncycastle.crypto.BlockCipher java.lang.String int
StackMap stack: org.bouncycastle.crypto.BufferedBlockCipher
7: iconst_0
StackMap locals: org.bouncycastle.crypto.BufferedBlockCipher org.bouncycastle.crypto.BlockCipher java.lang.String int
StackMap stack: org.bouncycastle.crypto.BufferedBlockCipher int
8: putfield org.bouncycastle.crypto.BufferedBlockCipher.pgpCFB:Z
9: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.pgpCFB:Z
ifeq 12
10: aload 0
iconst_1
putfield org.bouncycastle.crypto.BufferedBlockCipher.partialBlockOkay:Z
11: goto 16
12: StackMap locals:
StackMap stack:
aload 0
iload 3
ifle 14
aload 2
ldc "CFB"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifne 13
aload 2
ldc "OFB"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifne 13
aload 2
ldc "OpenPGP"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifne 13
aload 2
ldc "SIC"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifne 13
aload 2
ldc "GCTR"
iload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;I)Z
ifeq 14
StackMap locals:
StackMap stack: org.bouncycastle.crypto.BufferedBlockCipher
13: iconst_1
goto 15
StackMap locals:
StackMap stack: org.bouncycastle.crypto.BufferedBlockCipher
14: iconst_0
StackMap locals: org.bouncycastle.crypto.BufferedBlockCipher org.bouncycastle.crypto.BlockCipher java.lang.String int
StackMap stack: org.bouncycastle.crypto.BufferedBlockCipher int
15: putfield org.bouncycastle.crypto.BufferedBlockCipher.partialBlockOkay:Z
16: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 17 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
5 17 2 name Ljava/lang/String;
6 17 3 idx I
MethodParameters:
Name Flags
cipher
public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher();
descriptor: ()Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield org.bouncycastle.crypto.BufferedBlockCipher.forEncryption:Z
1: aload 0
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.reset:()V
2: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iload 1
aload 2
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 4 1 forEncryption Z
0 4 2 params Lorg/bouncycastle/crypto/CipherParameters;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
forEncryption
params
public int getBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
public int getUpdateOutputSize(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iadd
istore 2
start local 2 1: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.pgpCFB:Z
ifeq 4
2: iload 2
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
irem
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
iconst_2
iadd
isub
istore 3
start local 3 3: goto 5
end local 3 4: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
irem
istore 3
start local 3 5: StackMap locals: int
StackMap stack:
iload 2
iload 3
isub
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 6 1 len I
1 6 2 total I
3 4 3 leftOver I
5 6 3 leftOver I
MethodParameters:
Name Flags
len
public int getOutputSize(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 1 1 length I
MethodParameters:
Name Flags
length
public int processByte(byte, byte[], int);
descriptor: (B[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
aload 0
dup
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
dup_x1
iconst_1
iadd
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iload 1
bastore
2: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
if_icmpne 5
3: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
aload 2
iload 3
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
istore 4
4: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
5: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 6 1 in B
0 6 2 out [B
0 6 3 outOff I
1 6 4 resultLen I
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException
MethodParameters:
Name Flags
in
out
outOff
public int processBytes(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
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
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.getBlockSize:()I
istore 6
start local 6 3: aload 0
iload 3
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.getUpdateOutputSize:(I)I
istore 7
start local 7 4: iload 7
ifle 7
5: iload 5
iload 7
iadd
aload 4
arraylength
if_icmple 7
6: new org.bouncycastle.crypto.DataLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: int int
StackMap stack:
iconst_0
istore 8
start local 8 8: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
isub
istore 9
start local 9 9: iload 3
iload 9
if_icmple 20
10: aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iload 9
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: iload 8
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
aload 4
iload 5
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
iadd
istore 8
12: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
13: iload 3
iload 9
isub
istore 3
14: iload 2
iload 9
iadd
istore 2
15: goto 19
16: StackMap locals: int int
StackMap stack:
iload 8
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 1
iload 2
aload 4
iload 5
iload 8
iadd
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
iadd
istore 8
17: iload 3
iload 6
isub
istore 3
18: iload 2
iload 6
iadd
istore 2
19: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
if_icmpgt 16
20: StackMap locals:
StackMap stack:
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: aload 0
dup
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iload 3
iadd
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
22: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
if_icmpne 25
23: iload 8
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
aload 4
iload 5
iload 8
iadd
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
iadd
istore 8
24: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
25: StackMap locals:
StackMap stack:
iload 8
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 26 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 26 1 in [B
0 26 2 inOff I
0 26 3 len I
0 26 4 out [B
0 26 5 outOff I
3 26 6 blockSize I
4 26 7 length I
8 26 8 resultLen I
9 26 9 gapLen I
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException
MethodParameters:
Name Flags
in
inOff
len
out
outOff
public int doFinal(byte[], int);
descriptor: ([BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 2
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
iadd
aload 1
arraylength
if_icmple 3
2: new org.bouncycastle.crypto.DataLengthException
dup
ldc "output buffer too short for doFinal()"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
ifeq 10
4: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.partialBlockOkay:Z
ifne 6
5: new org.bouncycastle.crypto.DataLengthException
dup
ldc "data not block size aligned"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
7: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
istore 3
8: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
9: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
iconst_0
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: StackMap locals:
StackMap stack:
iload 3
istore 5
11: aload 0
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.reset:()V
12: iload 5
ireturn
end local 3 13: StackMap locals: org.bouncycastle.crypto.BufferedBlockCipher byte[] int
StackMap stack: java.lang.Throwable
astore 4
14: aload 0
invokevirtual org.bouncycastle.crypto.BufferedBlockCipher.reset:()V
15: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/bouncycastle/crypto/BufferedBlockCipher;
0 16 1 out [B
0 16 2 outOff I
1 13 3 resultLen I
Exception table:
from to target type
0 11 13 any
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException, org.bouncycastle.crypto.InvalidCipherTextException
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.BufferedBlockCipher.buf:[B
iload 1
iconst_0
bastore
3: iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.buf:[B
arraylength
if_icmplt 2
end local 1 5: aload 0
iconst_0
putfield org.bouncycastle.crypto.BufferedBlockCipher.bufOff:I
6: aload 0
getfield org.bouncycastle.crypto.BufferedBlockCipher.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/BufferedBlockCipher;
1 5 1 i I
}
SourceFile: "BufferedBlockCipher.java"