fn XSalsa(comptime rounds: comptime_int) type
[src]
The XSalsa stream cipher.
Functions
fn xor(out: []u8, in: []const u8, counter: u64, key: [key_length]u8, nonce: [nonce_length]u8) void
Add the output of the XSalsa stream cipher to
in
and stores the result into `o…Add the output of the XSalsa stream cipher to
in
and stores the result intoout
. WARNING: This function doesn’t provide authenticated encryption. Using the AEAD or one of thebox
versions is usually preferred.