Searched refs:hmacs (Results 1 – 4 of 4) sorted by relevance
190 sctp_hmac_algo_param_t *hmacs, in sctp_auth_make_key_vector() argument199 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()528 struct sctp_hmac_algo_param *hmacs; in sctp_auth_asoc_get_hmac() local540 hmacs = asoc->peer.peer_hmacs; in sctp_auth_asoc_get_hmac()541 if (!hmacs) in sctp_auth_asoc_get_hmac()544 n_elt = (ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t)) >> 1; in sctp_auth_asoc_get_hmac()546 id = ntohs(hmacs->hmac_ids[i]); in sctp_auth_asoc_get_hmac()569 static int __sctp_auth_find_hmacid(__be16 *hmacs, int n_elts, __be16 hmac_id) in __sctp_auth_find_hmacid() argument575 if (hmac_id == hmacs[i]) { in __sctp_auth_find_hmacid()[all …]
3428 struct sctp_hmacalgo *hmacs; in sctp_setsockopt_hmac_ident() local3438 hmacs = memdup_user(optval, optlen); in sctp_setsockopt_hmac_ident()3439 if (IS_ERR(hmacs)) in sctp_setsockopt_hmac_ident()3440 return PTR_ERR(hmacs); in sctp_setsockopt_hmac_ident()3442 idents = hmacs->shmac_num_idents; in sctp_setsockopt_hmac_ident()3449 err = sctp_auth_ep_set_hmacs(ep, hmacs); in sctp_setsockopt_hmac_ident()3451 kfree(hmacs); in sctp_setsockopt_hmac_ident()5555 struct sctp_hmac_algo_param *hmacs; in sctp_getsockopt_hmac_ident() local5563 hmacs = ep->auth_hmacs_list; in sctp_getsockopt_hmac_ident()5564 data_len = ntohs(hmacs->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_hmac_ident()[all …]
2113 struct sctp_hmac_algo_param *hmacs; in sctp_verify_param() local2193 hmacs = (struct sctp_hmac_algo_param *)param.p; in sctp_verify_param()2201 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
97 struct sctp_hmac_algo_param *hmacs);109 struct sctp_hmacalgo *hmacs);