Class ChaCha7539Engine
- Namespace
- Org.BouncyCastle.Crypto.Engines
- Assembly
- BouncyCastle.Cryptography.dll
Implementation of Daniel J. Bernstein's ChaCha stream cipher.
public class ChaCha7539Engine : Salsa20Engine, IStreamCipher
- Inheritance
-
ChaCha7539Engine
- Implements
- Inherited Members
Constructors
ChaCha7539Engine()
Creates a 20 rounds ChaCha engine.
public ChaCha7539Engine()
Properties
AlgorithmName
The name of the algorithm this cipher implements.
public override string AlgorithmName { get; }
Property Value
NonceSize
protected override int NonceSize { get; }
Property Value
Methods
AdvanceCounter()
protected override void AdvanceCounter()
GenerateKeyStream(byte[])
protected override void GenerateKeyStream(byte[] output)
Parameters
outputbyte[]
ResetCounter()
protected override void ResetCounter()
SetKey(byte[], byte[])
protected override void SetKey(byte[] keyBytes, byte[] ivBytes)