Home
last modified time | relevance | path

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

12345678910>>...13

/external/ppp/pppd/
Dchap_ms.c169 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
202 challenge_len = *challenge++; /* skip length, is 8 */ in chapms_verify_response()
[all …]
Dchap-md5.c59 unsigned char *challenge, unsigned char *response, in chap_md5_verify_response() argument
67 challenge_len = *challenge++; in chap_md5_verify_response()
74 MD5_Update(&ctx, challenge, challenge_len); in chap_md5_verify_response()
89 unsigned char *challenge, char *secret, int secret_len, in chap_md5_make_response() argument
94 int challenge_len = *challenge++; in chap_md5_make_response()
99 MD5_Update(&ctx, challenge, challenge_len); in chap_md5_make_response()
Dchap-new.h100 void (*generate_challenge)(unsigned char *challenge);
103 unsigned char *challenge, unsigned char *response,
106 unsigned char *challenge, char *secret, int secret_len,
117 unsigned char *challenge, unsigned char *response,
Dchap-new.c55 unsigned char *challenge, unsigned char *response,
102 unsigned char challenge[CHAL_MAX_PKTLEN]; member
126 unsigned char *challenge, unsigned char *response,
271 output(0, ss->challenge, ss->challenge_pktlen); in chap_timeout()
287 p = ss->challenge; in chap_generate_challenge()
298 p = ss->challenge + PPP_HDRLEN; in chap_generate_challenge()
321 if (id != ss->challenge[PPP_HDRLEN+1] || len < 2) in chap_handle_response()
349 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN, in chap_handle_response()
414 unsigned char *challenge, unsigned char *response, in chap_verify_response() argument
427 ok = digest->verify_response(id, name, secret, secret_len, challenge, in chap_verify_response()
/external/openssh/
Dauth-bsdauth.c57 char *challenge = NULL; in bsdauth_query() local
66 challenge = auth_getitem(authctxt->as, AUTHV_CHALLENGE); in bsdauth_query()
67 if (challenge == NULL) { in bsdauth_query()
73 if (challenge == NULL) { in bsdauth_query()
78 authctxt->style, "auth-ssh", &challenge); in bsdauth_query()
80 challenge = NULL; in bsdauth_query()
81 debug2("bsdauth_query: <%s>", challenge ? challenge : "empty"); in bsdauth_query()
84 if (challenge == NULL) in bsdauth_query()
92 (*prompts)[0] = xstrdup(challenge); in bsdauth_query()
Dsshconnect1.c72 BIGNUM *challenge; in try_agent_authentication() local
83 if ((challenge = BN_new()) == NULL) in try_agent_authentication()
118 packet_get_bignum(challenge); in try_agent_authentication()
125 challenge, session_id, response)) != 0) { in try_agent_authentication()
164 BN_clear_free(challenge); in try_agent_authentication()
173 respond_to_rsa_challenge(BIGNUM * challenge, RSA * prv) in respond_to_rsa_challenge() argument
181 if (rsa_private_decrypt(challenge, challenge, prv) != 0) in respond_to_rsa_challenge()
187 len = BN_num_bytes(challenge); in respond_to_rsa_challenge()
193 BN_bn2bin(challenge, buf + sizeof(buf) - len); in respond_to_rsa_challenge()
222 BIGNUM *challenge; in try_rsa_authentication() local
[all …]
Dauth-skey.c56 char challenge[1024]; in skey_query() local
59 if (_compat_skeychallenge(&skey, authctxt->user, challenge, in skey_query()
60 sizeof(challenge)) == -1) in skey_query()
69 xasprintf(*prompts, "%s%s", challenge, SKEY_PROMPT); in skey_query()
/external/wpa_supplicant_8/src/crypto/
Dms_funcs.c82 const u8 *username, size_t username_len, u8 *challenge) in challenge_hash() argument
97 os_memcpy(challenge, hash, 8); in challenge_hash()
144 void challenge_response(const u8 *challenge, const u8 *password_hash, in challenge_response() argument
148 des_encrypt(challenge, password_hash, response); in challenge_response()
149 des_encrypt(challenge, password_hash + 7, response + 8); in challenge_response()
153 des_encrypt(challenge, zpwd, response + 16); in challenge_response()
173 u8 challenge[8]; in generate_nt_response() local
177 username_len, challenge) || in generate_nt_response()
180 challenge_response(challenge, password_hash, response); in generate_nt_response()
201 u8 challenge[8]; in generate_nt_response_pwhash() local
[all …]
Dms_funcs.h31 int nt_challenge_response(const u8 *challenge, const u8 *password,
34 void challenge_response(const u8 *challenge, const u8 *password_hash,
37 const u8 *username, size_t username_len, u8 *challenge);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
DNetscapeCertRequest.java51 String challenge; field in NetscapeCertRequest
106 challenge = ((DERIA5String)pkac.getObjectAt(1)).getString(); in NetscapeCertRequest()
129 String challenge, in NetscapeCertRequest() argument
135 this.challenge = challenge; in NetscapeCertRequest()
142 content_der.add(new DERIA5String(challenge)); in NetscapeCertRequest()
156 return challenge; in getChallenge()
161 challenge = value; in setChallenge()
194 public boolean verify(String challenge) throws NoSuchAlgorithmException, in verify() argument
197 if (!challenge.equals(this.challenge)) in verify()
241 pkac.add(new DERIA5String(challenge)); in sign()
[all …]
/external/apache-http/src/org/apache/http/impl/auth/
DNTLMScheme.java65 private String challenge; field in NTLMScheme
74 this.challenge = null; in NTLMScheme()
98 String challenge = buffer.substringTrimmed(pos, len); in parseChallenge() local
99 if (challenge.length() == 0) { in parseChallenge()
105 this.challenge = null; in parseChallenge()
108 this.challenge = challenge; in parseChallenge()
135 this.challenge); in authenticate()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DAuthenticatorAdapter.java42 Challenge challenge = challenges.get(i); in authenticate() local
43 if (!"Basic".equalsIgnoreCase(challenge.getScheme())) continue; in authenticate()
47 challenge.getRealm(), challenge.getScheme(), url.url(), RequestorType.SERVER); in authenticate()
64 Challenge challenge = challenges.get(i); in authenticateProxy() local
65 if (!"Basic".equalsIgnoreCase(challenge.getScheme())) continue; in authenticateProxy()
70 url.scheme(), challenge.getRealm(), challenge.getScheme(), url.url(), in authenticateProxy()
/external/ppp/pppd/plugins/
Dwinbind.c100 unsigned char *challenge,
245 const u_char *challenge, in run_ntlm_auth() argument
355 sprintf(challenge_hex + i * 2, "%02X", challenge[i]); in run_ntlm_auth()
513 unsigned char *challenge, in winbind_chap_verify() argument
525 challenge_len = *challenge++; in winbind_chap_verify()
580 challenge, challenge_len, in winbind_chap_verify()
585 mppe_set_keys(challenge, session_key); in winbind_chap_verify()
595 challenge_len, challenge); in winbind_chap_verify()
610 ChallengeHash(&response[MS_CHAP2_PEER_CHALLENGE], challenge, in winbind_chap_verify()
629 challenge, user, saresponse); in winbind_chap_verify()
[all …]
/external/python/cpython2/Demo/pdist/
Dsecurity.py28 def _compare_challenge_response(self, challenge, response): argument
29 return self._encode_challenge(challenge) == response
31 def _encode_challenge(self, challenge): argument
33 return pow(long(challenge), p, m)
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc26 PoloChallengeResponse* challenge) in PairingSession() argument
30 challenge_(challenge), in PairingSession()
98 if (!challenge().CheckGamma(secret)) { in SetSecret()
103 nonce_ = challenge().ExtractNonce(secret); in SetSecret()
109 const Alpha* gen_alpha = challenge().GetAlpha(*nonce_); in SetSecret()
162 const Gamma* gamma = challenge().GetGamma(*nonce_); in DoOutputPairing()
230 const Alpha* alpha = challenge().GetAlpha(*nonce_); in OnSecretMessage()
267 const Alpha* gen_alpha = challenge().GetAlpha(*nonce_); in VerifySecret()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_md5.c20 u8 challenge[CHALLENGE_LEN]; member
50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) { in eap_md5_buildReq()
66 wpabuf_put_data(req, data->challenge, CHALLENGE_LEN); in eap_md5_buildReq()
67 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Challenge", data->challenge, in eap_md5_buildReq()
123 data->challenge, CHALLENGE_LEN, hash)) { in eap_md5_process()
/external/wpa_supplicant_8/src/eap_peer/
Deap_md5.c34 const u8 *pos, *challenge, *password; in eap_md5_process() local
67 challenge = pos; in eap_md5_process()
69 challenge, challenge_len); in eap_md5_process()
89 if (chap_md5(id, password, password_len, challenge, challenge_len, in eap_md5_process()
Deap_ttls.c485 u8 *buf, *pos, *challenge, *peer_challenge; in eap_ttls_phase2_request_mschapv2()
510 challenge = eap_ttls_implicit_challenge( in eap_ttls_phase2_request_mschapv2()
512 if (challenge == NULL) { in eap_ttls_phase2_request_mschapv2()
521 challenge, EAP_TTLS_MSCHAPV2_CHALLENGE_LEN); in eap_ttls_phase2_request_mschapv2()
527 data->ident = challenge[EAP_TTLS_MSCHAPV2_CHALLENGE_LEN]; in eap_ttls_phase2_request_mschapv2()
531 os_free(challenge); in eap_ttls_phase2_request_mschapv2()
542 password_len, pwhash, challenge, in eap_ttls_phase2_request_mschapv2()
545 os_free(challenge); in eap_ttls_phase2_request_mschapv2()
554 os_free(challenge); in eap_ttls_phase2_request_mschapv2()
579 u8 *buf, *pos, *challenge; in eap_ttls_phase2_request_mschap()
[all …]
Deap_leap.c65 const u8 *pos, *challenge, *identity, *password; in eap_leap_process_request() local
102 challenge = pos; in eap_leap_process_request()
103 os_memcpy(data->peer_challenge, challenge, LEAP_CHALLENGE_LEN); in eap_leap_process_request()
105 challenge, LEAP_CHALLENGE_LEN); in eap_leap_process_request()
119 challenge_response(challenge, password, rpos); in eap_leap_process_request()
121 nt_challenge_response(challenge, password, password_len, rpos); in eap_leap_process_request()
/external/mtpd/
Dl2tp.c107 static uint8_t challenge[CHALLENGE_SIZE]; variable
335 if (fd == -1 || read(fd, challenge, CHALLENGE_SIZE) != CHALLENGE_SIZE) { in l2tp_connect()
341 add_attribute_raw(CHALLENGE, challenge, CHALLENGE_SIZE); in l2tp_connect()
374 static uint8_t *compute_response(uint8_t type, void *challenge, int size) in compute_response() argument
381 MD5_Update(&ctx, challenge, size); in compute_response()
394 return !memcmp(compute_response(SCCRP, challenge, CHALLENGE_SIZE), in verify_challenge()
403 uint8_t challenge[MAX_ATTRIBUTE_SIZE]; in answer_challenge() local
404 int size = get_attribute_raw(CHALLENGE, challenge, MAX_ATTRIBUTE_SIZE); in answer_challenge()
406 uint8_t *response = compute_response(SCCCN, challenge, size); in answer_challenge()
/external/syslinux/core/lwip/src/netif/ppp/
Dchpms.c126 u_char *challenge, /* IN 8 octets */
143 ChallengeResponse( u_char *challenge, /* IN 8 octets */ in ChallengeResponse() argument
156 DesEncrypt(challenge, ZPasswordHash + 0, response + 0); in ChallengeResponse()
157 DesEncrypt(challenge, ZPasswordHash + 7, response + 8); in ChallengeResponse()
158 DesEncrypt(challenge, ZPasswordHash + 14, response + 16); in ChallengeResponse()
/external/wpa_supplicant_8/src/eap_common/
Dchap.c15 int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge, in chap_md5() argument
25 addr[2] = challenge; in chap_md5()
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAuthenticationHelperImpl.java125 public ClientTransaction handleChallenge(Response challenge, in handleChallenge() argument
130 sipStack.getStackLogger().logDebug("handleChallenge: " + challenge); in handleChallenge()
171 if (challenge == null || reoriginatedRequest == null) { in handleChallenge()
177 if (challenge.getStatusCode() == Response.UNAUTHORIZED) { in handleChallenge()
178 authHeaders = challenge.getHeaders(WWWAuthenticateHeader.NAME); in handleChallenge()
179 } else if (challenge.getStatusCode() == Response.PROXY_AUTHENTICATION_REQUIRED) { in handleChallenge()
180 authHeaders = challenge.getHeaders(ProxyAuthenticateHeader.NAME); in handleChallenge()
/external/ppp/pppd/plugins/radius/
Dradius.c79 unsigned char *challenge,
88 unsigned char *challenge,
336 unsigned char *challenge, unsigned char *response, in radius_chap_verify() argument
352 challenge_len = *challenge++; in radius_chap_verify()
406 challenge, challenge_len, VENDOR_NONE); in radius_chap_verify()
425 challenge, challenge_len, VENDOR_MICROSOFT); in radius_chap_verify()
445 challenge, challenge_len, VENDOR_MICROSOFT); in radius_chap_verify()
481 challenge, message, message_space) < 0) { in radius_chap_verify()
538 struct chap_digest_type *digest, unsigned char *challenge, in radius_setparams() argument
672 if (radius_setmppekeys(vp, req_info, challenge) < 0) { in radius_setparams()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/parser/
DChallengeParser.java49 protected ChallengeParser(String challenge) { in ChallengeParser() argument
50 super(challenge); in ChallengeParser()

12345678910>>...13