Home
last modified time | relevance | path

Searched refs:auth_hmacs (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/net/sctp/
Dendpointola.c61 struct sctp_hmac_algo_param *auth_hmacs = NULL; in sctp_endpoint_init() local
76 auth_hmacs = kzalloc(struct_size(auth_hmacs, hmac_ids, in sctp_endpoint_init()
78 if (!auth_hmacs) in sctp_endpoint_init()
91 auth_hmacs->param_hdr.type = SCTP_PARAM_HMAC_ALGO; in sctp_endpoint_init()
92 auth_hmacs->param_hdr.length = in sctp_endpoint_init()
94 auth_hmacs->hmac_ids[0] = htons(SCTP_AUTH_HMAC_ID_SHA1); in sctp_endpoint_init()
165 ep->auth_hmacs_list = auth_hmacs; in sctp_endpoint_init()
176 kfree(auth_hmacs); in sctp_endpoint_init()
264 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_endpoint_destroy()
Dauth.c243 (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs, gfp); in sctp_auth_make_local_vector()
476 ep->auth_hmacs = NULL; in sctp_auth_init_hmacs()
481 if (ep->auth_hmacs) in sctp_auth_init_hmacs()
485 ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS, in sctp_auth_init_hmacs()
488 if (!ep->auth_hmacs) in sctp_auth_init_hmacs()
502 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
510 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
517 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_init_hmacs()
522 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]) in sctp_auth_destroy_hmacs() argument
526 if (!auth_hmacs) in sctp_auth_destroy_hmacs()
[all …]
Dsm_make_chunk.c229 struct sctp_paramhdr *auth_hmacs = NULL; in sctp_make_init() local
300 auth_hmacs = (struct sctp_paramhdr *)asoc->c.auth_hmacs; in sctp_make_init()
301 if (auth_hmacs->length) in sctp_make_init()
302 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init()
304 auth_hmacs = NULL; in sctp_make_init()
380 if (auth_hmacs) in sctp_make_init()
381 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init()
382 auth_hmacs); in sctp_make_init()
400 struct sctp_paramhdr *auth_hmacs = NULL; in sctp_make_init_ack() local
465 auth_hmacs = (struct sctp_paramhdr *)asoc->c.auth_hmacs; in sctp_make_init_ack()
[all …]
Dassociola.c282 memcpy(asoc->c.auth_hmacs, ep->auth_hmacs_list, in sctp_association_init()
/Linux-v4.19/include/net/sctp/
Dauth.h96 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
Dstructs.h327 __u8 auth_hmacs[SCTP_AUTH_NUM_HMACS * sizeof(__u16) + 2]; member
1322 struct crypto_shash **auth_hmacs; member