public class ChaCha7539Engine extends Salsa20Engine
DEFAULT_ROUNDS, engineState, rounds, x
Constructor and Description |
---|
ChaCha7539Engine()
Creates a 20 rounds ChaCha engine.
|
Modifier and Type | Method and Description |
---|---|
protected void |
advanceCounter() |
protected void |
advanceCounter(long diff) |
protected void |
generateKeyStream(byte[] output) |
java.lang.String |
getAlgorithmName()
Return the name of the algorithm the cipher implements.
|
protected long |
getCounter() |
protected int |
getNonceSize() |
protected void |
resetCounter() |
protected void |
retreatCounter() |
protected void |
retreatCounter(long diff) |
protected void |
setKey(byte[] keyBytes,
byte[] ivBytes) |
getPosition, init, packTauOrSigma, processBytes, reset, returnByte, salsaCore, seekTo, skip
public java.lang.String getAlgorithmName()
StreamCipher
getAlgorithmName
in interface StreamCipher
getAlgorithmName
in class Salsa20Engine
protected int getNonceSize()
getNonceSize
in class Salsa20Engine
protected void advanceCounter(long diff)
advanceCounter
in class Salsa20Engine
protected void advanceCounter()
advanceCounter
in class Salsa20Engine
protected void retreatCounter(long diff)
retreatCounter
in class Salsa20Engine
protected void retreatCounter()
retreatCounter
in class Salsa20Engine
protected long getCounter()
getCounter
in class Salsa20Engine
protected void resetCounter()
resetCounter
in class Salsa20Engine
protected void setKey(byte[] keyBytes, byte[] ivBytes)
setKey
in class Salsa20Engine
protected void generateKeyStream(byte[] output)
generateKeyStream
in class Salsa20Engine