Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update crypto_argon2.3monocypher - fixes errors and warnings that can…
… lead to incorrect solution 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. ``` main.cpp:83:24: error: initializer-string for char array is too long, array size is 14 but initializer has size 15 (including the null terminating character) uint8_t password[14] = "Okay Password!"; ^~~~~~~~~~~~~~~~ main.cpp:87:5: warning: ISO C++ requires field designators to be specified in declaration order; field 'pass_size' will be initialized after field 'salt' [-Wreorder-init-list] .salt = salt, /* Salt for the password */ ^~~~~~~~~~~~~~~~~ ```
- Loading branch information