org.bouncycastle.crypto.engines

Class SkipjackEngine

public class SkipjackEngine extends Object implements BlockCipher

a class that provides a basic SKIPJACK engine.
Method Summary
intdecryptBlock(byte[] in, int inOff, byte[] out, int outOff)
intencryptBlock(byte[] in, int inOff, byte[] out, int outOff)
StringgetAlgorithmName()
intgetBlockSize()
voidinit(boolean encrypting, CipherParameters params)
initialise a SKIPJACK cipher.
intprocessBlock(byte[] in, int inOff, byte[] out, int outOff)
voidreset()

Method Detail

decryptBlock

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

encryptBlock

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

getAlgorithmName

public String getAlgorithmName()

getBlockSize

public int getBlockSize()

init

public void init(boolean encrypting, CipherParameters params)
initialise a SKIPJACK cipher.

Parameters: encrypting whether or not we are for encryption. params the parameters required to set up the cipher.

Throws: IllegalArgumentException if the params argument is inappropriate.

processBlock

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

reset

public void reset()