Lines Matching refs:receive_context

124 	struct sshcipher_ctx *receive_context;  member
311 (r = cipher_init(&state->receive_context, none, in ssh_packet_set_connection()
621 cipher_free(state->receive_context); in ssh_packet_close()
622 state->send_context = state->receive_context = NULL; in ssh_packet_close()
832 (r = cipher_init(&state->receive_context, cipher, key, keylen, in ssh_packet_set_encryption_key()
960 ccp = &state->receive_context; in ssh_set_newkeys()
1577 if (!cipher_ctx_is_plaintext(state->receive_context)) { in ssh_packet_read_poll1()
1606 if ((r = cipher_crypt(state->receive_context, 0, p, in ssh_packet_read_poll1()
1745 if (cipher_get_length(state->receive_context, in ssh_packet_read_poll2()
1771 if ((r = cipher_crypt(state->receive_context, in ssh_packet_read_poll2()
1839 if ((r = cipher_crypt(state->receive_context, state->p_read.seqnr, cp, in ssh_packet_read_poll2()
2526 ssh->state->receive_context; in newkeys_to_blob()
2564 ssh1cipher = cipher_ctx_get_number(state->receive_context); in ssh_packet_get_state()
2566 rlen = cipher_get_keyiv_len(state->receive_context); in ssh_packet_get_state()
2575 (r = cipher_get_keyiv(state->receive_context, p, rlen)) != 0) in ssh_packet_get_state()
2595 rlen = cipher_get_keycontext(state->receive_context, NULL); in ssh_packet_get_state()
2604 if (cipher_get_keycontext(state->receive_context, p) != (int)rlen) in ssh_packet_get_state()
2748 cipher_get_keyiv_len(state->receive_context) != (int)rlen) in ssh_packet_set_state()
2751 (r = cipher_set_keyiv(state->receive_context, ivin)) != 0) in ssh_packet_set_state()
2782 cipher_get_keycontext(state->receive_context, NULL) != (int)rlen) in ssh_packet_set_state()
2785 cipher_set_keycontext(state->receive_context, keyin); in ssh_packet_set_state()