Lines Matching refs:challenge
61 get_random_bytes(chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_gen_challenge()
62 chap_binaryhex_to_asciihex(challenge_asciihex, chap->challenge, in chap_gen_challenge()
181 unsigned char identifier[10], *challenge = NULL; in chap_server_compute_md5() local
201 challenge = kzalloc(CHAP_CHALLENGE_STR_LEN, GFP_KERNEL); in chap_server_compute_md5()
202 if (!challenge) { in chap_server_compute_md5()
279 sg_init_one(&sg, chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_server_compute_md5()
309 kfree(challenge); in chap_server_compute_md5()
342 challenge, &type) < 0) { in chap_server_compute_md5()
351 pr_debug("[server] Got CHAP_C=%s\n", challenge); in chap_server_compute_md5()
352 challenge_len = chap_string_to_hex(challenge_binhex, challenge, in chap_server_compute_md5()
353 strlen(challenge)); in chap_server_compute_md5()
367 if (!memcmp(challenge_binhex, chap->challenge, CHAP_CHALLENGE_LENGTH)) { in chap_server_compute_md5()
443 kfree(challenge); in chap_server_compute_md5()