diff options
author | the <[email protected]> | 2021-02-15 15:50:12 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-15 15:50:12 -0500 |
commit | 2b409aeed27528737b168f54ee57b19a28a9bb17 (patch) | |
tree | 29b61b2b91a9a9527b3b5f3d96dc84b84e33f076 | |
parent | 86a7e3e58930cf98f3a39bb9b700ee4b2acea40f (diff) |
update docs in code
-rw-r--r-- | src/lib/pbkdf/pwdhash.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/pbkdf/pwdhash.h b/src/lib/pbkdf/pwdhash.h index ba64a73fd..4255e1d43 100644 --- a/src/lib/pbkdf/pwdhash.h +++ b/src/lib/pbkdf/pwdhash.h @@ -142,14 +142,12 @@ class BOTAN_PUBLIC_API(2,8) PasswordHashFamily virtual std::unique_ptr<PasswordHash> from_iterations(size_t iterations) const = 0; /** - * Create a password hash using some scheme specific format. - * Eg PBKDF2 and PGP-S2K set iterations in i1 - * Scrypt uses N,r,p in i{1-3} - * Bcrypt-PBKDF just has iterations - * Argon2{i,d,id} would use iterations, memory, parallelism for i{1-3}, - * and Argon2 type is part of the family. + * Create a password hash using some scheme specific format. Parameters are as follows: + * - For PBKDF2, PGP-S2K, and Bcrypt-PBKDF, i1 is iterations + * - Scrypt uses N, r, p for i{1-3} + * - Argon2 family uses memory (in KB), iterations, and parallelism for i{1-3} * - * Values not needed should be set to 0 + * All unneeded parameters should be set to 0 or left blank. */ virtual std::unique_ptr<PasswordHash> from_params( size_t i1, |