Lines Matching refs:auth_hmacs
236 (sctp_hmac_algo_param_t*)asoc->c.auth_hmacs, in sctp_auth_make_local_vector()
452 ep->auth_hmacs = NULL; in sctp_auth_init_hmacs()
456 if (ep->auth_hmacs) in sctp_auth_init_hmacs()
460 ep->auth_hmacs = kzalloc( in sctp_auth_init_hmacs()
463 if (!ep->auth_hmacs) in sctp_auth_init_hmacs()
477 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
486 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
493 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_init_hmacs()
498 void sctp_auth_destroy_hmacs(struct crypto_hash *auth_hmacs[]) in sctp_auth_destroy_hmacs() argument
502 if (!auth_hmacs) in sctp_auth_destroy_hmacs()
507 if (auth_hmacs[i]) in sctp_auth_destroy_hmacs()
508 crypto_free_hash(auth_hmacs[i]); in sctp_auth_destroy_hmacs()
510 kfree(auth_hmacs); in sctp_auth_destroy_hmacs()
590 hmacs = (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs; in sctp_auth_asoc_verify_hmac_id()
625 if (ep->auth_hmacs[id]) { in sctp_auth_asoc_set_default_hmac()
737 desc.tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()