From: Loup Vaillant Date: Sat, 23 Feb 2019 19:32:44 +0000 (+0100) Subject: Clarified Argon2 allocation in the manual X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f22fd0bc4cb3a0f29066b3c74a57f40b2ac98baf;p=Monocypher.git Clarified Argon2 allocation in the manual --- diff --git a/doc/man/man3/crypto_argon2i.3monocypher b/doc/man/man3/crypto_argon2i.3monocypher index dd9d547..80cbdd7 100644 --- a/doc/man/man3/crypto_argon2i.3monocypher +++ b/doc/man/man3/crypto_argon2i.3monocypher @@ -61,12 +61,12 @@ This argument should be set to 32 or 64 for compatibility with the .Fn crypto_verify* constant time comparison functions. .It Fa work_area -Temporary buffer for the algorithm. -Must be +Temporary buffer for the algorithm, allocated by the caller. +It must be .Fa nb_blocks × 1024 bytes big, and suitably aligned for 64-bit integers. -.Fn malloc -will yield a suitable chunk of memory. +If you are not sure how to allocate that buffer, just use +.Fn malloc . .Pp The work area is automatically wiped by .Fn crypto_argon2i .