Algorithm Property
The Salsa20 algorithm.
Syntax
public var algorithm: Salsa20Algorithms
public enum class Salsa20Algorithms(val value: Int) {
saSALSA20(0),
saXSALSA20(1);
}
Default Value
1
Remarks
This property specifies the Salsa implementation to use. Possible values are:
- 0 (Salsa20)
- 1 (XSalsa20 - default)
The XSalsa20 algorithm is recommended and generally to be considered more secure. The Salsa20 algorithm is fully supported for implementations that require this. In addition the reduced 12 and 8 round variants of Salsa20 are also supported, please see SalsaRounds for details.