fn xor(out: []u8, in: []const u8, counter: u64, key: [key_length]u8, nonce: [nonce_length]u8) void

Add the output of the Salsa stream cipher to in and stores the result into out. WARNING: This function doesn’t provide authenticated encryption. Using the AEAD or one of the box versions is usually preferred.

Parameters

out: []u8,
in: []const u8,
counter: u64,
key: [key_length]u8,
nonce: [nonce_length]u8,