Lines Matching defs:seqnr
107 u_int32_t seqnr;
386 state->p_read.seqnr,
868 /* note that both bytes and the seqnr are not reset */
1133 /* compute MAC over seqnr and packet(length fields, payload, padding) */
1135 if ((r = mac_compute(mac, state->p_send.seqnr,
1139 DBG(debug("done calc MAC out #%d", state->p_send.seqnr));
1145 if ((r = cipher_crypt(state->send_context, state->p_send.seqnr, cp,
1153 if ((r = mac_compute(mac, state->p_send.seqnr,
1157 state->p_send.seqnr));
1167 if (++state->p_send.seqnr == 0)
1168 logit("outgoing seqnr wraps around");
1479 &state->packlen, state->p_read.seqnr,
1505 state->p_send.seqnr, cp, sshbuf_ptr(state->input),
1560 if ((r = mac_check(mac, state->p_read.seqnr,
1572 if ((r = cipher_crypt(state->receive_context, state->p_read.seqnr, cp,
1579 if (!mac->etm && (r = mac_check(mac, state->p_read.seqnr,
1593 DBG(debug("MAC #%d ok", state->p_read.seqnr));
1598 *seqnr_p = state->p_read.seqnr;
1599 if (++state->p_read.seqnr == 0)
1600 logit("incoming seqnr wraps around");
1681 u_int reason, seqnr;
1722 if ((r = sshpkt_get_u32(ssh, &seqnr)) != 0)
1725 seqnr);
2244 (r = sshbuf_put_u32(m, state->p_send.seqnr)) != 0 ||
2248 (r = sshbuf_put_u32(m, state->p_read.seqnr)) != 0 ||
2386 (r = sshbuf_get_u32(m, &state->p_send.seqnr)) != 0 ||
2390 (r = sshbuf_get_u32(m, &state->p_read.seqnr)) != 0 ||