Table of Contents

Class Salsa20Engine

Namespace
Enterprises.Org.BouncyCastle.Crypto.Engines
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class Salsa20Engine : IStreamCipher
Inheritance
Salsa20Engine
Implements
Derived
Inherited Members

Constructors

Salsa20Engine()

public Salsa20Engine()

Salsa20Engine(int)

public Salsa20Engine(int rounds)

Parameters

rounds int

Fields

DEFAULT_ROUNDS

public static readonly int DEFAULT_ROUNDS

Field Value

int

rounds

protected int rounds

Field Value

int

sigma

[Obsolete]
protected static readonly byte[] sigma

Field Value

byte[]

tau

[Obsolete]
protected static readonly byte[] tau

Field Value

byte[]

Properties

AlgorithmName

public virtual string AlgorithmName { get; }

Property Value

string

NonceSize

protected virtual int NonceSize { get; }

Property Value

int

Methods

AdvanceCounter()

protected virtual void AdvanceCounter()

GenerateKeyStream(byte[])

protected virtual void GenerateKeyStream(byte[] output)

Parameters

output byte[]

Init(bool, ICipherParameters)

public virtual void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

ProcessBytes(byte[], int, int, byte[], int)

public virtual void ProcessBytes(byte[] inBytes, int inOff, int len, byte[] outBytes, int outOff)

Parameters

inBytes byte[]
inOff int
len int
outBytes byte[]
outOff int

Reset()

public virtual void Reset()

ResetCounter()

protected virtual void ResetCounter()

ReturnByte(byte)

public virtual byte ReturnByte(byte input)

Parameters

input byte

Returns

byte

SetKey(byte[], byte[])

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

Parameters

keyBytes byte[]
ivBytes byte[]