• Home
  • Raw
  • Download

Lines Matching refs:auth

67 	packet->auth = NULL;  in sctp_packet_reset()
220 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
235 if (!chunk->auth) in sctp_packet_bundle_auth()
238 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
239 if (!auth) in sctp_packet_bundle_auth()
242 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
243 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
245 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
248 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
342 packet->auth = chunk; in __sctp_packet_append_chunk()
410 struct sctp_auth_chunk *auth = NULL; in sctp_packet_pack() local
433 if (chunk == packet->auth) in sctp_packet_pack()
466 if (chunk == packet->auth) in sctp_packet_pack()
467 auth = (struct sctp_auth_chunk *) in sctp_packet_pack()
482 if (!sctp_chunk_is_data(chunk) && chunk != packet->auth) in sctp_packet_pack()
489 if (auth) { in sctp_packet_pack()
490 sctp_auth_calculate_hmac(tp->asoc, nskb, auth, in sctp_packet_pack()
491 packet->auth->shkey, gfp); in sctp_packet_pack()
494 sctp_chunk_free(packet->auth); in sctp_packet_pack()
496 list_add(&packet->auth->list, in sctp_packet_pack()
769 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit()
770 (!packet->auth && chunk->shkey && in sctp_packet_will_fit()
790 (!packet->has_data && chunk->auth)) { in sctp_packet_will_fit()
805 if (packet->auth) in sctp_packet_will_fit()
806 maxsize -= SCTP_PAD4(packet->auth->skb->len); in sctp_packet_will_fit()