Lines Matching refs:newkeys
186 struct newkeys *newkeys[MODE_MAX]; member
319 state->newkeys[MODE_IN] = state->newkeys[MODE_OUT] = NULL; in ssh_packet_set_connection()
612 kex_free_newkeys(state->newkeys[mode]); /* current keys */ in ssh_packet_close_internal()
613 state->newkeys[mode] = NULL; in ssh_packet_close_internal()
861 if (ssh->kex && ssh->kex->newkeys[mode]) { in ssh_clear_newkeys()
862 kex_free_newkeys(ssh->kex->newkeys[mode]); in ssh_clear_newkeys()
863 ssh->kex->newkeys[mode] = NULL; in ssh_clear_newkeys()
894 if (state->newkeys[mode] != NULL) { in ssh_set_newkeys()
901 kex_free_newkeys(state->newkeys[mode]); in ssh_set_newkeys()
902 state->newkeys[mode] = NULL; in ssh_set_newkeys()
907 if ((state->newkeys[mode] = ssh->kex->newkeys[mode]) == NULL) in ssh_set_newkeys()
909 ssh->kex->newkeys[mode] = NULL; in ssh_set_newkeys()
910 enc = &state->newkeys[mode]->enc; in ssh_set_newkeys()
911 mac = &state->newkeys[mode]->mac; in ssh_set_newkeys()
912 comp = &state->newkeys[mode]->comp; in ssh_set_newkeys()
1005 state->newkeys[MODE_OUT]->enc.block_size); in ssh_packet_need_rekeying()
1031 if (state->newkeys[mode] == NULL) in ssh_packet_enable_delayed_compress()
1033 comp = &state->newkeys[mode]->comp; in ssh_packet_enable_delayed_compress()
1080 if (state->newkeys[MODE_OUT] != NULL) { in ssh_packet_send2_wrapped()
1081 enc = &state->newkeys[MODE_OUT]->enc; in ssh_packet_send2_wrapped()
1082 mac = &state->newkeys[MODE_OUT]->mac; in ssh_packet_send2_wrapped()
1083 comp = &state->newkeys[MODE_OUT]->comp; in ssh_packet_send2_wrapped()
1504 if (state->newkeys[MODE_IN] != NULL) { in ssh_packet_read_poll2()
1505 enc = &state->newkeys[MODE_IN]->enc; in ssh_packet_read_poll2()
1506 mac = &state->newkeys[MODE_IN]->mac; in ssh_packet_read_poll2()
1507 comp = &state->newkeys[MODE_IN]->comp; in ssh_packet_read_poll2()
2256 struct newkeys *newkey; in newkeys_to_blob()
2259 if ((newkey = ssh->state->newkeys[mode]) == NULL) in newkeys_to_blob()
2326 struct newkeys *newkey = NULL; in newkeys_from_blob()
2376 ssh->kex->newkeys[mode] = newkey; in newkeys_from_blob()