org.bouncycastle.crypto.engines
Class RC564Engine
java.lang.Object
org.bouncycastle.crypto.engines.RC564Engine
- BlockCipher
public class RC564Engine
extends java.lang.Object
The specification for RC5 came from the
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.
RC564Engine() - Create an instance of the RC5 encryption algorithm
and set some defaults
|
RC564Engine
public RC564Engine()
Create an instance of the RC5 encryption algorithm
and set some defaults
init
public void init(boolean forEncryption,
CipherParameters params)
initialise a RC5-64 cipher.
- init in interface BlockCipher
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)
- processBlock in interface BlockCipher