Home
last modified time | relevance | path

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

/net/sctp/
Dauth.c190 sctp_hmac_algo_param_t *hmacs, in sctp_auth_make_key_vector() argument
199 hmacs_len = ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector()
217 memcpy(new->data + offset, hmacs, hmacs_len); in sctp_auth_make_key_vector()
519 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_get_hmac() local
531 hmacs = asoc->peer.peer_hmacs; in sctp_auth_asoc_get_hmac()
532 if (!hmacs) in sctp_auth_asoc_get_hmac()
535 n_elt = (ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t)) >> 1; in sctp_auth_asoc_get_hmac()
537 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()
560 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument
566 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()
[all …]
Dsocket.c3470 struct sctp_hmacalgo *hmacs; in sctp_setsockopt_hmac_ident() local
3480 hmacs = memdup_user(optval, optlen); in sctp_setsockopt_hmac_ident()
3481 if (IS_ERR(hmacs)) in sctp_setsockopt_hmac_ident()
3482 return PTR_ERR(hmacs); in sctp_setsockopt_hmac_ident()
3484 idents = hmacs->shmac_num_idents; in sctp_setsockopt_hmac_ident()
3491 err = sctp_auth_ep_set_hmacs(ep, hmacs); in sctp_setsockopt_hmac_ident()
3493 kfree(hmacs); in sctp_setsockopt_hmac_ident()
5601 struct sctp_hmac_algo_param *hmacs; in sctp_getsockopt_hmac_ident() local
5608 hmacs = ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()
5609 data_len = ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_hmac_ident()
[all …]
Dsm_make_chunk.c2113 struct sctp_hmac_algo_param *hmacs; in sctp_verify_param() local
2193 hmacs = (struct sctp_hmac_algo_param *)param.p; in sctp_verify_param()
2201 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()