XSalsa20EngineSetKey Method
XSalsa20 key generation: process 256 bit input key and 128 bits of the input nonce
using a core Salsa20 function without input addition to produce 256 bit working key
and use that with the remaining 64 bits of nonce to initialize a standard Salsa20 engine state.
Namespace: Org.BouncyCastle.Crypto.EnginesAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
protected override void SetKey(
byte[] keyBytes,
byte[] ivBytes
)
Protected Overrides Sub SetKey (
keyBytes As Byte(),
ivBytes As Byte()
)
function SetKey(keyBytes, ivBytes);
Parameters
- keyBytes Byte
-
- ivBytes Byte
-