Lines Matching refs:auth
67 packet->auth = NULL; in sctp_packet_reset()
246 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
261 if (!chunk->auth) in sctp_packet_bundle_auth()
264 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
265 if (!auth) in sctp_packet_bundle_auth()
268 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
269 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
271 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
274 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
368 packet->auth = chunk; in __sctp_packet_append_chunk()
440 struct sctp_auth_chunk *auth = NULL; in sctp_packet_pack() local
463 if (chunk == packet->auth) in sctp_packet_pack()
496 if (chunk == packet->auth) in sctp_packet_pack()
497 auth = (struct sctp_auth_chunk *) in sctp_packet_pack()
512 if (!sctp_chunk_is_data(chunk) && chunk != packet->auth) in sctp_packet_pack()
519 if (auth) { in sctp_packet_pack()
520 sctp_auth_calculate_hmac(tp->asoc, nskb, auth, in sctp_packet_pack()
521 packet->auth->shkey, gfp); in sctp_packet_pack()
524 sctp_chunk_free(packet->auth); in sctp_packet_pack()
526 list_add(&packet->auth->list, in sctp_packet_pack()
793 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()
794 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
814 (!packet->has_data && chunk->auth)) { in sctp_packet_will_fit()
829 if (packet->auth) in sctp_packet_will_fit()
830 maxsize -= SCTP_PAD4(packet->auth->skb->len); in sctp_packet_will_fit()