Fix PBKDF2 docstring comment

This commit is contained in:
jcalabro 2023-05-01 12:57:05 -04:00 committed by Veikka Tuominen
parent e963793e37
commit 2892347440

View File

@ -49,7 +49,7 @@ const WeakParametersError = std.crypto.errors.WeakParametersError;
/// Larger iteration counts improve security by increasing the time required to compute
/// the dk. It is common to tune this parameter to achieve approximately 100ms.
///
/// Prf: Pseudo-random function to use. A common choice is `std.crypto.auth.hmac.HmacSha256`.
/// Prf: Pseudo-random function to use. A common choice is `std.crypto.auth.hmac.sha2.HmacSha256`.
pub fn pbkdf2(dk: []u8, password: []const u8, salt: []const u8, rounds: u32, comptime Prf: type) (WeakParametersError || OutputTooLongError)!void {
if (rounds < 1) return error.WeakParameters;