]> git.codecow.com Git - Monocypher.git/commitdiff
crypto_verify: wording nitpicks
authorFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Tue, 31 Mar 2020 11:49:55 +0000 (13:49 +0200)
committerFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Tue, 31 Mar 2020 11:49:55 +0000 (13:49 +0200)
1. s/guessed a few bytes/guessed a byte/
   Nobody guesses multiple bytes per attempt except by sheer dumb luck.
2. Add missing "functions" to make one sentence not seem incomplete.

doc/man/man3/crypto_verify16.3monocypher

index c6d2f42489576a7eac4d047e5c70a6fc418cefb4..2008959fb644ccc92b802c869c29bccad9b06e9e 100644 (file)
@@ -10,7 +10,7 @@
 .\"
 .\" Copyright (c) 2017-2019 Loup Vaillant
 .\" Copyright (c) 2017-2018 Michael Savage
-.\" Copyright (c) 2017, 2019 Fabio Scotoni
+.\" Copyright (c) 2017, 2019-2020 Fabio Scotoni
 .\" All rights reserved.
 .\"
 .\"
@@ -40,7 +40,7 @@
 .\"
 .\" ----------------------------------------------------------------------------
 .\"
-.\" Written in 2017-2019 by Loup Vaillant, Michael Savage and Fabio Scotoni
+.\" Written in 2017-2020 by Loup Vaillant, Michael Savage and Fabio Scotoni
 .\"
 .\" To the extent possible under law, the author(s) have dedicated all copyright
 .\" and related neighboring rights to this software to the public domain
@@ -50,7 +50,7 @@
 .\" with this software.  If not, see
 .\" <https://creativecommons.org/publicdomain/zero/1.0/>
 .\"
-.Dd December 12, 2019
+.Dd March 31, 2020
 .Dt CRYPTO_VERIFY16 3MONOCYPHER
 .Os
 .Sh NAME
@@ -88,7 +88,7 @@ network along with a message, but the correct MAC is secret.
 If the attacker attempts a forgery, one does not want to reveal
 .Dq your MAC is wrong, Em and it took 384 microseconds to tell .
 If the next attempt takes 462 microseconds instead, it tells the
-attacker they just guessed a few bytes correctly.
+attacker they just guessed a byte correctly.
 That way, an attacker can derive the correct MAC, and successfully
 forge a message.
 This has lead to practical attacks in the past.
@@ -106,7 +106,7 @@ They compare the first
 and
 .Fa b .
 .Pp
-When in doubt, prefer these over
+When in doubt, prefer these functions over
 .Fn memcmp .
 .Sh RETURN VALUES
 These functions return 0 if the two memory chunks are the same, -1