public class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher extends org.bouncycastle.crypto.BufferedBlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
super_class: org.bouncycastle.crypto.BufferedBlockCipher
{
org.bouncycastle.crypto.paddings.BlockCipherPadding padding;
descriptor: Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
flags: (0x0000)
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=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bouncycastle.crypto.BufferedBlockCipher.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
2: aload 0
aload 2
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
3: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
4: aload 0
iconst_0
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 6 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
0 6 2 padding Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
MethodParameters:
Name Flags
cipher
padding
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
new org.bouncycastle.crypto.paddings.PKCS7Padding
dup
invokespecial org.bouncycastle.crypto.paddings.PKCS7Padding.<init>:()V
invokespecial org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;Lorg/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/paddings/PaddedBufferedBlockCipher;
0 2 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
MethodParameters:
Name Flags
cipher
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.forEncryption:Z
1: aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
2: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithRandom
ifeq 7
3: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithRandom
astore 3
start local 3 4: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getRandom:()Ljava/security/SecureRandom;
invokeinterface org.bouncycastle.crypto.paddings.BlockCipherPadding.init:(Ljava/security/SecureRandom;)V
5: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iload 1
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
end local 3 6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
aconst_null
invokeinterface org.bouncycastle.crypto.paddings.BlockCipherPadding.init:(Ljava/security/SecureRandom;)V
8: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iload 1
aload 2
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 10 1 forEncryption Z
0 10 2 params Lorg/bouncycastle/crypto/CipherParameters;
4 6 3 p Lorg/bouncycastle/crypto/params/ParametersWithRandom;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
forEncryption
params
public int getOutputSize(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
iadd
istore 2
start local 2 1: iload 2
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
irem
istore 3
start local 3 2: iload 3
ifne 6
3: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.forEncryption:Z
ifeq 5
4: iload 2
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
iadd
ireturn
5: StackMap locals: int int
StackMap stack:
iload 2
ireturn
6: StackMap locals:
StackMap stack:
iload 2
iload 3
isub
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
iadd
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 7 1 len I
1 7 2 total I
2 7 3 leftOver I
MethodParameters:
Name Flags
len
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.paddings.PaddedBufferedBlockCipher.bufOff:I
iadd
istore 2
start local 2 1: iload 2
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
irem
istore 3
start local 3 2: iload 3
ifne 4
3: iconst_0
iload 2
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
isub
invokestatic java.lang.Math.max:(II)I
ireturn
4: StackMap locals: int 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 5 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 5 1 len I
1 5 2 total I
2 5 3 leftOver I
MethodParameters:
Name Flags
len
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.paddings.PaddedBufferedBlockCipher.bufOff:I
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
if_icmpne 4
2: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
aload 2
iload 3
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
istore 4
3: aload 0
iconst_0
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
aload 0
dup
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
dup_x1
iconst_1
iadd
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
iload 1
bastore
5: 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/paddings/PaddedBufferedBlockCipher;
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.paddings.PaddedBufferedBlockCipher.getBlockSize:()I
istore 6
start local 6 3: aload 0
iload 3
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.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.OutputLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.OutputLengthException.<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.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.buf:[B
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.buf:[B
arraylength
if_icmpgt 16
20: StackMap locals:
StackMap stack:
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.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.paddings.PaddedBufferedBlockCipher.bufOff:I
iload 3
iadd
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
22: 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 23 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 23 1 in [B
0 23 2 inOff I
0 23 3 len I
0 23 4 out [B
0 23 5 outOff I
3 23 6 blockSize I
4 23 7 length I
8 23 8 resultLen I
9 23 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=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.forEncryption:Z
ifeq 13
3: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
iload 3
if_icmpne 9
4: iload 2
iconst_2
iload 3
imul
iadd
aload 1
arraylength
if_icmple 7
5: aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
6: new org.bouncycastle.crypto.OutputLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.OutputLengthException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: int int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
aload 1
iload 2
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
istore 4
8: aload 0
iconst_0
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
9: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
invokeinterface org.bouncycastle.crypto.paddings.BlockCipherPadding.addPadding:([BI)I
pop
10: iload 4
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
aload 1
iload 2
iload 4
iadd
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
iadd
istore 4
11: aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
12: goto 26
13: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
iload 3
if_icmpne 17
14: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
istore 4
15: aload 0
iconst_0
putfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.bufOff:I
16: goto 19
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
18: new org.bouncycastle.crypto.DataLengthException
dup
ldc "last block incomplete in decryption"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
iload 4
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.padding:Lorg/bouncycastle/crypto/paddings/BlockCipherPadding;
aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
invokeinterface org.bouncycastle.crypto.paddings.BlockCipherPadding.padCount:([B)I
isub
istore 4
20: aload 0
getfield org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.buf:[B
iconst_0
aload 1
iload 2
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: goto 25
22: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
23: aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
24: aload 5
athrow
25: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.reset:()V
26: StackMap locals:
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 27 0 this Lorg/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher;
0 27 1 out [B
0 27 2 outOff I
1 27 3 blockSize I
2 27 4 resultLen I
Exception table:
from to target type
19 22 22 any
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException, org.bouncycastle.crypto.InvalidCipherTextException
MethodParameters:
Name Flags
out
outOff
}
SourceFile: "PaddedBufferedBlockCipher.java"