fn kdf(allocator: mem.Allocator, derived_key: []u8, password: []const u8, salt: []const u8, params: Params, mode: Mode) KdfError!void

Derives a key from the password, salt, and argon2 parameters.

Derived key has to be at least 4 bytes length.

Salt has to be at least 8 bytes length.

Parameters

allocator: mem.Allocator,
derived_key: []u8,
password: []const u8,
salt: []const u8,
params: Params,
mode: Mode,