Lines Matching defs:ep

353 int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep,
362 key_for_each(sh_key, &ep->endpoint_shared_keys) {
454 int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp)
460 if (ep->auth_hmacs)
464 ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS,
467 if (!ep->auth_hmacs)
481 if (ep->auth_hmacs[id])
489 ep->auth_hmacs[id] = tfm;
496 sctp_auth_destroy_hmacs(ep->auth_hmacs);
497 ep->auth_hmacs = NULL;
609 struct sctp_endpoint *ep;
620 ep = asoc->ep;
629 if (ep->auth_hmacs[id]) {
739 tfm = asoc->ep->auth_hmacs[hmac_id];
756 int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id)
758 struct sctp_chunks_param *p = ep->auth_chunk_list;
778 int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep,
805 ep->auth_hmacs_list->hmac_ids[i] =
807 ep->auth_hmacs_list->param_hdr.length =
817 int sctp_auth_set_key(struct sctp_endpoint *ep,
834 if (!ep->auth_enable)
836 sh_keys = &ep->endpoint_shared_keys;
880 int sctp_auth_set_active_key(struct sctp_endpoint *ep,
894 if (!ep->auth_enable)
896 sh_keys = &ep->endpoint_shared_keys;
918 ep->active_key_id = key_id;
923 int sctp_auth_del_key_id(struct sctp_endpoint *ep,
942 if (!ep->auth_enable)
944 if (ep->active_key_id == key_id)
947 sh_keys = &ep->endpoint_shared_keys;
967 int sctp_auth_deact_key_id(struct sctp_endpoint *ep,
985 if (!ep->auth_enable)
987 if (ep->active_key_id == key_id)
990 sh_keys = &ep->endpoint_shared_keys;
1022 int sctp_auth_init(struct sctp_endpoint *ep, gfp_t gfp)
1030 if (!ep->auth_hmacs_list) {
1046 ep->auth_hmacs_list = auth_hmacs;
1049 if (!ep->auth_chunk_list) {
1060 ep->auth_chunk_list = auth_chunks;
1066 err = sctp_auth_init_hmacs(ep, gfp);
1074 kfree(ep->auth_hmacs_list);
1075 kfree(ep->auth_chunk_list);
1076 ep->auth_hmacs_list = NULL;
1077 ep->auth_chunk_list = NULL;
1081 void sctp_auth_free(struct sctp_endpoint *ep)
1083 kfree(ep->auth_hmacs_list);
1084 kfree(ep->auth_chunk_list);
1085 ep->auth_hmacs_list = NULL;
1086 ep->auth_chunk_list = NULL;
1087 sctp_auth_destroy_hmacs(ep->auth_hmacs);
1088 ep->auth_hmacs = NULL;