Home
last modified time | relevance | path

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

/linux-2.6.39/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.c3208 struct sctp_hmacalgo *hmacs; in sctp_setsockopt_hmac_ident() local
3218 hmacs = kmalloc(optlen, GFP_KERNEL); in sctp_setsockopt_hmac_ident()
3219 if (!hmacs) in sctp_setsockopt_hmac_ident()
3222 if (copy_from_user(hmacs, optval, optlen)) { in sctp_setsockopt_hmac_ident()
3227 idents = hmacs->shmac_num_idents; in sctp_setsockopt_hmac_ident()
3234 err = sctp_auth_ep_set_hmacs(sctp_sk(sk)->ep, hmacs); in sctp_setsockopt_hmac_ident()
3236 kfree(hmacs); in sctp_setsockopt_hmac_ident()
5106 struct sctp_hmac_algo_param *hmacs; in sctp_getsockopt_hmac_ident() local
5113 hmacs = sctp_sk(sk)->ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()
5114 data_len = ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_hmac_ident()
[all …]
Dsm_make_chunk.c2066 struct sctp_hmac_algo_param *hmacs; in sctp_verify_param() local
2146 hmacs = (struct sctp_hmac_algo_param *)param.p; in sctp_verify_param()
2154 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
/linux-2.6.39/include/net/sctp/
Dauth.h104 struct sctp_hmac_algo_param *hmacs);
116 struct sctp_hmacalgo *hmacs);