1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-26 21:54:15 +01:00

Merge branch 'pr-162'

This commit is contained in:
Klas Lindfors 2018-05-18 11:48:14 +02:00
commit 13ce1b6f52
No known key found for this signature in database
GPG Key ID: BCA00FD4B2168C0A

5
util.c
View File

@ -508,7 +508,10 @@ write_chalresp_state(FILE *f, CR_STATE *state)
iterations = state->iterations; iterations = state->iterations;
} }
generate_random(salt, CR_SALT_SIZE); if (generate_random(salt, CR_CHALLENGE_SIZE)) {
goto out;
}
yk_pbkdf2(response_hex, salt, CR_SALT_SIZE, iterations, yk_pbkdf2(response_hex, salt, CR_SALT_SIZE, iterations,
hash, CR_RESPONSE_SIZE, &prf_method); hash, CR_RESPONSE_SIZE, &prf_method);