]> git.codecow.com Git - Monocypher.git/commitdiff
Manual: warning about incremental signature verification
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 21 Dec 2017 17:16:46 +0000 (18:16 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 21 Dec 2017 17:23:17 +0000 (18:23 +0100)
Just so users don't mistakenly trust messages before the verification is
finished.

Related to #58

doc/man/man3/crypto_sign_init_first_pass.3monocypher

index 640054f9ef6d5c2796183a3403c35f13df3059e4..6c62cd7fbbb64754f9f19067502f6b259af477d1 100644 (file)
@@ -164,8 +164,17 @@ These functions implement EdDSA with Curve25519 and Blake2b.
 This is the same as Ed25519, with Blake2b instead of SHA-512.
 Ed25519 is described in RFC 7748.
 .Sh SECURITY CONSIDERATIONS
-The same as documented on
-.Xr crypto_sign 3monocypher .
+In addition to those documented on
+.Xr crypto_sign 3monocypher ,
+incremental signature verification encourages the user to start
+processing the message before verification is done.
+Messages may be stored before they are verified, but they cannot be
+.Em trusted .
+Processing untrusted messages increases the attack surface of the
+system.
+Doing so securely is hard.
+Do not process messages before calling
+.Fn crypto_check_final .
 .Sh IMPLEMENTATION DETAILS
 EdDSA signatures require two passes that cannot be performed in
 parallel.