Lines Matching refs:auth_hmacs

228 			(struct sctp_hmac_algo_param *)asoc->c.auth_hmacs, gfp);  in sctp_auth_make_local_vector()
460 if (ep->auth_hmacs) in sctp_auth_init_hmacs()
464 ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS, in sctp_auth_init_hmacs()
467 if (!ep->auth_hmacs) in sctp_auth_init_hmacs()
481 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
489 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
496 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_init_hmacs()
497 ep->auth_hmacs = NULL; in sctp_auth_init_hmacs()
502 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]) in sctp_auth_destroy_hmacs() argument
506 if (!auth_hmacs) in sctp_auth_destroy_hmacs()
510 crypto_free_shash(auth_hmacs[i]); in sctp_auth_destroy_hmacs()
512 kfree(auth_hmacs); in sctp_auth_destroy_hmacs()
593 hmacs = (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs; in sctp_auth_asoc_verify_hmac_id()
629 if (ep->auth_hmacs[id]) { in sctp_auth_asoc_set_default_hmac()
739 tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()
1031 struct sctp_hmac_algo_param *auth_hmacs; in sctp_auth_init() local
1033 auth_hmacs = kzalloc(struct_size(auth_hmacs, hmac_ids, in sctp_auth_init()
1035 if (!auth_hmacs) in sctp_auth_init()
1042 auth_hmacs->param_hdr.type = SCTP_PARAM_HMAC_ALGO; in sctp_auth_init()
1043 auth_hmacs->param_hdr.length = in sctp_auth_init()
1045 auth_hmacs->hmac_ids[0] = htons(SCTP_AUTH_HMAC_ID_SHA1); in sctp_auth_init()
1046 ep->auth_hmacs_list = auth_hmacs; in sctp_auth_init()
1087 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_free()
1088 ep->auth_hmacs = NULL; in sctp_auth_free()