argon2: more const-ness#450
argon2: more const-ness#450tarcieri merged 6 commits intoRustCrypto:masterfrom C0D3-M4513R:merge-master
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