From: CuleX Date: Wed, 13 Sep 2017 12:27:45 +0000 (+0200) Subject: Document that message and signature cannot overlap X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=a7e71fb1015a41feed980615ca973d6540080a17;p=Monocypher.git Document that message and signature cannot overlap The signature variable gets overwritten halfway through the crypto_sign function and that value is then reused in multiple places. --- diff --git a/man/3monocypher/crypto_sign.3monocypher b/man/3monocypher/crypto_sign.3monocypher index 3eb47b4..99a0c46 100644 --- a/man/3monocypher/crypto_sign.3monocypher +++ b/man/3monocypher/crypto_sign.3monocypher @@ -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