org.bouncycastle.crypto.modes

Class SICBlockCipher

public class SICBlockCipher extends Object implements BlockCipher

Implements the Segmented Integer Counter (SIC) mode on top of a simple block cipher. This mode is also known as CTR mode.
Constructor Summary
SICBlockCipher(BlockCipher c)
Basic constructor.
Method Summary
StringgetAlgorithmName()
intgetBlockSize()
BlockCiphergetUnderlyingCipher()
return the underlying block cipher that we are wrapping.
voidinit(boolean forEncryption, CipherParameters params)
intprocessBlock(byte[] in, int inOff, byte[] out, int outOff)
voidreset()

Constructor Detail

SICBlockCipher

public SICBlockCipher(BlockCipher c)
Basic constructor.

Parameters: c the block cipher to be used.

Method Detail

getAlgorithmName

public String getAlgorithmName()

getBlockSize

public int getBlockSize()

getUnderlyingCipher

public BlockCipher getUnderlyingCipher()
return the underlying block cipher that we are wrapping.

Returns: the underlying block cipher that we are wrapping.

init

public void init(boolean forEncryption, CipherParameters params)

processBlock

public int processBlock(byte[] in, int inOff, byte[] out, int outOff)

reset

public void reset()