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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Konstantin

On 09/04/2017 08:53 PM, Konstantin Shemyak wrote:
> 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 <konstantin@xxxxxxxxxxx>

Thanks! Applied.

Cheers,

Michael


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


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux