Lines Matching refs:auth_hmacs
237 (sctp_hmac_algo_param_t*)asoc->c.auth_hmacs, in sctp_auth_make_local_vector()
453 ep->auth_hmacs = NULL; in sctp_auth_init_hmacs()
457 if (ep->auth_hmacs) in sctp_auth_init_hmacs()
461 ep->auth_hmacs = kzalloc( in sctp_auth_init_hmacs()
464 if (!ep->auth_hmacs) in sctp_auth_init_hmacs()
478 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
487 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
494 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_init_hmacs()
499 void sctp_auth_destroy_hmacs(struct crypto_hash *auth_hmacs[]) in sctp_auth_destroy_hmacs() argument
503 if (!auth_hmacs) in sctp_auth_destroy_hmacs()
508 if (auth_hmacs[i]) in sctp_auth_destroy_hmacs()
509 crypto_free_hash(auth_hmacs[i]); in sctp_auth_destroy_hmacs()
511 kfree(auth_hmacs); in sctp_auth_destroy_hmacs()
595 hmacs = (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs; in sctp_auth_asoc_verify_hmac_id()
630 if (ep->auth_hmacs[id]) { in sctp_auth_asoc_set_default_hmac()
742 desc.tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()