Lines Matching refs:ep
357 int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep, in sctp_auth_asoc_copy_shkeys() argument
366 key_for_each(sh_key, &ep->endpoint_shared_keys) { in sctp_auth_asoc_copy_shkeys()
396 if (!asoc->ep->auth_enable || !asoc->peer.auth_capable) in sctp_auth_asoc_init_active_key()
449 int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp) in sctp_auth_init_hmacs() argument
455 if (!ep->auth_enable) { in sctp_auth_init_hmacs()
456 ep->auth_hmacs = NULL; in sctp_auth_init_hmacs()
461 if (ep->auth_hmacs) in sctp_auth_init_hmacs()
465 ep->auth_hmacs = kzalloc( in sctp_auth_init_hmacs()
468 if (!ep->auth_hmacs) in sctp_auth_init_hmacs()
482 if (ep->auth_hmacs[id]) in sctp_auth_init_hmacs()
491 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
498 sctp_auth_destroy_hmacs(ep->auth_hmacs); in sctp_auth_init_hmacs()
609 struct sctp_endpoint *ep; in sctp_auth_asoc_set_default_hmac() local
620 ep = asoc->ep; in sctp_auth_asoc_set_default_hmac()
629 if (ep->auth_hmacs[id]) { in sctp_auth_asoc_set_default_hmac()
679 if (!asoc->ep->auth_enable || !asoc->peer.auth_capable) in sctp_auth_send_cid()
691 if (!asoc->ep->auth_enable) in sctp_auth_recv_cid()
747 desc.tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()
764 int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id) in sctp_auth_ep_add_chunkid() argument
766 struct sctp_chunks_param *p = ep->auth_chunk_list; in sctp_auth_ep_add_chunkid()
786 int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep, in sctp_auth_ep_set_hmacs() argument
813 ep->auth_hmacs_list->hmac_ids[i] = htons(hmacs->shmac_idents[i]); in sctp_auth_ep_set_hmacs()
814 ep->auth_hmacs_list->param_hdr.length = htons(sizeof(sctp_paramhdr_t) + in sctp_auth_ep_set_hmacs()
823 int sctp_auth_set_key(struct sctp_endpoint *ep, in sctp_auth_set_key() argument
838 sh_keys = &ep->endpoint_shared_keys; in sctp_auth_set_key()
882 int sctp_auth_set_active_key(struct sctp_endpoint *ep, in sctp_auth_set_active_key() argument
894 sh_keys = &ep->endpoint_shared_keys; in sctp_auth_set_active_key()
910 ep->active_key_id = key_id; in sctp_auth_set_active_key()
915 int sctp_auth_del_key_id(struct sctp_endpoint *ep, in sctp_auth_del_key_id() argument
932 if (ep->active_key_id == key_id) in sctp_auth_del_key_id()
935 sh_keys = &ep->endpoint_shared_keys; in sctp_auth_del_key_id()