PHK's MD5 might not be slow enough anymore

Dag-Erling Smørgrav des at des.no
Mon Feb 1 13:25:51 UTC 2010


Dan Lukes <dan at obluda.cz> writes:
> Mike Andrews <mandrews at bit0.com> writes:
> > There is probably a login.conf knob to raise the default number of
> > rounds beyond 2^4.
> No. The standard way of password change flow trough pam_unix.c.
>
> It call crypt(new_pass, salt) where salt is pseudo-random sequence. As
> such salt doesn't start with a magic, the default algorithm is
> selected. If it si blowfish, then crypt_blowfish(key, salt) is called.

Mike is mostly right and you are mostly wrong.  The default algorithm is
indeed controlled by login.conf and auth.conf, although there is no way
to specify the number of rounds.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-security mailing list