]> git.codecow.com Git - Monocypher.git/commitdiff
Document that message and signature cannot overlap
authorCuleX <cculex@gmail.com>
Wed, 13 Sep 2017 12:27:45 +0000 (14:27 +0200)
committerCuleX <cculex@gmail.com>
Wed, 13 Sep 2017 12:27:45 +0000 (14:27 +0200)
The signature variable gets overwritten halfway through the crypto_sign
function and that value is then reused in multiple places.

man/3monocypher/crypto_sign.3monocypher

index 3eb47b4ffef5c325b9397c71b44876757299e94d..99a0c461a2005676d7bb541b78e5dde226cebabb 100644 (file)
@@ -65,6 +65,12 @@ function signs a message with your secret key
 .Fa secret_key .
 The public key is optional, and will be recomputed if not provided.
 However, this doubles execution time.
+The
+.Fa signature
+and the
+.Fa message
+argument
+.Em must not overlap .
 .Pp
 The
 .Fn crypto_check