Closed SethArchambault closed 1 year ago
Looks pretty good to me, thanks for the fix!
This may help more than you realise, such issues not only waste time (sorry about yours), they also tend to hurt whatever trust users may have in the library.
@LoupVaillant Cool, glad it helps! 😄
Appreciate your work, and glad this exists! 👍
Realizing now that I was conflating strlen with sizeof! 🤦 strlen would be a fine replacement for sizeof here that would avoid all confusion.
Closes: #264
Fixes these issues, by allowing password array to autosize, and then making sure to drop the \0 character when determining the size of the string, and also reorders the crypto_argon2_inputs field designators to remove a warning.