From: CuleX Date: Sat, 9 Sep 2017 10:47:55 +0000 (+0200) Subject: Fix example for crypto_argon2i X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=d17481c78a23df55942dbdfea1a9d7e994bf0f0b;p=Monocypher.git Fix example for crypto_argon2i It actually did not have a password and password length parameter. The invocation line was thus split up into logical blocks to avoid confusing the reader. A similar layout can be observed in tests/self.c:argon2i(). --- diff --git a/man/3monocypher/crypto_argon2i.3monocypher b/man/3monocypher/crypto_argon2i.3monocypher index a85c970..88e7b78 100644 --- a/man/3monocypher/crypto_argon2i.3monocypher +++ b/man/3monocypher/crypto_argon2i.3monocypher @@ -166,8 +166,12 @@ if (work_area == NULL) { /* ...randomly generate salt here... */ -crypto_argon2i(hash, sizeof(hash), work_area, nb_blocks, nb_iterations, - salt, sizeof(salt), NULL, 0, NULL, 0); +crypto_argon2i(hash, sizeof(hash), + work_area, nb_blocks, nb_iterations, + password, strlen(password), + salt, sizeof(salt), + NULL, 0, + NULL, 0); .Ed .Sh SEE ALSO .Xr crypto_lock 3monocypher ,