Searched refs:hmacs (Results 1 – 2 of 2) sorted by relevance
188 struct sctp_hmac_algo_param *hmacs, in sctp_auth_make_key_vector() argument197 hmacs_len = ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector()215 memcpy(new->data + offset, hmacs, hmacs_len); in sctp_auth_make_key_vector()459 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_get_hmac() local471 hmacs = asoc->peer.peer_hmacs; in sctp_auth_asoc_get_hmac()472 if (!hmacs) in sctp_auth_asoc_get_hmac()475 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_get_hmac()478 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()485 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument491 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()[all …]
3601 struct sctp_hmacalgo *hmacs, in sctp_setsockopt_hmac_ident() argument3615 idents = hmacs->shmac_num_idents; in sctp_setsockopt_hmac_ident()3620 return sctp_auth_ep_set_hmacs(ep, hmacs); in sctp_setsockopt_hmac_ident()6939 struct sctp_hmac_algo_param *hmacs; in sctp_getsockopt_hmac_ident() local6947 hmacs = ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()6948 data_len = ntohs(hmacs->param_hdr.length) - in sctp_getsockopt_hmac_ident()6962 __u16 hmacid = ntohs(hmacs->hmac_ids[i]); in sctp_getsockopt_hmac_ident()