Lines Matching refs:challenge
72 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
256 if ((challenge = BN_new()) == NULL) in try_rsa_authentication()
258 packet_get_bignum(challenge); in try_rsa_authentication()
316 BN_clear_free(challenge); in try_rsa_authentication()
321 respond_to_rsa_challenge(challenge, private->rsa); in try_rsa_authentication()
328 BN_clear_free(challenge); in try_rsa_authentication()
350 BIGNUM *challenge; in try_rhosts_rsa_authentication() local
377 if ((challenge = BN_new()) == NULL) in try_rhosts_rsa_authentication()
379 packet_get_bignum(challenge); in try_rhosts_rsa_authentication()
385 respond_to_rsa_challenge(challenge, host_key->rsa); in try_rhosts_rsa_authentication()
388 BN_clear_free(challenge); in try_rhosts_rsa_authentication()
412 char *challenge, *response; in try_challenge_response_authentication() local
432 challenge = packet_get_string(&clen); in try_challenge_response_authentication()
434 snprintf(prompt, sizeof prompt, "%s%s", challenge, in try_challenge_response_authentication()
435 strchr(challenge, '\n') ? "" : "\nResponse: "); in try_challenge_response_authentication()
436 free(challenge); in try_challenge_response_authentication()