Lines Matching refs:secret_len
250 const unsigned char *secret, int secret_len, in chapms_verify_response() argument
273 ChapMS(pcb, (const u_char *)challenge, (const char *)secret, secret_len, md); in chapms_verify_response()
298 const unsigned char *secret, int secret_len, in chapms2_verify_response() argument
313 (const char *)secret, secret_len, md, in chapms2_verify_response()
375 const unsigned char *challenge, const char *secret, int secret_len, in chapms_make_response() argument
382 ChapMS(pcb, challenge, secret, secret_len, response); in chapms_make_response()
386 const unsigned char *challenge, const char *secret, int secret_len, in chapms2_make_response() argument
397 our_name, secret, secret_len, response, private_, in chapms2_make_response()
572 static void NTPasswordHash(u_char *secret, int secret_len, u_char hash[MD4_SIGNATURE_SIZE]) { in NTPasswordHash() argument
577 lwip_md4_update(&md4Context, secret, secret_len); in NTPasswordHash()
582 static void ChapMS_NT(const u_char *rchallenge, const char *secret, int secret_len, in ChapMS_NT() argument
588 ascii2unicode(secret, secret_len, unicodePassword); in ChapMS_NT()
589 NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); in ChapMS_NT()
595 const char *secret, int secret_len, u_char NTResponse[24]) { in ChapMS2_NT() argument
603 ascii2unicode(secret, secret_len, unicodePassword); in ChapMS2_NT()
604 NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); in ChapMS2_NT()
612 static void ChapMS_LANMan(u_char *rchallenge, char *secret, int secret_len, in ChapMS_LANMan() argument
622 for (i = 0; i < secret_len; i++) in ChapMS_LANMan()
691 const char *secret, int secret_len, in GenerateAuthenticatorResponsePlain() argument
700 ascii2unicode(secret, secret_len, unicodePassword); in GenerateAuthenticatorResponsePlain()
701 NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); in GenerateAuthenticatorResponsePlain()
714 …ic void Set_Start_Key(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len) { in Set_Start_Key() argument
722 ascii2unicode(secret, secret_len, unicodePassword); in Set_Start_Key()
723 NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); in Set_Start_Key()
744 static void SetMasterKeys(ppp_pcb *pcb, const char *secret, int secret_len, u_char NTResponse[24], … in SetMasterKeys() argument
784 ascii2unicode(secret, secret_len, unicodePassword); in SetMasterKeys()
785 NTPasswordHash(unicodePassword, secret_len * 2, PasswordHash); in SetMasterKeys()
838 static void ChapMS(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len, in ChapMS() argument
845 ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); in ChapMS()
848 ChapMS_LANMan(rchallenge, secret, secret_len, in ChapMS()
858 Set_Start_Key(pcb, rchallenge, secret, secret_len); in ChapMS()
874 const char *user, const char *secret, int secret_len, unsigned char *response, in ChapMS2() argument
893 secret, secret_len, &response[MS_CHAP2_NTRESP]); in ChapMS2()
896 GenerateAuthenticatorResponsePlain(secret, secret_len, in ChapMS2()
902 SetMasterKeys(pcb, secret, secret_len, in ChapMS2()