From: Loup Vaillant Date: Sun, 24 Dec 2017 09:43:14 +0000 (+0100) Subject: Manual: Applying CuleX's advice X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=c8e4340a579fcf3a785539bec36399ec04319126;p=Monocypher.git Manual: Applying CuleX's advice --- diff --git a/doc/man/man3/crypto_chacha20_encrypt.3monocypher b/doc/man/man3/crypto_chacha20_encrypt.3monocypher index d8c2b67..c48852c 100644 --- a/doc/man/man3/crypto_chacha20_encrypt.3monocypher +++ b/doc/man/man3/crypto_chacha20_encrypt.3monocypher @@ -73,7 +73,7 @@ It is allowed to be in which case it will be interpreted as an all zero input. The cipher_text will then contain the raw Chacha20 stream. .It Fa cipher_text -The encrypted message, to be transmitted over the network. +The encrypted message. .It Fa text_size The size of both .Fa plain_text and diff --git a/doc/man/man3/crypto_key_exchange.3monocypher b/doc/man/man3/crypto_key_exchange.3monocypher index 18be412..cff2459 100644 --- a/doc/man/man3/crypto_key_exchange.3monocypher +++ b/doc/man/man3/crypto_key_exchange.3monocypher @@ -20,7 +20,7 @@ .Fc .Sh DESCRIPTION .Fn crypto_key_exchange -computes a shared key with your secret key and their public key, +computes a shared key with your secret key and their public key. .Pp .Fn crypto_x25519_public_key deterministically computes the public key from a random secret key. @@ -42,10 +42,9 @@ random number generator). Do not use the same private key for both key exchanges and signatures. The public keys are different, and revealing both may leak information. .It Fa their_public_key -The public key of the other party, generated from their secret key with -.Fn crypto_x25519_public_key . +The public key of the other party. .It Fa public_key -The public key, generated from a +The public key, generated from the .Fa secret_key with .Fn crypto_x25519_public_key . diff --git a/doc/man/man3/crypto_sign.3monocypher b/doc/man/man3/crypto_sign.3monocypher index 7591a4a..5f6ab17 100644 --- a/doc/man/man3/crypto_sign.3monocypher +++ b/doc/man/man3/crypto_sign.3monocypher @@ -45,7 +45,7 @@ number generator). Do not use the same private key for both signatures and key exchanges. The public keys are different, and revealing both may leak information. .It Fa public_key -The public key, generated from a +The public key, generated from the .Fa secret_key with .Fn crypto_sign_public_key . diff --git a/doc/man/man3/crypto_x25519.3monocypher b/doc/man/man3/crypto_x25519.3monocypher index 0500c15..33e066d 100644 --- a/doc/man/man3/crypto_x25519.3monocypher +++ b/doc/man/man3/crypto_x25519.3monocypher @@ -42,8 +42,7 @@ See for advice about generating random bytes (use the operating system's random number generator). .It Fa their_public_key -The public key of the other party, generated from their secret key with -.Xr crypto_x25519_public_key 3monocypher . +The public key of the other party. .El .Sh RETURN VALUES Some public keys force the shared key to a known constant.