Lines Matching refs:secret
250 const unsigned char *secret, int secret_len,
273 ChapMS(pcb, (const u_char *)challenge, (const char *)secret, secret_len, md);
298 const unsigned char *secret, int secret_len,
313 (const char *)secret, secret_len, md,
375 const unsigned char *challenge, const char *secret, int secret_len,
382 ChapMS(pcb, challenge, secret, secret_len, response);
386 const unsigned char *challenge, const char *secret, int secret_len,
397 our_name, secret, secret_len, response, private_,
572 static void NTPasswordHash(u_char *secret, int secret_len, u_char hash[MD4_SIGNATURE_SIZE]) {
577 lwip_md4_update(&md4Context, secret, secret_len);
582 static void ChapMS_NT(const u_char *rchallenge, const char *secret, int secret_len,
587 /* Hash the Unicode version of the secret (== password). */
588 ascii2unicode(secret, secret_len, unicodePassword);
595 const char *secret, int secret_len, u_char NTResponse[24]) {
602 /* Hash the Unicode version of the secret (== password). */
603 ascii2unicode(secret, secret_len, unicodePassword);
612 static void ChapMS_LANMan(u_char *rchallenge, char *secret, int secret_len,
623 UcasePassword[i] = (u_char)toupper(secret[i]);
691 const char *secret, int secret_len,
699 /* Hash (x2) the Unicode version of the secret (== password). */
700 ascii2unicode(secret, secret_len, unicodePassword);
714 static void Set_Start_Key(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len) {
721 /* Hash (x2) the Unicode version of the secret (== password). */
722 ascii2unicode(secret, secret_len, unicodePassword);
744 static void SetMasterKeys(ppp_pcb *pcb, const char *secret, int secret_len, u_char NTResponse[24], int IsServer) {
783 /* Hash (x2) the Unicode version of the secret (== password). */
784 ascii2unicode(secret, secret_len, unicodePassword);
838 static void ChapMS(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len,
845 ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]);
848 ChapMS_LANMan(rchallenge, secret, secret_len,
858 Set_Start_Key(pcb, rchallenge, secret, secret_len);
874 const char *user, const char *secret, int secret_len, unsigned char *response,
893 secret, secret_len, &response[MS_CHAP2_NTRESP]);
896 GenerateAuthenticatorResponsePlain(secret, secret_len,
902 SetMasterKeys(pcb, secret, secret_len,