Home
last modified time | relevance | path

Searched refs:hmacs (Results 1 – 4 of 4) sorted by relevance

/linux-3.4.99/net/sctp/
Dauth.c197 sctp_hmac_algo_param_t *hmacs, in sctp_auth_make_key_vector() argument
204 len = ntohs(random->param_hdr.length) + ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector()
223 memcpy(new->data + offset, hmacs, ntohs(hmacs->param_hdr.length)); in sctp_auth_make_key_vector()
525 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_get_hmac() local
537 hmacs = asoc->peer.peer_hmacs; in sctp_auth_asoc_get_hmac()
538 if (!hmacs) in sctp_auth_asoc_get_hmac()
541 n_elt = (ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t)) >> 1; in sctp_auth_asoc_get_hmac()
543 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()
570 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument
576 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
[all …]
Dsocket.c3340 struct sctp_hmacalgo *hmacs; in sctp_setsockopt_hmac_ident() local
3350 hmacs= memdup_user(optval, optlen); in sctp_setsockopt_hmac_ident()
3351 if (IS_ERR(hmacs)) in sctp_setsockopt_hmac_ident()
3352 return PTR_ERR(hmacs); in sctp_setsockopt_hmac_ident()
3354 idents = hmacs->shmac_num_idents; in sctp_setsockopt_hmac_ident()
3361 err = sctp_auth_ep_set_hmacs(sctp_sk(sk)->ep, hmacs); in sctp_setsockopt_hmac_ident()
3363 kfree(hmacs); in sctp_setsockopt_hmac_ident()
5282 struct sctp_hmac_algo_param *hmacs; in sctp_getsockopt_hmac_ident() local
5289 hmacs = sctp_sk(sk)->ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()
5290 data_len = ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_hmac_ident()
[all …]
Dsm_make_chunk.c2074 struct sctp_hmac_algo_param *hmacs; in sctp_verify_param() local
2154 hmacs = (struct sctp_hmac_algo_param *)param.p; in sctp_verify_param()
2162 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
/linux-3.4.99/include/net/sctp/
Dauth.h104 struct sctp_hmac_algo_param *hmacs);
116 struct sctp_hmacalgo *hmacs);