Home
last modified time | relevance | path

Searched refs:hmac_desc (Results 1 – 2 of 2) sorted by relevance

/net/sctp/
Dchunk.c207 struct sctp_hmac *hmac_desc = sctp_auth_asoc_get_hmac(asoc); in sctp_datamsg_from_user() local
209 if (hmac_desc) in sctp_datamsg_from_user()
211 hmac_desc->hmac_len); in sctp_datamsg_from_user()
Dsm_make_chunk.c1264 struct sctp_hmac *hmac_desc; in sctp_make_auth() local
1269 hmac_desc = sctp_auth_asoc_get_hmac(asoc); in sctp_make_auth()
1270 if (unlikely(!hmac_desc)) in sctp_make_auth()
1274 hmac_desc->hmac_len + sizeof(sctp_authhdr_t)); in sctp_make_auth()
1278 auth_hdr.hmac_id = htons(hmac_desc->hmac_id); in sctp_make_auth()
1284 hmac = skb_put(retval->skb, hmac_desc->hmac_len); in sctp_make_auth()
1285 memset(hmac, 0, hmac_desc->hmac_len); in sctp_make_auth()
1289 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()