Lines Matching refs:host_key
347 try_rhosts_rsa_authentication(const char *local_user, Key * host_key) in try_rhosts_rsa_authentication() argument
357 packet_put_int(BN_num_bits(host_key->rsa->n)); in try_rhosts_rsa_authentication()
358 packet_put_bignum(host_key->rsa->e); in try_rhosts_rsa_authentication()
359 packet_put_bignum(host_key->rsa->n); in try_rhosts_rsa_authentication()
385 respond_to_rsa_challenge(challenge, host_key->rsa); in try_rhosts_rsa_authentication()
505 Key *host_key, *server_key; in ssh_kex() local
536 if ((host_key = key_new(KEY_RSA1)) == NULL) in ssh_kex()
539 packet_get_bignum(host_key->rsa->e); in ssh_kex()
540 packet_get_bignum(host_key->rsa->n); in ssh_kex()
542 rbits = BN_num_bits(host_key->rsa->n); in ssh_kex()
558 BN_num_bits(server_key->rsa->n), BN_num_bits(host_key->rsa->n)); in ssh_kex()
560 if (verify_host_key(host, hostaddr, host_key) == -1) in ssh_kex()
565 derive_ssh1_session_id(host_key->rsa->n, server_key->rsa->n, cookie, session_id); in ssh_kex()
600 if (BN_cmp(server_key->rsa->n, host_key->rsa->n) < 0) { in ssh_kex()
602 if (BN_num_bits(host_key->rsa->n) < in ssh_kex()
606 BN_num_bits(host_key->rsa->n), in ssh_kex()
611 rsa_public_encrypt(key, key, host_key->rsa) != 0) in ssh_kex()
616 BN_num_bits(host_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh_kex()
620 BN_num_bits(host_key->rsa->n), in ssh_kex()
623 if (rsa_public_encrypt(key, key, host_key->rsa) != 0 || in ssh_kex()
630 key_free(host_key); in ssh_kex()