Home | History | Annotate | Download | only in libcrypt
History log of /src/lib/libcrypt/pw_gensalt.c
RevisionDateAuthorComments
 1.14  23-Jul-2024  riastradh libcrypt: Nix trailing whitespace.

No functional change intended.

Prompted by tying up loose ends around PR lib/57895.
 1.13  20-Oct-2021  nia branches: 1.13.2; 1.13.4;
crypt(3): Adapt default Argon2 parameters to system performance

If the parameters are unspecified:

- Set the default memory consumption based on the amount of memory
available to userspace.

The algorithm actually slows down incredibly quickly as the "memory"
parameter is increased. We want to avoid running out of memory on low
memory systems, but increase the difficulty of bruteforcing passwords
from systems with a lot of memory. At the same time, we want to avoid
problems when concurrent logins are happening.

- Run a hashing loop for one second with steadily increasing "time"
until we settle on a value for "time". We want to use as much CPU time
as reasonable for computing the password hash without making logins
inconvenient.
 1.12  16-Oct-2021  nia libcrypt: Hide more private symbols by default. Fix style.
 1.11  12-Oct-2021  nia crypt(3): match the Argon2 reference implementation's Base64 exactly

There are too many minor variations regarding padding and exact alphabet
to safely use the implementation in libc or an existing implementation
in libcrypt.
 1.10  12-Oct-2021  nia crypt(3): Make Argon2 implementation match the reference impl by
making sure input salts are decoded as base64.
 1.9  14-May-2020  msaitoh Remove extra semicolon.
 1.8  21-Oct-2019  jhigh adding argon2 support to libcrypt. argon2 user authentication now
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2
 1.7  18-Jan-2009  lukem branches: 1.7.48;
fix -Wsign-compare issues
 1.6  17-Jan-2007  hubertf Remove more duplicate #includes, and a few spurious whitespaces at EOL
From Slava Semushin <slava.semushin@gmail.com>
 1.5  12-Jan-2005  christos fix compile issue.
 1.4  12-Jan-2005  christos - change the gensalt functions to take an optional string instead of
the number of rounds.
- make pw_gensalt() more generic, so that it does not depend in libutil.
 1.3  11-Jan-2005  christos sprinkle ARGSUSED and include "crypt.h"
 1.2  11-Jan-2005  christos only get the rounds if we have them.
 1.1  11-Jan-2005  christos Add pw_gensalt, which was taken from pwd_gensalt. This now is used in 3
places, so it might as well be part of libcrypt.
 1.7.48.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.13.4.1  02-Aug-2025  perseant Sync with HEAD
 1.13.2.1  23-Aug-2024  martin Pull up following revision(s) (requested by riastradh in ticket #794):

lib/libcrypt/crypt-argon2.c: revision 1.20
lib/libcrypt/crypt-argon2.c: revision 1.21
lib/libcrypt/crypt-argon2.c: revision 1.22
lib/libcrypt/md5crypt.c: revision 1.16
lib/libcrypt/hmac.c: revision 1.5
lib/libcrypt/crypt-sha1.c: revision 1.11
lib/libcrypt/pw_gensalt.c: revision 1.14
lib/libcrypt/crypt.c: revision 1.41

Don't use uninitialized variable.
Fixes PR 57895.

libcrypt/crypt-argon2.c: Add RCS id.
Noted in PR lib/57895.

libcrypt: Nix trailing whitespace.
No functional change intended.
Prompted by tying up loose ends around PR lib/57895.

RSS XML Feed