From a7e71fb1015a41feed980615ca973d6540080a17 Mon Sep 17 00:00:00 2001 From: CuleX Date: Wed, 13 Sep 2017 14:27:45 +0200 Subject: [PATCH] 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. --- man/3monocypher/crypto_sign.3monocypher | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.3