Lines Matching refs:ep_key
135 struct sctp_shared_key *ep_key; in sctp_auth_destroy_keys() local
141 key_for_each_safe(ep_key, tmp, keys) { in sctp_auth_destroy_keys()
142 list_del_init(&ep_key->key_list); in sctp_auth_destroy_keys()
143 sctp_auth_shkey_release(ep_key); in sctp_auth_destroy_keys()
268 struct sctp_shared_key *ep_key, in sctp_auth_asoc_set_secret() argument
278 if (ep_key->key) in sctp_auth_asoc_set_secret()
279 auth_len += ep_key->key->len; in sctp_auth_asoc_set_secret()
285 if (ep_key->key) { in sctp_auth_asoc_set_secret()
286 memcpy(secret->data, ep_key->key->data, ep_key->key->len); in sctp_auth_asoc_set_secret()
287 offset += ep_key->key->len; in sctp_auth_asoc_set_secret()
303 struct sctp_shared_key *ep_key, in sctp_auth_asoc_create_secret() argument
355 secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector, in sctp_auth_asoc_create_secret()
401 struct sctp_shared_key *ep_key; in sctp_auth_asoc_init_active_key() local
415 ep_key = sctp_auth_get_shkey(asoc, asoc->active_key_id); in sctp_auth_asoc_init_active_key()
416 BUG_ON(!ep_key); in sctp_auth_asoc_init_active_key()
418 secret = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_asoc_init_active_key()
424 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()
729 struct sctp_shared_key *ep_key, gfp_t gfp) in sctp_auth_calculate_hmac() argument
749 asoc_key = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_calculate_hmac()