Lines Matching refs:hmacs
187 struct sctp_hmac_algo_param *hmacs, in sctp_auth_make_key_vector() argument
196 hmacs_len = ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector()
214 memcpy(new->data + offset, hmacs, hmacs_len); in sctp_auth_make_key_vector()
526 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_get_hmac() local
538 hmacs = asoc->peer.peer_hmacs; in sctp_auth_asoc_get_hmac()
539 if (!hmacs) in sctp_auth_asoc_get_hmac()
542 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_get_hmac()
545 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()
568 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument
574 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
587 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_verify_hmac_id() local
593 hmacs = (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs; in sctp_auth_asoc_verify_hmac_id()
594 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_verify_hmac_id()
597 return __sctp_auth_find_hmacid(hmacs->hmac_ids, n_elt, hmac_id); in sctp_auth_asoc_verify_hmac_id()
607 struct sctp_hmac_algo_param *hmacs) in sctp_auth_asoc_set_default_hmac() argument
618 n_params = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_set_default_hmac()
622 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_set_default_hmac()
779 struct sctp_hmacalgo *hmacs) in sctp_auth_ep_set_hmacs() argument
788 for (i = 0; i < hmacs->shmac_num_idents; i++) { in sctp_auth_ep_set_hmacs()
789 id = hmacs->shmac_idents[i]; in sctp_auth_ep_set_hmacs()
804 for (i = 0; i < hmacs->shmac_num_idents; i++) in sctp_auth_ep_set_hmacs()
806 htons(hmacs->shmac_idents[i]); in sctp_auth_ep_set_hmacs()
809 hmacs->shmac_num_idents * sizeof(__u16)); in sctp_auth_ep_set_hmacs()