crypt_set_pbkdf_type() bugs
time_ms bug:
pbkdf->type = "pbkdf2",
pbkdf->time_ms = 0,
pbkdf->iterations = 1001,
pbkdf->flags = CRYPT_PBKDF_NO_BENCHMARK
and yet the call fails due to time_ms != 0 check.
Second, a hash bug. Hash doesn't make a sense with any Argon2 variant and yet when it's not set crypt_set_pbkdf_type fails.
Edited by Ondrej Kozina