Top Description Methods
org.bouncycastle.crypto

public Interface MultiBlockCipher

extends BlockCipher
Known Direct Subinterfaces
org.bouncycastle.crypto.modes.CBCModeCipher, org.bouncycastle.crypto.modes.CFBModeCipher, org.bouncycastle.crypto.modes.CTRModeCipher
Known Direct Implementers
org.bouncycastle.crypto.DefaultMultiBlockCipher

Base interface for a cipher engine capable of processing multiple blocks at a time.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the multi-block size for this cipher in bytes.
getMultiBlockSize
()

Return the multi-block size for this cipher (in bytes).

public int

Returns:

number of bytes written to out.
processBlocks
(byte[]
input data array.
in
,
int
start of input data in in.
inOff
,
int
number of blocks to be processed.
blockCount
,
byte[]
output data array.
out
,
int
start position for output data.
outOff
)

Process blockCount blocks from input in offset inOff and place the output in out from offset outOff.

Inherited from org.bouncycastle.crypto.BlockCipher:
getAlgorithmNamegetBlockSizeinitprocessBlockreset

Method Detail

getMultiBlockSizeback to summary
public int getMultiBlockSize()

Return the multi-block size for this cipher (in bytes).

Returns:int

the multi-block size for this cipher in bytes.

processBlocksback to summary
public int processBlocks(byte[] in, int inOff, int blockCount, byte[] out, int outOff) throws DataLengthException, IllegalStateException

Process blockCount blocks from input in offset inOff and place the output in out from offset outOff.

Parameters
in:byte[]

input data array.

inOff:int

start of input data in in.

blockCount:int

number of blocks to be processed.

out:byte[]

output data array.

outOff:int

start position for output data.

Returns:int

number of bytes written to out.