Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

pbkdf

bcrypt-pbkdf is a key derivation function based on bcrypt.

Unlike the password hashing function bcrypt, this function doesn't silently truncate passwords longer than 72 bytes.

bcrypt.pbkdf
pub fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void

File

lib/std/crypto/bcrypt.zig:564

Code

pub fn pbkdf(pass: []const u8, salt: []const u8, key: []u8, rounds: u32) !void {
    try crypto.pwhash.pbkdf2(key, pass, salt, rounds, pbkdf_prf);
}