Top Description Fields Constructors Methods
org.bouncycastle.crypto.engines

public Class ChaCha7539Engine

extends Salsa20Engine
Class Inheritance
Imports
org.bouncycastle.util.Pack

Implementation of Daniel J. Bernstein's ChaCha stream cipher.

Field Summary

Inherited from org.bouncycastle.crypto.engines.Salsa20Engine:
DEFAULT_ROUNDSengineStateroundssigmataux

Constructor Summary

AccessConstructor and Description
public
ChaCha7539Engine()

Creates a 20 rounds ChaCha engine.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected void
public String
protected long
protected int
protected void
protected void
protected void
protected void
setKey(byte[] keyBytes, byte[] ivBytes)

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.setKey.

Inherited from org.bouncycastle.crypto.engines.Salsa20Engine:
getPositioninitpackTauOrSigmaprocessBytesresetreturnBytesalsaCoreseekToskip

Constructor Detail

ChaCha7539Engineback to summary
public ChaCha7539Engine()

Creates a 20 rounds ChaCha engine.

Method Detail

advanceCounterback to summary
protected void advanceCounter(long diff)

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.advanceCounter.

advanceCounterback to summary
protected void advanceCounter()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.advanceCounter.

generateKeyStreamback to summary
protected void generateKeyStream(byte[] output)

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.generateKeyStream.

getAlgorithmNameback to summary
public String getAlgorithmName()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.getAlgorithmName.

Implements org.bouncycastle.crypto.StreamCipher.getAlgorithmName.

Doc from org.bouncycastle.crypto.StreamCipher.getAlgorithmName.

Return the name of the algorithm the cipher implements.

Returns:String

the name of the algorithm the cipher implements.

getCounterback to summary
protected long getCounter()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.getCounter.

getNonceSizeback to summary
protected int getNonceSize()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.getNonceSize.

resetCounterback to summary
protected void resetCounter()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.resetCounter.

retreatCounterback to summary
protected void retreatCounter(long diff)

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.retreatCounter.

retreatCounterback to summary
protected void retreatCounter()

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.retreatCounter.

setKeyback to summary
protected void setKey(byte[] keyBytes, byte[] ivBytes)

Overrides org.bouncycastle.crypto.engines.Salsa20Engine.setKey.