Searched refs:auth_hdr (Results 1 – 3 of 3) sorted by relevance
721 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()722 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()740 digest = auth->auth_hdr.hmac; in sctp_auth_calculate_hmac()
4195 struct sctp_authhdr *auth_hdr; in sctp_sf_authenticate() local4202 auth_hdr = (struct sctp_authhdr *)chunk->skb->data; in sctp_sf_authenticate()4203 chunk->subh.auth_hdr = auth_hdr; in sctp_sf_authenticate()4204 skb_pull(chunk->skb, sizeof(*auth_hdr)); in sctp_sf_authenticate()4209 if (!sctp_auth_asoc_verify_hmac_id(asoc, auth_hdr->hmac_id)) in sctp_sf_authenticate()4215 key_id = ntohs(auth_hdr->shkey_id); in sctp_sf_authenticate()4227 hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id)); in sctp_sf_authenticate()4238 digest = auth_hdr->hmac; in sctp_sf_authenticate()4272 struct sctp_authhdr *auth_hdr; in sctp_sf_eat_auth() local4291 auth_hdr = (struct sctp_authhdr *)chunk->skb->data; in sctp_sf_eat_auth()[all …]
1280 struct sctp_authhdr auth_hdr; in sctp_make_auth() local1290 hmac_desc->hmac_len + sizeof(auth_hdr), in sctp_make_auth()1295 auth_hdr.hmac_id = htons(hmac_desc->hmac_id); in sctp_make_auth()1296 auth_hdr.shkey_id = htons(key_id); in sctp_make_auth()1298 retval->subh.auth_hdr = sctp_addto_chunk(retval, sizeof(auth_hdr), in sctp_make_auth()1299 &auth_hdr); in sctp_make_auth()