Home
last modified time | relevance | path

Searched refs:cnonce (Results 1 – 25 of 25) sorted by relevance

/external/apache-http/src/org/apache/http/impl/auth/
DDigestScheme.java110 private String cnonce; field in DigestScheme
162 this.cnonce = null; in processChallenge()
204 if (this.cnonce == null) { in getCnonce()
205 this.cnonce = createCnonce(); in getCnonce()
207 return this.cnonce; in getCnonce()
317 String cnonce = getCnonce(); in createDigest() local
320 … StringBuilder tmp3 = new StringBuilder(tmp2.length() + nonce.length() + cnonce.length() + 2); in createDigest()
325 tmp3.append(cnonce); in createDigest()
354 String cnonce = getCnonce(); in createDigest() local
357 + NC.length() + cnonce.length() + qopOption.length() + md5a2.length() + 5); in createDigest()
[all …]
/external/cronet/tot/net/http/
Dhttp_auth_handler_digest.cc73 std::string cnonce; in GenerateNonce() local
74 cnonce.reserve(16); in GenerateNonce()
76 cnonce.push_back(domain[base::RandInt(0, 15)]); in GenerateNonce()
78 return cnonce; in GenerateNonce()
136 std::string cnonce = nonce_generator_->GenerateNonce(); in GenerateAuthTokenImpl() local
145 AssembleCredentials(method, path, *credentials, cnonce, nonce_count_); in GenerateAuthTokenImpl()
390 const std::string& cnonce, in AssembleResponseDigest() argument
402 sess_ctx.Update({ha1, ":", nonce_, ":", cnonce}); in AssembleResponseDigest()
416 resp_ctx.Update({nc, ":", cnonce, ":", QopToString(qop_), ":"}); in AssembleResponseDigest()
428 const std::string& cnonce, in AssembleCredentials() argument
[all …]
Dhttp_auth_handler_digest.h170 const std::string& cnonce,
177 const std::string& cnonce,
Dhttp_auth_handler_digest_unittest.cc445 const char* cnonce; in TEST() member
667 test.cnonce, test.nonce_count); in TEST()
/external/cronet/stable/net/http/
Dhttp_auth_handler_digest.cc73 std::string cnonce; in GenerateNonce() local
74 cnonce.reserve(16); in GenerateNonce()
76 cnonce.push_back(domain[base::RandInt(0, 15)]); in GenerateNonce()
78 return cnonce; in GenerateNonce()
136 std::string cnonce = nonce_generator_->GenerateNonce(); in GenerateAuthTokenImpl() local
145 AssembleCredentials(method, path, *credentials, cnonce, nonce_count_); in GenerateAuthTokenImpl()
390 const std::string& cnonce, in AssembleResponseDigest() argument
402 sess_ctx.Update({ha1, ":", nonce_, ":", cnonce}); in AssembleResponseDigest()
416 resp_ctx.Update({nc, ":", cnonce, ":", QopToString(qop_), ":"}); in AssembleResponseDigest()
428 const std::string& cnonce, in AssembleCredentials() argument
[all …]
Dhttp_auth_handler_digest.h170 const std::string& cnonce,
177 const std::string& cnonce,
Dhttp_auth_handler_digest_unittest.cc445 const char* cnonce; in TEST() member
667 test.cnonce, test.nonce_count); in TEST()
/external/curl/lib/vauth/
Ddigest.c355 char cnonce[33]; in Curl_auth_create_digest_md5_message() local
386 result = Curl_rand_hex(data, (unsigned char *)cnonce, sizeof(cnonce)); in Curl_auth_create_digest_md5_message()
414 Curl_MD5_update(ctxt, (const unsigned char *) cnonce, in Curl_auth_create_digest_md5_message()
415 curlx_uztoui(strlen(cnonce))); in Curl_auth_create_digest_md5_message()
462 Curl_MD5_update(ctxt, (const unsigned char *) cnonce, in Curl_auth_create_digest_md5_message()
463 curlx_uztoui(strlen(cnonce))); in Curl_auth_create_digest_md5_message()
480 cnonce, nonceCount, spn, resp_hash_hex, qop); in Curl_auth_create_digest_md5_message()
698 char *cnonce = NULL; in auth_create_digest_http_message() local
711 if(!digest->cnonce) { in auth_create_digest_http_message()
723 &cnonce, &cnonce_sz); in auth_create_digest_http_message()
[all …]
/external/curl/tests/data/
Dtest128684 # - Remove the unique value from cnonce if in RFC format
89 if(s/^(Authorization: Digest )([^\r\n]+)(\r?\n)$//) { $_ = $1 . join(', ', map { s/^(cnonce=)"[a-zA…
99 Authorization: Digest cnonce=REMOVED, nc=00000001, nonce="1053604144", qop=auth, realm="testrealm",…
105 Authorization: Digest cnonce=REMOVED, nc=00000002, nonce="1053604144", qop=auth, realm="testrealm",…
Dtest15391 ^Authorization.*cnonce
118 …e="testuser", realm="testrealm", nonce="999999", uri="/%TESTNUMBER0002", cnonce="MTA4MzIy", nc="00…
Dtest38891 ^Authorization.*cnonce
118 …e="testuser", realm="testrealm", nonce="999999", uri="/%TESTNUMBER0002", cnonce="MTA4MzIy", nc="00…
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAuthenticationHelperImpl.java304 String cnonce = "xyz"; in getAuthorization() local
309 cnonce, // JvB added in getAuthorization()
337 authorization.setCNonce(cnonce); in getAuthorization()
371 String cnonce = "xyz"; in getAuthorization() local
375 cnonce, // JvB added in getAuthorization()
403 authorization.setCNonce(cnonce); in getAuthorization()
/external/apache-http/android/src/android/net/http/
DRequestHandle.java325 String cnonce = computeCnonce(); in computeDigestAuthResponse() local
326 String digest = computeDigest(A1, A2, nonce, QOP, nc, cnonce); in computeDigestAuthResponse()
344 response += ", qop=" + QOP + ", nc=" + nc + ", cnonce=" + doubleQuote(cnonce); in computeDigestAuthResponse()
365 String A1, String A2, String nonce, String QOP, String nc, String cnonce) { in computeDigest() argument
374 return KD(H(A1), nonce + ":" + nc + ":" + cnonce + ":" + QOP + ":" + H(A2)); in computeDigest()
/external/webrtc/rtc_base/
Dhttp_common.cc306 std::string cnonce, ncount; in HttpAuthenticate() local
309 cnonce = MD5(buffer); in HttpAuthenticate()
334 middle = nonce + ":" + ncount + ":" + cnonce + ":" + qop; in HttpAuthenticate()
353 ss << ", cnonce=" << quote(cnonce); in HttpAuthenticate()
/external/autotest/utils/frozen_chromite/third_party/python3/httplib2/
D__init__.py544 def _wsse_username_token(cnonce, iso_now, password): argument
546 _sha(("%s%s%s" % (cnonce, iso_now, password)).encode("utf-8")).digest()
667 def request(self, method, request_uri, headers, content, cnonce=None): argument
672 self.challenge["cnonce"] = cnonce or _cnonce()
787 cnonce = _cnonce()
791 cnonce,
806 cnonce,
843 cnonce = _cnonce()
844 password_digest = _wsse_username_token(cnonce, iso_now, self.credentials[1])
848 ) % (self.credentials[0], password_digest, cnonce, iso_now)
/external/python/httplib2/python2/httplib2/
D__init__.py597 def _wsse_username_token(cnonce, iso_now, password): argument
599 _sha("%s%s%s" % (cnonce, iso_now, password)).digest()
699 def request(self, method, request_uri, headers, content, cnonce=None): argument
704 self.challenge["cnonce"] = cnonce or _cnonce()
819 cnonce = _cnonce()
823 cnonce,
838 cnonce,
875 cnonce = _cnonce()
876 password_digest = _wsse_username_token(cnonce, iso_now, self.credentials[1])
880 ) % (self.credentials[0], password_digest, cnonce, iso_now)
/external/autotest/utils/frozen_chromite/third_party/python2/httplib2/
D__init__.py584 def _wsse_username_token(cnonce, iso_now, password): argument
586 _sha("%s%s%s" % (cnonce, iso_now, password)).digest()
686 def request(self, method, request_uri, headers, content, cnonce=None): argument
691 self.challenge["cnonce"] = cnonce or _cnonce()
806 cnonce = _cnonce()
810 cnonce,
825 cnonce,
862 cnonce = _cnonce()
863 password_digest = _wsse_username_token(cnonce, iso_now, self.credentials[1])
867 ) % (self.credentials[0], password_digest, cnonce, iso_now)
/external/python/httplib2/python3/httplib2/
D__init__.py551 def _wsse_username_token(cnonce, iso_now, password): argument
553 _sha(("%s%s%s" % (cnonce, iso_now, password)).encode("utf-8")).digest()
674 def request(self, method, request_uri, headers, content, cnonce=None): argument
679 self.challenge["cnonce"] = cnonce or _cnonce()
794 cnonce = _cnonce()
798 cnonce,
813 cnonce,
850 cnonce = _cnonce()
851 password_digest = _wsse_username_token(cnonce, iso_now, self.credentials[1])
855 ) % (self.credentials[0], password_digest, cnonce, iso_now)
/external/nist-sip/java/gov/nist/javax/sip/header/
DAuthenticationHeader.java423 public void setCNonce(String cnonce) throws ParseException { in setCNonce() argument
424 this.setParameter(ParameterNames.CNONCE, cnonce); in setCNonce()
/external/python/httplib2/tests/
Dtest_auth.py290 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
315 d.request("GET", request_uri, headers, content, cnonce="5ec2")
/external/libcups/cups/
Dhttp-support.c1359 char cnonce[65]; /* cnonce value */ in _httpSetDigestAuthString() local
1363 cnonce[i] = "0123456789ABCDEF"[CUPS_RAND() & 15]; in _httpSetDigestAuthString()
1364 cnonce[64] = '\0'; in _httpSetDigestAuthString()
1412 …snprintf(temp, sizeof(temp), "%s:%s:%08x:%s:%s:%s", ha1, http->nonce, http->nonce_count, cnonce, "… in _httpSetDigestAuthString()
1421 …"", cupsUser(), http->realm, http->nonce, http->algorithm, http->opaque, cnonce, http->nonce_count… in _httpSetDigestAuthString()
1423 …, response=\"%s\"", username, http->realm, http->nonce, http->algorithm, cnonce, http->nonce_count… in _httpSetDigestAuthString()
/external/python/cpython3/Lib/urllib/
Drequest.py1158 cnonce = self.get_cnonce(nonce)
1159 noncebit = "%s:%s:%s:%s:%s" % (nonce, ncvalue, cnonce, 'auth', H(A2))
1176 base += ', qop=auth, nc=%s, cnonce="%s"' % (ncvalue, cnonce)
/external/curl/lib/
Durldata.h338 char *cnonce;
/external/python/httplib2/python2/
Dhttplib2test.py1805 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
1831 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
/external/python/httplib2/python3/
Dhttplib2test.py1760 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
1786 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")