Home
last modified time | relevance | path

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

/drivers/nvme/target/
Dauth.c190 nvme_auth_free_key(ctrl->ctrl_key); in nvmet_setup_auth()
192 ctrl->ctrl_key = NULL; in nvmet_setup_auth()
196 ctrl->ctrl_key = nvme_auth_extract_key(host->dhchap_ctrl_secret + 10, in nvmet_setup_auth()
198 if (IS_ERR(ctrl->ctrl_key)) { in nvmet_setup_auth()
199 ret = PTR_ERR(ctrl->ctrl_key); in nvmet_setup_auth()
200 ctrl->ctrl_key = NULL; in nvmet_setup_auth()
204 ctrl->ctrl_key->hash > 0 ? in nvmet_setup_auth()
205 nvme_auth_hmac_name(ctrl->ctrl_key->hash) : "none", in nvmet_setup_auth()
206 (int)ctrl->ctrl_key->len, ctrl->ctrl_key->key); in nvmet_setup_auth()
249 if (ctrl->ctrl_key) { in nvmet_destroy_auth()
[all …]
Dnvmet.h226 struct nvme_dhchap_key *ctrl_key; member
Dfabrics-cmd-auth.c410 if (!ctrl->ctrl_key) { in nvmet_auth_success1()
/drivers/nvme/host/
Dauth.c37 u8 *ctrl_key; member
226 kfree_sensitive(chap->ctrl_key); in nvme_auth_process_dhchap_challenge()
227 chap->ctrl_key = NULL; in nvme_auth_process_dhchap_challenge()
279 chap->ctrl_key = kmalloc(dhvlen, GFP_KERNEL); in nvme_auth_process_dhchap_challenge()
280 if (!chap->ctrl_key) { in nvme_auth_process_dhchap_challenge()
285 memcpy(chap->ctrl_key, data->cval + chap->hash_len, in nvme_auth_process_dhchap_challenge()
288 (int)chap->ctrl_key_len, chap->ctrl_key); in nvme_auth_process_dhchap_challenge()
317 if (ctrl->ctrl_key) { in nvme_auth_set_dhchap_reply_data()
347 if (ctrl->ctrl_key) in nvme_auth_process_dhchap_success1()
518 ctrl_response = nvme_auth_transform_key(ctrl->ctrl_key, in nvme_auth_dhchap_setup_ctrl_response()
[all …]
Dnvme.h353 struct nvme_dhchap_key *ctrl_key; member
Dcore.c3915 struct nvme_dhchap_key *key, *ctrl_key; in nvme_ctrl_dhchap_ctrl_secret_store() local
3925 ctrl_key = ctrl->ctrl_key; in nvme_ctrl_dhchap_ctrl_secret_store()
3926 ctrl->ctrl_key = key; in nvme_ctrl_dhchap_ctrl_secret_store()
3927 nvme_auth_free_key(ctrl_key); in nvme_ctrl_dhchap_ctrl_secret_store()
/drivers/nvme/common/
Dauth.c431 u8 *ctrl_key, size_t ctrl_key_len, in nvme_auth_gen_shared_secret() argument
444 sg_init_one(&src, ctrl_key, ctrl_key_len); in nvme_auth_gen_shared_secret()