Lines Matching refs:ep_key
120 struct sctp_shared_key *ep_key; in sctp_auth_destroy_keys() local
126 key_for_each_safe(ep_key, tmp, keys) { in sctp_auth_destroy_keys()
127 list_del_init(&ep_key->key_list); in sctp_auth_destroy_keys()
128 sctp_auth_shkey_release(ep_key); in sctp_auth_destroy_keys()
253 struct sctp_shared_key *ep_key, in sctp_auth_asoc_set_secret() argument
263 if (ep_key->key) in sctp_auth_asoc_set_secret()
264 auth_len += ep_key->key->len; in sctp_auth_asoc_set_secret()
270 if (ep_key->key) { in sctp_auth_asoc_set_secret()
271 memcpy(secret->data, ep_key->key->data, ep_key->key->len); in sctp_auth_asoc_set_secret()
272 offset += ep_key->key->len; in sctp_auth_asoc_set_secret()
288 struct sctp_shared_key *ep_key, in sctp_auth_asoc_create_secret() argument
340 secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector, in sctp_auth_asoc_create_secret()
386 struct sctp_shared_key *ep_key; in sctp_auth_asoc_init_active_key() local
400 ep_key = sctp_auth_get_shkey(asoc, asoc->active_key_id); in sctp_auth_asoc_init_active_key()
401 BUG_ON(!ep_key); in sctp_auth_asoc_init_active_key()
403 secret = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_asoc_init_active_key()
409 asoc->shkey = ep_key; in sctp_auth_asoc_init_active_key()
709 struct sctp_shared_key *ep_key, gfp_t gfp) in sctp_auth_calculate_hmac() argument
729 asoc_key = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_calculate_hmac()