P-H-C / phc-winner-argon2

The password hash Argon2, winner of PHC
Other
4.74k stars 405 forks source link

Allow argon2_context to accept pointers to const buffers #337

Open slowriot opened 2 years ago

slowriot commented 2 years ago

Accepting pointers to non-const uint8_t buffers means const buffers have to have their constness cast away before passing to this structure. Argon2 doesn't modify any of these buffers except the output array out, so the rest should be pointers to const buffers.