Lines Matching refs:sensitive_data

199 } sensitive_data;  variable
479 sensitive_data.server_key ? "new " : "", options.server_key_bits); in generate_ephemeral_server_key()
480 if (sensitive_data.server_key != NULL) in generate_ephemeral_server_key()
481 key_free(sensitive_data.server_key); in generate_ephemeral_server_key()
482 sensitive_data.server_key = key_generate(KEY_RSA1, in generate_ephemeral_server_key()
489 sensitive_data.ssh1_cookie[i] = rnd & 0xff; in generate_ephemeral_server_key()
647 if (sensitive_data.server_key) { in destroy_sensitive_data()
648 key_free(sensitive_data.server_key); in destroy_sensitive_data()
649 sensitive_data.server_key = NULL; in destroy_sensitive_data()
652 if (sensitive_data.host_keys[i]) { in destroy_sensitive_data()
653 key_free(sensitive_data.host_keys[i]); in destroy_sensitive_data()
654 sensitive_data.host_keys[i] = NULL; in destroy_sensitive_data()
657 sensitive_data.ssh1_host_key = NULL; in destroy_sensitive_data()
658 (void) memset(sensitive_data.ssh1_cookie, 0, SSH_SESSION_KEY_LENGTH); in destroy_sensitive_data()
668 if (sensitive_data.server_key) { in demote_sensitive_data()
669 tmp = key_demote(sensitive_data.server_key); in demote_sensitive_data()
670 key_free(sensitive_data.server_key); in demote_sensitive_data()
671 sensitive_data.server_key = tmp; in demote_sensitive_data()
675 if (sensitive_data.host_keys[i]) { in demote_sensitive_data()
676 tmp = key_demote(sensitive_data.host_keys[i]); in demote_sensitive_data()
677 key_free(sensitive_data.host_keys[i]); in demote_sensitive_data()
678 sensitive_data.host_keys[i] = tmp; in demote_sensitive_data()
680 sensitive_data.ssh1_host_key = tmp; in demote_sensitive_data()
696 Key *key = sensitive_data.host_keys[i]; in list_hostkey_types()
725 Key *key = sensitive_data.host_keys[i]; in get_hostkey_by_type()
740 return (sensitive_data.host_keys[ind]); in get_hostkey_by_index()
752 if (key == sensitive_data.host_keys[i]) in get_hostkey_index()
1032 sensitive_data.host_keys = in main()
1035 sensitive_data.host_keys[i] = NULL; in main()
1036 sensitive_data.server_key = NULL; in main()
1037 sensitive_data.ssh1_host_key = NULL; in main()
1038 sensitive_data.have_ssh1_key = 0; in main()
1039 sensitive_data.have_ssh2_key = 0; in main()
1043 sensitive_data.host_keys[i] = key; in main()
1047 sensitive_data.host_keys[i] = NULL; in main()
1052 sensitive_data.ssh1_host_key = key; in main()
1053 sensitive_data.have_ssh1_key = 1; in main()
1057 sensitive_data.have_ssh2_key = 1; in main()
1063 if ((options.protocol & SSH_PROTO_1) && !sensitive_data.have_ssh1_key) { in main()
1068 !sensitive_data.have_ssh2_key) { in main()
1101 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) - in main()
1103 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + in main()
1106 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + in main()
1701 if (BN_cmp(sensitive_data.server_key->rsa->n, sensitive_data.ssh1_host_key->rsa->n) > 0) { in ssh1_session_key()
1703 if (BN_num_bits(sensitive_data.server_key->rsa->n) < in ssh1_session_key()
1704 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh1_session_key()
1707 BN_num_bits(sensitive_data.server_key->rsa->n), in ssh1_session_key()
1708 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n), in ssh1_session_key()
1712 sensitive_data.server_key->rsa) <= 0) in ssh1_session_key()
1715 sensitive_data.ssh1_host_key->rsa) <= 0) in ssh1_session_key()
1719 if (BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) < in ssh1_session_key()
1720 BN_num_bits(sensitive_data.server_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh1_session_key()
1723 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n), in ssh1_session_key()
1724 BN_num_bits(sensitive_data.server_key->rsa->n), in ssh1_session_key()
1728 sensitive_data.ssh1_host_key->rsa) < 0) in ssh1_session_key()
1731 sensitive_data.server_key->rsa) < 0) in ssh1_session_key()
1776 packet_put_int(BN_num_bits(sensitive_data.server_key->rsa->n)); in do_ssh1_kex()
1777 packet_put_bignum(sensitive_data.server_key->rsa->e); in do_ssh1_kex()
1778 packet_put_bignum(sensitive_data.server_key->rsa->n); in do_ssh1_kex()
1781 packet_put_int(BN_num_bits(sensitive_data.ssh1_host_key->rsa->n)); in do_ssh1_kex()
1782 packet_put_bignum(sensitive_data.ssh1_host_key->rsa->e); in do_ssh1_kex()
1783 packet_put_bignum(sensitive_data.ssh1_host_key->rsa->n); in do_ssh1_kex()
1822 BN_num_bits(sensitive_data.server_key->rsa->n), in do_ssh1_kex()
1823 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n)); in do_ssh1_kex()
1876 sensitive_data.ssh1_host_key->rsa->n, in do_ssh1_kex()
1877 sensitive_data.server_key->rsa->n); in do_ssh1_kex()
1895 MD5_Update(&md, sensitive_data.ssh1_cookie, SSH_SESSION_KEY_LENGTH); in do_ssh1_kex()
1900 MD5_Update(&md, sensitive_data.ssh1_cookie, SSH_SESSION_KEY_LENGTH); in do_ssh1_kex()