Björn Esser ea04eb301d
libmisc/salt.c: Use crypt_gensalt(), if available in libcrypt.
Most Linux distributions, including Fedora and RHEL 8, are shipping
with libxcrypt >= 4.0.

Since that version of libxcrypt the provided family of crypt_gensalt()
functions are able to use automatic entropy drawn from secure system
ressources, like arc4random(), getentropy() or getrandom().

Anyways, the settings generated by crypt_gensalt() are always
guaranteed to works with the crypt() function.

Using crypt_gensalt() is also needed to make proper use of newer
hashing methods, like yescrypt, provided by libxcrypt.

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-07-04 13:01:22 +02:00
..
2021-06-24 09:18:35 +02:00
2011-09-18 21:02:43 +00:00
2020-01-12 07:31:26 -06:00
2021-06-24 09:18:35 +02:00
2021-06-24 09:18:35 +02:00
2021-06-16 09:50:53 +02:00
2017-10-22 18:33:13 +00:00
2017-10-22 19:17:02 +00:00
2021-06-24 09:18:35 +02:00
2021-04-16 21:02:37 -05:00
2021-06-24 09:18:35 +02:00
2021-06-16 09:50:53 +02:00
2021-06-24 09:18:35 +02:00
2021-02-01 22:11:10 +01:00
2010-08-22 13:04:54 +00:00
2017-10-22 18:33:13 +00:00
2013-08-04 15:56:32 +02:00
2010-08-22 13:04:54 +00:00
2010-08-22 13:04:54 +00:00
2021-06-24 09:18:35 +02:00
2021-06-16 09:50:53 +02:00