Home
last modified time | relevance | path

Searched refs:passbuf (Results 1 – 3 of 3) sorted by relevance

/external/chromium/net/http/
Dhttp_auth_handler_ntlm_portable.cc273 std::string passbuf = base::SysWideToNativeMB(UTF16ToWide(password)); in LM_Hash() local
274 StringToUpperASCII(&passbuf); in LM_Hash()
275 passbuf.resize(14, '\0'); in LM_Hash()
278 DESMakeKey(reinterpret_cast<const uint8*>(passbuf.data()) , k1); in LM_Hash()
279 DESMakeKey(reinterpret_cast<const uint8*>(passbuf.data()) + 7, k2); in LM_Hash()
280 ZapString(&passbuf); in LM_Hash()
296 uint8* passbuf; in NTLM_Hash() local
298 passbuf = static_cast<uint8*>(malloc(len * 2)); in NTLM_Hash()
299 WriteUnicodeLE(passbuf, password.data(), len); in NTLM_Hash()
300 weak_crypto::MD4Sum(passbuf, len * 2, hash); in NTLM_Hash()
[all …]
/external/ppp/pppd/plugins/radius/
Dsendserver.c38 unsigned char passbuf[MAX(AUTH_PASS_LEN, CHAP_VALUE_LENGTH)]; in rc_pack_list() local
103 memset ((char *) passbuf, '\0', AUTH_PASS_LEN); in rc_pack_list()
104 memcpy ((char *) passbuf, vp->strvalue, (size_t) length); in rc_pack_list()
120 *buf++ ^= passbuf[pc]; in rc_pack_list()
137 memset ((char *) passbuf, '\0', CHAP_VALUE_LENGTH); in rc_pack_list()
138 memcpy ((char *) passbuf, vp->strvalue, (size_t) length); in rc_pack_list()
149 *buf++ ^= passbuf[i]; in rc_pack_list()
/external/chromium/third_party/libjingle/source/talk/base/
Dhttpcommon.cc956 unsigned char userbuf[256], passbuf[256], domainbuf[16]; in HttpAuthenticate() local
972 _min(sizeof(passbuf) - 1, password.GetLength())); in HttpAuthenticate()
973 memcpy(passbuf, sensitive, auth_id.PasswordLength); in HttpAuthenticate()
974 passbuf[auth_id.PasswordLength] = 0; in HttpAuthenticate()
985 _min(sizeof(passbuf) - 1, password.GetLength())); in HttpAuthenticate()
986 memcpy(passbuf, sensitive, auth_id.PasswordLength); in HttpAuthenticate()
987 passbuf[auth_id.PasswordLength] = 0; in HttpAuthenticate()
993 auth_id.Password = passbuf; in HttpAuthenticate()