fn Salsa(comptime rounds: comptime_int) type

The Salsa stream cipher.

Parameters

rounds: comptime_int,

Functions

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 `ou…

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.

Values

key_length
comptime_int

Key length in bytes.

nonce_length
comptime_int

Nonce length in bytes.