]> git.codecow.com Git - Monocypher.git/commitdiff
Clarified Argon2 allocation in the manual
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Feb 2019 19:32:44 +0000 (20:32 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Feb 2019 19:32:44 +0000 (20:32 +0100)
doc/man/man3/crypto_argon2i.3monocypher

index dd9d547fb3f3bbd5a615fd866822d5de7d413b40..80cbdd72fb8394a893ecdf2c2c412c8fc0c93cc7 100644 (file)
@@ -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 .