From 17a4cff3e4d6b3793e4fd40650ca5689f7edcd5e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 25 Jul 2021 22:51:18 +0200 Subject: [PATCH] crypt.3: ffix Reported-by: Helge Kreutzmann Signed-off-by: Michael Kerrisk --- man3/crypt.3 | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/man3/crypt.3 b/man3/crypt.3 index c79f9cd34..c972e61f0 100644 --- a/man3/crypt.3 +++ b/man3/crypt.3 @@ -257,20 +257,23 @@ The following values of are supported: .RS .TS -l l. -ID | Method +lb lb +l lx. +ID Method _ -1 | MD5 -2a | Blowfish (not in mainline glibc; added in some - | Linux distributions) +1 MD5 +2a T{ +Blowfish (not in mainline glibc; added in some +Linux distributions) +T} .\" openSUSE has Blowfish, but AFAICS, this option is not supported .\" natively by glibc -- mtk, Jul 08 .\" .\" md5 | Sun MD5 .\" glibc doesn't appear to natively support Sun MD5; I don't know .\" if any distros add the support. -5 | SHA-256 (since glibc 2.7) -6 | SHA-512 (since glibc 2.7) +5 SHA-256 (since glibc 2.7) +6 SHA-512 (since glibc 2.7) .TE .RE .PP @@ -283,13 +286,15 @@ following "$\fIid\fP$" in the salt. The "\fIencrypted\fP" part of the password string is the actual computed password. The size of this string is fixed: +.RS .TS -l l. -MD5 | 22 characters -SHA-256 | 43 characters -SHA-512 | 86 characters +lb l. +MD5 22 characters +SHA-256 43 characters +SHA-512 86 characters .TE -.sp 1 +.RE +.PP The characters in "\fIsalt\fP" and "\fIencrypted\fP" are drawn from the set [\fBa\-zA\-Z0\-9./\fP]. In the MD5 and SHA implementations the entire