]> git.codecow.com Git - Monocypher.git/commitdiff
Manual: xx byte => xx-byte
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 24 Dec 2017 09:20:51 +0000 (10:20 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 24 Dec 2017 09:20:51 +0000 (10:20 +0100)
doc/man/man3/crypto_chacha20_encrypt.3monocypher
doc/man/man3/crypto_key_exchange.3monocypher
doc/man/man3/crypto_sign.3monocypher
doc/man/man3/crypto_x25519.3monocypher

index e7d95f95e3b0037aa53dec2a35bb11aef2746496..d8c2b67a299491b549f0f0f4a985adefd2a421d4 100644 (file)
@@ -53,12 +53,12 @@ The arguments are:
 .It Fa key
 A 32-byte secret key.
 .It Fa nonce
-An 8 or 24 byte number, used only once with any given key.
+An 8-byte or 24-byte number, used only once with any given key.
 It does not need to be secret or random, but it does have to be unique.
 Repeating a nonce with the same key reveals the XOR of two different
 messages, which allows decryption.
-24 byte nonces can be selected at random.
-8 byte nonces
+24-byte nonces can be selected at random.
+8-byte nonces
 .Em cannot .
 They are too small, and the same number may be selected twice by
 accident.
@@ -104,7 +104,7 @@ disjoint.
 initialises the
 .Vt crypto_chacha_ctx
 context.
-It uses an 8 byte nonce, too small to be selected at random.
+It uses an 8-byte nonce, too small to be selected at random.
 Use a counter.
 .Pp
 .Fn crypto_chacha20_x_init
index 9427fc6c9e8b7ed46582babba366f51e18d70e3c..18be412aa441f2858c1abae1af01467ddd9160ea 100644 (file)
@@ -34,7 +34,7 @@ It is cryptographically random, and suitable for use with the
 .Xr crypto_lock 3monocypher
 family of functions.
 .It Fa your_secret_key
-A 32 byte random number, known only to you.
+A 32-byte random number, known only to you.
 See
 .Xr intro 3monocypher
 for advice about generating random bytes (use the operating system's
@@ -50,7 +50,7 @@ The public key, generated from a
 with
 .Fn crypto_x25519_public_key .
 .It Fa secret_key
-A 32 byte random number, known only to you.
+A 32-byte random number, known only to you.
 .El
 .Sh RETURN VALUES
 Some public keys force the shared key to a known constant.
index 705b441ac5c8ec580d1740d3304cb4a2a14dacc8..7591a4ad5d9a5ac29b076909846d30fc00da7a55 100644 (file)
@@ -37,7 +37,7 @@ provide EdDSA public key signatures and verification.
 The arguments are:
 .Bl -tag -width Ds
 .It Fa secret_key
-A 32 byte random number, known only to you.
+A 32-byte random number, known only to you.
 See
 .Xr intro 3monocypher
 about random number generation (use your operating system's random
index 7fb8ab864793b1af4733e35e4f20af5d0e6e572b..0500c15090340d32f99c879986e6b38850ad90cf 100644 (file)
@@ -36,7 +36,7 @@ or
 .Xr crypto_blake2b 3monocypher
 first.
 .It Fa your_secret_key
-A 32 byte secret random number.
+A 32-byte secret random number.
 See
 .Xr intro 3monocypher
 for advice about generating random bytes (use the operating system's