* 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
* [PATCH] man3/crypt.3: Correct note on key portion significance
[not found] ` <20100418171718.GB25938-9b3RgGIKRfocWVvVuXF20w@public.gmane.org>
@ 2010-05-11 1:35 ` Petr Baudis
[not found] ` <20100511013550.GD16800-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Petr Baudis @ 2010-05-11 1:35 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Marcel Moreaux
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] man3/crypt.3: Correct note on key portion significance
[not found] ` <20100511013550.GD16800-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
@ 2010-05-24 5:20 ` Michael Kerrisk
0 siblings, 0 replies; 3+ messages in thread
From: Michael Kerrisk @ 2010-05-24 5:20 UTC (permalink / raw)
To: Petr Baudis; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Marcel Moreaux
Hello Petr,
On Tue, May 11, 2010 at 3:35 AM, Petr Baudis <pasky-AlSwsSmVLrQ@public.gmane.org> wrote:
> 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.
Thanks. Applied for 3.25.
Cheers,
Michael
> 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),
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
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).