Searched refs:CHAP_CHALLENGE_LENGTH (Results 1 – 2 of 2) sorted by relevance
56 unsigned char challenge_asciihex[CHAP_CHALLENGE_LENGTH * 2 + 1]; in chap_gen_challenge()59 memset(challenge_asciihex, 0, CHAP_CHALLENGE_LENGTH * 2 + 1); in chap_gen_challenge()61 get_random_bytes(chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_gen_challenge()63 CHAP_CHALLENGE_LENGTH); in chap_gen_challenge()279 sg_init_one(&sg, chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_server_compute_md5()280 ret = crypto_hash_update(&desc, &sg, CHAP_CHALLENGE_LENGTH); in chap_server_compute_md5()367 if (!memcmp(challenge_binhex, chap->challenge, CHAP_CHALLENGE_LENGTH)) { in chap_server_compute_md5()
8 #define CHAP_CHALLENGE_LENGTH 16 macro27 unsigned char challenge[CHAP_CHALLENGE_LENGTH];