From f22fd0bc4cb3a0f29066b3c74a57f40b2ac98baf Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sat, 23 Feb 2019 20:32:44 +0100 Subject: [PATCH] Clarified Argon2 allocation in the manual --- doc/man/man3/crypto_argon2i.3monocypher | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 . -- 2.47.3