[PATCH] man3/crypt.3: Correct note on key portion significance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As Marcel Moreaux notes:

> The Linux manpage for crypt()[1] contains the following statement as the
> last sentence of the NOTES section:
> 
>     In the SHA implementation the entire key is significant (instead of
>     only the first 8 bytes in MD5).
> 
> It should probably say "DES" where it says "MD5" (and maybe "MD5/SHA"
> where it says "SHA"), because in MD5 password hashing, the entire key is
> significant, not just the first 8 bytes.

This patch fixes the wording.

Signed-off-by: Petr Baudis <pasky@xxxxxxx>

---

diff --git a/man3/crypt.3 b/man3/crypt.3
index 1139792..aeaf873 100644
--- a/man3/crypt.3
+++ b/man3/crypt.3
@@ -217,10 +217,10 @@ SHA-512 | 86 characters
 
 The characters in "\fIsalt\fP" and "\fIencrypted\fP" are drawn from the set
 [\fBa\fP\(en\fBzA\fP\(en\fBZ0\fP\(en\fB9./\fP].
-In the SHA implementation the entire
+In the MD5 and SHA implementations the entire
 .I key
 is significant (instead of only the first
-8 bytes in MD5).
+8 bytes in DES).
 .SH "SEE ALSO"
 .BR login (1),
 .BR passwd (1),
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux