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