org.bouncycastle.crypto.engines
Class RC4Engine
java.lang.Object
org.bouncycastle.crypto.engines.RC4Engine
- StreamCipher
public class RC4Engine
extends java.lang.Object
init
public void init(boolean forEncryption,
CipherParameters params)
initialise a RC4 cipher.
- init in interface StreamCipher
forEncryption
- whether or not we are for encryption.params
- the parameters required to set up the cipher.
processBytes
public void processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
- processBytes in interface StreamCipher