| ... | ... | @@ -49,7 +49,7 @@ const WeakParametersError = std.crypto.errors.WeakParametersError; |
| 49 | 49 | /// Larger iteration counts improve security by increasing the time required to compute |
| 50 | 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`. |
| 53 | 53 | pub fn pbkdf2(dk: []u8, password: []const u8, salt: []const u8, rounds: u32, comptime Prf: type) (WeakParametersError || OutputTooLongError)!void { |
| 54 | 54 | if (rounds < 1) return error.WeakParameters; |
| 55 | 55 | |