org.bouncycastle.crypto.engines

Class RC6Engine

Implemented Interfaces:
BlockCipher

public class RC6Engine
extends java.lang.Object
implements BlockCipher

An RC6 engine.

Constructor Summary

RC6Engine()
Create an instance of the RC6 encryption algorithm and set some defaults

Method Summary

String
getAlgorithmName()
int
getBlockSize()
void
init(boolean forEncryption, CipherParameters params)
initialise a RC5-32 cipher.
int
processBlock(byte[] in, int inOff, byte[] out, int outOff)
void
reset()

Constructor Details

RC6Engine

public RC6Engine()
Create an instance of the RC6 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 a RC5-32 cipher.
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