Lines Matching refs:host_key
340 try_rhosts_rsa_authentication(const char *local_user, Key * host_key) in try_rhosts_rsa_authentication() argument
350 packet_put_int(BN_num_bits(host_key->rsa->n)); in try_rhosts_rsa_authentication()
351 packet_put_bignum(host_key->rsa->e); in try_rhosts_rsa_authentication()
352 packet_put_bignum(host_key->rsa->n); in try_rhosts_rsa_authentication()
378 respond_to_rsa_challenge(challenge, host_key->rsa); in try_rhosts_rsa_authentication()
498 Key *host_key, *server_key; in ssh_kex() local
529 host_key = key_new(KEY_RSA1); in ssh_kex()
531 packet_get_bignum(host_key->rsa->e); in ssh_kex()
532 packet_get_bignum(host_key->rsa->n); in ssh_kex()
534 rbits = BN_num_bits(host_key->rsa->n); in ssh_kex()
550 BN_num_bits(server_key->rsa->n), BN_num_bits(host_key->rsa->n)); in ssh_kex()
552 if (verify_host_key(host, hostaddr, host_key) == -1) in ssh_kex()
557 derive_ssh1_session_id(host_key->rsa->n, server_key->rsa->n, cookie, session_id); in ssh_kex()
597 if (BN_cmp(server_key->rsa->n, host_key->rsa->n) < 0) { in ssh_kex()
599 if (BN_num_bits(host_key->rsa->n) < in ssh_kex()
603 BN_num_bits(host_key->rsa->n), in ssh_kex()
608 rsa_public_encrypt(key, key, host_key->rsa) != 0) in ssh_kex()
613 BN_num_bits(host_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh_kex()
617 BN_num_bits(host_key->rsa->n), in ssh_kex()
620 if (rsa_public_encrypt(key, key, host_key->rsa) != 0 || in ssh_kex()
627 key_free(host_key); in ssh_kex()