org.bouncycastle.crypto.engines

Class TEAEngine

Implemented Interfaces:
BlockCipher

public class TEAEngine
extends java.lang.Object
implements BlockCipher

An TEA engine.

Constructor Summary

TEAEngine()
Create an instance of the TEA encryption algorithm and set some defaults

Method Summary

String
getAlgorithmName()
int
getBlockSize()
void
init(boolean forEncryption, CipherParameters params)
initialise
int
processBlock(byte[] in, int inOff, byte[] out, int outOff)
void
reset()

Constructor Details

TEAEngine

public TEAEngine()
Create an instance of the TEA encryption algorithm and set some defaults

Method Details

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 forEncryption,
                 CipherParameters params)
initialise
Specified by:
init in interface BlockCipher
Parameters:
forEncryption - 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