Lines Matching refs:challenge
169 chapms_generate_challenge(unsigned char *challenge) in chapms_generate_challenge() argument
171 *challenge++ = 8; in chapms_generate_challenge()
174 memcpy(challenge, mschap_challenge, 8); in chapms_generate_challenge()
177 random_bytes(challenge, 8); in chapms_generate_challenge()
181 chapms2_generate_challenge(unsigned char *challenge) in chapms2_generate_challenge() argument
183 *challenge++ = 16; in chapms2_generate_challenge()
186 memcpy(challenge, mschap_challenge, 16); in chapms2_generate_challenge()
189 random_bytes(challenge, 16); in chapms2_generate_challenge()
195 unsigned char *challenge, unsigned char *response, in chapms_verify_response() argument
203 challenge_len = *challenge++; /* skip length, is 8 */ in chapms_verify_response()
219 ChapMS(challenge, (char *)secret, secret_len, &md); in chapms_verify_response()
238 challenge_len, challenge); in chapms_verify_response()
245 unsigned char *challenge, unsigned char *response, in chapms2_verify_response() argument
253 challenge_len = *challenge++; /* skip length, is 16 */ in chapms2_verify_response()
261 ChapMS2(challenge, rmd->PeerChallenge, name, in chapms2_verify_response()
317 challenge_len, challenge, "Access denied"); in chapms2_verify_response()
323 unsigned char *challenge, char *secret, int secret_len, in chapms_make_response() argument
326 challenge++; /* skip length, should be 8 */ in chapms_make_response()
328 ChapMS(challenge, secret, secret_len, (MS_ChapResponse *) response); in chapms_make_response()
333 unsigned char *challenge, char *secret, int secret_len, in chapms2_make_response() argument
336 challenge++; /* skip length, should be 16 */ in chapms2_make_response()
338 ChapMS2(challenge, in chapms2_make_response()
451 ChallengeResponse(u_char *challenge, in ChallengeResponse() argument
466 DesEncrypt(challenge, response + 0); in ChallengeResponse()
468 DesEncrypt(challenge, response + 8); in ChallengeResponse()
470 DesEncrypt(challenge, response + 16); in ChallengeResponse()