linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Small error in crypt() manpage
@ 2010-04-18 17:17 Marcel Moreaux
       [not found] ` <20100418171718.GB25938-9b3RgGIKRfocWVvVuXF20w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Moreaux @ 2010-04-18 17:17 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hey,

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.

Quoting the glibc documentation[2]:

    For the MD5-based algorithm, [...] Every character in the key is
    significant. 



Best regards,

Marcel Moreaux



[1] http://www.kernel.org/doc/man-pages/online/pages/man3/crypt.3.html
[2] http://www.gnu.org/s/libc/manual/html_node/crypt.html#crypt
--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-24  5:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [PATCH] man3/crypt.3: Correct note on key portion significance Petr Baudis
     [not found]     ` <20100511013550.GD16800-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2010-05-24  5:20       ` Michael Kerrisk

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).