org.bouncycastle.crypto.engines
Class Salsa20Engine
java.lang.Object
org.bouncycastle.crypto.engines.Salsa20Engine
- StreamCipher
public class Salsa20Engine
extends java.lang.Object
Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005
init
public void init(boolean forEncryption,
CipherParameters params)
initialise a Salsa20 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