org.bouncycastle.crypto.engines

Class NoekeonEngine

Implemented Interfaces:
BlockCipher

public class NoekeonEngine
extends java.lang.Object
implements BlockCipher

A Noekeon engine, using direct-key mode.

Constructor Summary

NoekeonEngine()
Create an instance of the Noekeon 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

NoekeonEngine

public NoekeonEngine()
Create an instance of the Noekeon 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