org.bouncycastle.crypto.engines

Class NullEngine

public class NullEngine extends Object implements BlockCipher

The no-op engine that just copies bytes through, irrespective of whether encrypting and decrypting. Provided for the sake of completeness.
Field Summary
protected static intBLOCK_SIZE
Constructor Summary
NullEngine()
Standard constructor.
Method Summary
StringgetAlgorithmName()
intgetBlockSize()
voidinit(boolean forEncryption, CipherParameters params)
intprocessBlock(byte[] in, int inOff, byte[] out, int outOff)
voidreset()

Field Detail

BLOCK_SIZE

protected static final int BLOCK_SIZE

Constructor Detail

NullEngine

public NullEngine()
Standard constructor.

Method Detail

getAlgorithmName

public String getAlgorithmName()

getBlockSize

public int getBlockSize()

init

public void init(boolean forEncryption, CipherParameters params)

processBlock

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

reset

public void reset()