Lines Matching refs:ep_key
123 struct sctp_shared_key *ep_key; in sctp_auth_destroy_keys() local
129 key_for_each_safe(ep_key, tmp, keys) { in sctp_auth_destroy_keys()
130 list_del_init(&ep_key->key_list); in sctp_auth_destroy_keys()
131 sctp_auth_shkey_free(ep_key); in sctp_auth_destroy_keys()
257 struct sctp_shared_key *ep_key, in sctp_auth_asoc_set_secret() argument
267 if (ep_key->key) in sctp_auth_asoc_set_secret()
268 auth_len += ep_key->key->len; in sctp_auth_asoc_set_secret()
274 if (ep_key->key) { in sctp_auth_asoc_set_secret()
275 memcpy(secret->data, ep_key->key->data, ep_key->key->len); in sctp_auth_asoc_set_secret()
276 offset += ep_key->key->len; in sctp_auth_asoc_set_secret()
292 struct sctp_shared_key *ep_key, in sctp_auth_asoc_create_secret() argument
344 secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector, in sctp_auth_asoc_create_secret()
390 struct sctp_shared_key *ep_key; in sctp_auth_asoc_init_active_key() local
404 ep_key = sctp_auth_get_shkey(asoc, asoc->active_key_id); in sctp_auth_asoc_init_active_key()
405 BUG_ON(!ep_key); in sctp_auth_asoc_init_active_key()
407 secret = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_asoc_init_active_key()
730 struct sctp_shared_key *ep_key; in sctp_auth_calculate_hmac() local
732 ep_key = sctp_auth_get_shkey(asoc, key_id); in sctp_auth_calculate_hmac()
733 if (!ep_key) in sctp_auth_calculate_hmac()
736 asoc_key = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_calculate_hmac()