Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Aug 27, 2021

Uses Params internally within the Argon2 context, refactoring all of the logic related to parameter handling into that type/module:

  • Changes Argon2::new to accept explicit version and params
  • Factors apart Argon2::new and Argon2::new_with_secret, making the former infallible.
  • Makes the Params struct opaque with field accessors, and ensures it always represents a valid set of parameters.
  • Removes version parameter from hash_password_into, using the one supplied to Argon2::new.

@tarcieri tarcieri force-pushed the argon2/refactor-params-handling branch from 1dd30c2 to aaeae85 Compare August 27, 2021 17:14
Uses `Params` internally within the `Argon2` context, refactoring all of
the logic related to parameter handling into that type/module:

- Changes `Argon2::new` to accept explicit `version` and `params`
- Factors apart `Argon2::new` and `Argon2::new_with_secret`, making the
  former infallible.
- Makes the `Params` struct opaque with field accessors, and ensures it
  always represents a valid set of parameters.
- Removes `version` parameter from `hash_password_into`, using the one
  supplied to `Argon2::new`.
@tarcieri tarcieri force-pushed the argon2/refactor-params-handling branch from aaeae85 to 4ea898d Compare August 27, 2021 17:16
@tarcieri tarcieri merged commit fbe597c into master Aug 27, 2021
@tarcieri tarcieri deleted the argon2/refactor-params-handling branch August 27, 2021 17:19
@tarcieri tarcieri mentioned this pull request Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants