Skip to content

Commit

Permalink
Merge branch 'pr-162'
Browse files Browse the repository at this point in the history
  • Loading branch information
klali committed May 18, 2018
2 parents b72fa76 + 0972986 commit 13ce1b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util.c
Expand Up @@ -508,7 +508,10 @@ write_chalresp_state(FILE *f, CR_STATE *state)
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,
hash, CR_RESPONSE_SIZE, &prf_method);

Expand Down

0 comments on commit 13ce1b6

Please sign in to comment.