org.bouncycastle.crypto.engines
public class RC564Engine extends Object implements BlockCipher
RC5 Encryption Algorithm
publication in RSA CryptoBytes, Spring of 1995.
http://www.rsasecurity.com/rsalabs/cryptobytes.
This implementation is set to work with a 64 bit word size.
Implementation courtesy of Tito Pena.
| Constructor Summary | |
|---|---|
| RC564Engine()
Create an instance of the RC5 encryption algorithm
and set some defaults | |
| Method Summary | |
|---|---|
| String | getAlgorithmName() |
| int | getBlockSize() |
| void | init(boolean forEncryption, CipherParameters params)
initialise a RC5-64 cipher.
|
| int | processBlock(byte[] in, int inOff, byte[] out, int outOff) |
| void | reset() |
Parameters: forEncryption whether or not we are for encryption. params the parameters required to set up the cipher.
Throws: IllegalArgumentException if the params argument is inappropriate.