[musl] Re: [PATCH v1] man/man3/crypt.3: These functions accept many algorithms, not only DES
Alejandro Colomar
alx@kernel.org
Wed Nov 11 21:43:17 GMT 2026
Hi Rich,
> Date: 2026-11-11 16:13:13-0500
> From: Rich Felker <dalias@libc.org>
>
[...]
>
> I'm not sure where you're getting this from. All implementations of
> the same password hash function need to produce the same result, or
> user credentials would not be portable between different ones. And a
> password hash that does not use any salt would not be fit for purpose.
>
> In musl's crypt_sha512.c, the salt is isolated from the setting string
> in lines 262-266 and used in the sha512_update operations that follow.
I'm not a cryptographer, so my reading of that code isn't very good.
Thanks for correcting me!
Have a lovely night!
Alex
>
> Rich
--
<https://www.alejandro-colomar.es>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20261111/0cafde8d/attachment-0001.sig>
More information about the Libc-alpha
mailing list