-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argon2: more const-ness #450
Conversation
With both above approaches out of the question I see no other alternative than to make a breaking change here and wait for a merge with the next breaking change. Also I don't necessarily think that opening an issue to go alongside this is a good idea. |
I think this PR could've benefitted from some up-front design discussion. I'm not sure it necessarily makes sense to constify the builder. And doing so, at least the way you propose, means copying the entire thing every time you use any builder method. There are some tradeoffs there I think are worth discussing. |
Well I don't want to duplicate any code from the Builder's
Since I do not see us coming on a common factor I will just keep using my fork of password-hashes argon2 for now until something is implemented. Also the change 6e9662a would not copy the Builder, it moves it which is something different. |
Okay, so it seems like part of the problem for now is But Perhaps instead of trying to constify the |
Changed as requested. |
Thank you! |
Redo of #438 after #440.
Rebased original PR, then applied fixes and then sqashed