Table of Contents

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

string

NonceSize

protected override int NonceSize { get; }

Property Value

int

Methods

AdvanceCounter()

protected override void AdvanceCounter()

GenerateKeyStream(byte[])

protected override void GenerateKeyStream(byte[] output)

Parameters

output byte[]

ResetCounter()

protected override void ResetCounter()

SetKey(byte[], byte[])

protected override void SetKey(byte[] keyBytes, byte[] ivBytes)

Parameters

keyBytes byte[]
ivBytes byte[]