Lines Matching refs:challenge
33 ret = get_random_bytes_wait(chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_gen_challenge()
36 bin2hex(challenge_asciihex, chap->challenge, in chap_gen_challenge()
160 unsigned char identifier[10], *challenge = NULL; in chap_server_compute_md5() local
179 challenge = kzalloc(CHAP_CHALLENGE_STR_LEN, GFP_KERNEL); in chap_server_compute_md5()
180 if (!challenge) { in chap_server_compute_md5()
267 ret = crypto_shash_finup(desc, chap->challenge, in chap_server_compute_md5()
320 challenge, &type) < 0) { in chap_server_compute_md5()
329 challenge_len = DIV_ROUND_UP(strlen(challenge), 2); in chap_server_compute_md5()
338 if (hex2bin(challenge_binhex, challenge, challenge_len) < 0) { in chap_server_compute_md5()
342 pr_debug("[server] Got CHAP_C=%s\n", challenge); in chap_server_compute_md5()
348 if (!memcmp(challenge_binhex, chap->challenge, CHAP_CHALLENGE_LENGTH)) { in chap_server_compute_md5()
406 kfree(challenge); in chap_server_compute_md5()