[musl] Re: [PATCH v1] man/man3/crypt.3: These functions accept many algorithms, not only DES
Rich Felker
dalias@libc.org
Thu Nov 12 03:37:42 GMT 2026
On Thu, Nov 12, 2026 at 04:29:29AM +0100, Vincent Lefevre wrote:
> On 2026-11-11 21:53:39 -0500, Rich Felker wrote:
> > That's the whole reason '$' was chosen: POSIX doesn't define the
> > behavior (since a "shall" is violated) so the implementation is free
> > to define a behavior here. The behaviors for the portable base64
> > character set documented in POSIX uses only 2 characters as salt
> > (insufficient) and the common agreed-upon definition for how they are
> > used is as salt for the classic DES-based password hash.
>
> But the behavior is completely out of scope of POSIX.
Yes. And that's allowed because POSIX does not define the behavior but
leaves it undefined. I'm not sure if you're objecting to something
here or questioning how it should be documented or something else..?
Rich
More information about the Libc-alpha
mailing list