Lines Matching refs:send_context

128 	struct sshcipher_ctx send_context;  member
288 if ((r = cipher_init(&state->send_context, none, in ssh_packet_set_connection()
517 if ((r = cipher_cleanup(&state->send_context)) != 0) in ssh_packet_close()
808 if ((r = cipher_init(&state->send_context, cipher, key, keylen, in ssh_packet_set_encryption_key()
814 ((wmsg = cipher_warning_message(&state->send_context)) != NULL || in ssh_packet_set_encryption_key()
815 (wmsg = cipher_warning_message(&state->send_context)) != NULL)) { in ssh_packet_set_encryption_key()
861 if (!state->send_context.plaintext) { in ssh_packet_send1()
891 if ((r = cipher_crypt(&state->send_context, 0, cp, in ssh_packet_send1()
930 cc = &state->send_context; in ssh_set_newkeys()
1127 if (enc && !state->send_context.plaintext) { in ssh_packet_send2_wrapped()
1159 if ((r = cipher_crypt(&state->send_context, state->p_send.seqnr, cp, in ssh_packet_send2_wrapped()
2377 cc = (mode == MODE_OUT) ? &ssh->state->send_context : in newkeys_to_blob()
2419 slen = cipher_get_keyiv_len(&state->send_context); in ssh_packet_get_state()
2426 (r = cipher_get_keyiv(&state->send_context, p, slen)) != 0 || in ssh_packet_get_state()
2448 slen = cipher_get_keycontext(&state->send_context, NULL); in ssh_packet_get_state()
2453 if (cipher_get_keycontext(&state->send_context, p) != (int)slen) in ssh_packet_get_state()
2614 if (cipher_get_keyiv_len(&state->send_context) != (int)slen || in ssh_packet_set_state()
2617 if ((r = cipher_set_keyiv(&state->send_context, ivout)) != 0 || in ssh_packet_set_state()
2648 if (cipher_get_keycontext(&state->send_context, NULL) != (int)slen || in ssh_packet_set_state()
2651 cipher_set_keycontext(&state->send_context, keyout); in ssh_packet_set_state()