org.bouncycastle.crypto.engines

Class SkipjackEngine

Implemented Interfaces:
BlockCipher

public class SkipjackEngine
extends java.lang.Object
implements BlockCipher

a class that provides a basic SKIPJACK engine.

Method Summary

int
decryptBlock(byte[] in, int inOff, byte[] out, int outOff)
int
encryptBlock(byte[] in, int inOff, byte[] out, int outOff)
String
getAlgorithmName()
int
getBlockSize()
void
init(boolean encrypting, CipherParameters params)
initialise a SKIPJACK cipher.
int
processBlock(byte[] in, int inOff, byte[] out, int outOff)
void
reset()

Method Details

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()
Specified by:
getAlgorithmName in interface BlockCipher


getBlockSize

public int getBlockSize()
Specified by:
getBlockSize in interface BlockCipher


init

public void init(boolean encrypting,
                 CipherParameters params)
initialise a SKIPJACK cipher.
Specified by:
init in interface BlockCipher

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


processBlock

public int processBlock(byte[] in,
                        int inOff,
                        byte[] out,
                        int outOff)
Specified by:
processBlock in interface BlockCipher


reset

public void reset()
Specified by:
reset in interface BlockCipher