From d17481c78a23df55942dbdfea1a9d7e994bf0f0b Mon Sep 17 00:00:00 2001 From: CuleX Date: Sat, 9 Sep 2017 12:47:55 +0200 Subject: [PATCH] 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(). --- man/3monocypher/crypto_argon2i.3monocypher | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 , -- 2.47.3