Creates a ChaCha RNG using the given seed and number of double rounds.
- Namespace
- RandN
.Rngs - Containing Type
- ChaCha
Syntax
public static ChaCha Create(ChaCha.Seed seed, uint doubleRounds)
Parameters
Name | Type | Description |
---|---|---|
seed | ChaCha | A seed containing the key and stream. |
doubleRounds | uint | The number of double rounds to perform. Half the total number of rounds, ex. ChaCha20 has 10 double rounds and ChaCha8 has 4 double rounds. |
Return Value
Type | Description |
---|---|
ChaCha |