In libxcrypt, starting with version 4.0.0, supplying a null pointer as the prefix argument to the crypt_gensalt_ra() function will cause it to select the best available hash function.
Starting with version 4.1.0, libxcrypt provides the CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX macro to test the availability of this feature at build time.
However, in some specific, but unusual, build-time configurations of libxcrypt the CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX feature-test macro is defined to 0, which means libxcrypt does not provide a best-choice default prefix.
In libxcrypt, starting with version 4.0.0, supplying a null pointer as the
prefix
argument to thecrypt_gensalt_ra()
function will cause it to select the best available hash function.Starting with version 4.1.0, libxcrypt provides the
CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX
macro to test the availability of this feature at build time.However, in some specific, but unusual, build-time configurations of libxcrypt the
CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX
feature-test macro is defined to0
, which means libxcrypt does not provide a best-choice default prefix.