From: Petr Baudis <pasky-AlSwsSmVLrQ@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Marcel Moreaux <marcelm-MO7g/Hy4xaE@public.gmane.org>
Subject: [PATCH] man3/crypt.3: Correct note on key portion significance
Date: Tue, 11 May 2010 03:35:50 +0200 [thread overview]
Message-ID: <20100511013550.GD16800@machine.or.cz> (raw)
In-Reply-To: <20100418171718.GB25938-9b3RgGIKRfocWVvVuXF20w@public.gmane.org>
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-AlSwsSmVLrQ@public.gmane.org>
---
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-05-11 1:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 17:17 Small error in crypt() manpage Marcel Moreaux
[not found] ` <20100418171718.GB25938-9b3RgGIKRfocWVvVuXF20w@public.gmane.org>
2010-05-11 1:35 ` Petr Baudis [this message]
[not found] ` <20100511013550.GD16800-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2010-05-24 5:20 ` [PATCH] man3/crypt.3: Correct note on key portion significance Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100511013550.GD16800@machine.or.cz \
--to=pasky-alswssmvlrq@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marcelm-MO7g/Hy4xaE@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).