Thread (1 message) 1 message, 1 author, 2017-09-04

[PATCH v2 1/3] crypt.3: encryption is not done with SHA-xxx, but with a function based on SHA-xxx

DORMANTno replies

From: Konstantin Shemyak <hidden>
Date: 2017-09-04 18:53:51
Subsystem: the rest · Maintainer: Linus Torvalds

Possibly related (same subject, not in this thread)

The encryption is done by glibc functions __shaxxx_crypt_r() in files
crypt/shaxxx-crypt.c. They implement a nontrivial algorithm to construct
the inputs for the hashing functions and to apply them iteratively.

Signed-off-by: Konstantin Shemyak <redacted>
---
 man3/crypt.3 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/man3/crypt.3 b/man3/crypt.3
index 9edd63a..749a636 100644
--- a/man3/crypt.3
+++ b/man3/crypt.3
@@ -227,9 +227,9 @@ _
 .TE
 .RE
 .PP
-So $5$\fIsalt\fP$\fIencrypted\fP is an SHA-256 encoded
-password and $6$\fIsalt\fP$\fIencrypted\fP is an
-SHA-512 encoded one.
+So $5$\fIsalt\fP$\fIencrypted\fP and $6$\fIsalt\fP$\fIencrypted\fP
+contain the password encrypted correspondingly with a function
+based on SHA-256 and SHA-512.
 .PP
 "\fIsalt\fP" stands for the up to 16 characters
 following "$\fIid\fP$" in the salt.
-- 
2.7.4

--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help