Home
last modified time | relevance | path

Searched refs:ctrl_key (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/nvme/target/
H A Dauth.c201 nvme_auth_free_key(ctrl->ctrl_key); in nvmet_setup_auth()
203 ctrl->ctrl_key = NULL; in nvmet_setup_auth()
207 ctrl->ctrl_key = nvme_auth_extract_key(host->dhchap_ctrl_secret + 10, in nvmet_setup_auth()
209 if (IS_ERR(ctrl->ctrl_key)) { in nvmet_setup_auth()
211 ctrl->ctrl_key = NULL; in nvmet_setup_auth()
215 ctrl->ctrl_key->hash > 0 ? in nvmet_setup_auth()
216 nvme_auth_hmac_name(ctrl->ctrl_key->hash) : "none", in nvmet_setup_auth()
217 (int)ctrl->ctrl_key->len, ctrl->ctrl_key->key); in nvmet_setup_auth()
260 if (ctrl->ctrl_key) { in nvmet_destroy_auth()
261 nvme_auth_free_key(ctrl->ctrl_key); in nvmet_destroy_auth()
[all …]
H A Dfabrics-cmd-auth.c406 if (!ctrl->ctrl_key) { in nvmet_auth_success1()
/linux/drivers/nvme/host/
H A Dauth.c41 u8 *ctrl_key; member
276 chap->ctrl_key = kmalloc(dhvlen, GFP_KERNEL); in nvme_auth_process_dhchap_challenge()
277 if (!chap->ctrl_key) { in nvme_auth_process_dhchap_challenge()
282 memcpy(chap->ctrl_key, data->cval + chap->hash_len, in nvme_auth_process_dhchap_challenge()
285 (int)chap->ctrl_key_len, chap->ctrl_key); in nvme_auth_process_dhchap_challenge()
314 if (ctrl->ctrl_key) { in nvme_auth_set_dhchap_reply_data()
512 transformed_key = nvme_auth_transform_key(ctrl->ctrl_key, in nvme_auth_dhchap_setup_ctrl_response()
633 chap->ctrl_key, chap->ctrl_key_len, in nvme_auth_dhchap_exponential()
653 kfree_sensitive(chap->ctrl_key); in nvme_auth_reset_dhchap()
654 chap->ctrl_key = NULL; in nvme_auth_reset_dhchap()
[all …]
H A Dsysfs.c639 struct nvme_dhchap_key *key, *ctrl_key; in nvme_ctrl_dhchap_ctrl_secret_store() local
649 ctrl_key = ctrl->ctrl_key; in nvme_ctrl_dhchap_ctrl_secret_store()
651 ctrl->ctrl_key = key; in nvme_ctrl_dhchap_ctrl_secret_store()
653 nvme_auth_free_key(ctrl_key); in nvme_ctrl_dhchap_ctrl_secret_store()
H A Dnvme.h377 struct nvme_dhchap_key *ctrl_key; member
/linux/include/linux/
H A Dnvme-auth.h41 u8 *ctrl_key, size_t ctrl_key_len,
/linux/drivers/nvme/common/
H A Dauth.c422 u8 *ctrl_key, size_t ctrl_key_len, in nvme_auth_gen_shared_secret() argument
435 sg_init_one(&src, ctrl_key, ctrl_key_len); in nvme_auth_gen_shared_secret()