authorgravatar for jamesrcalabro@gmail.comjcalabro <jamesrcalabro@gmail.com> 2023-05-01 12:57:05-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-05-01 22:14:51+03:00
log28923474401051a9aa0bddd60904b9be64943dba
tree66d12b201ea70f3494b08c81d27c898e9f5425c9
parente963793e37f93d84f1e5295d309ebe0c738b663d

Fix PBKDF2 docstring comment


1 files changed, 1 insertions(+), 1 deletions(-)

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