Home
last modified time | relevance | path

Searched refs:host_key (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/nvme/target/
Dauth.c177 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
178 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
180 if (IS_ERR(ctrl->host_key)) { in nvmet_setup_auth()
181 ret = PTR_ERR(ctrl->host_key); in nvmet_setup_auth()
182 ctrl->host_key = NULL; in nvmet_setup_auth()
186 ctrl->host_key->hash > 0 ? in nvmet_setup_auth()
187 nvme_auth_hmac_name(ctrl->host_key->hash) : "none", in nvmet_setup_auth()
188 (int)ctrl->host_key->len, ctrl->host_key->key); in nvmet_setup_auth()
210 if (ctrl->host_key) { in nvmet_setup_auth()
211 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
[all …]
Dnvmet.h225 struct nvme_dhchap_key *host_key; member
719 return ctrl->host_key != NULL; in nvmet_has_auth()
Dfabrics-cmd-auth.c135 if (!ctrl->host_key) { in nvmet_auth_reply()
/linux-6.1.9/drivers/nvme/host/
Dauth.c39 u8 *host_key; member
223 kfree_sensitive(chap->host_key); in nvme_auth_process_dhchap_challenge()
224 chap->host_key = NULL; in nvme_auth_process_dhchap_challenge()
333 chap->host_key_len, chap->host_key); in nvme_auth_set_dhchap_reply_data()
334 memcpy(data->rval + 2 * chap->hash_len, chap->host_key, in nvme_auth_set_dhchap_reply_data()
435 chap->host_response = nvme_auth_transform_key(ctrl->host_key, in nvme_auth_dhchap_setup_host_response()
448 chap->host_response, ctrl->host_key->len); in nvme_auth_dhchap_setup_host_response()
600 if (chap->host_key && chap->host_key_len) { in nvme_auth_dhchap_exponential()
613 chap->host_key = kzalloc(chap->host_key_len, GFP_KERNEL); in nvme_auth_dhchap_exponential()
614 if (!chap->host_key) { in nvme_auth_dhchap_exponential()
[all …]
Dnvme.h341 struct nvme_dhchap_key *host_key; member
Dcore.c3768 struct nvme_dhchap_key *key, *host_key; in nvme_ctrl_dhchap_secret_store() local
3776 host_key = ctrl->host_key; in nvme_ctrl_dhchap_secret_store()
3777 ctrl->host_key = key; in nvme_ctrl_dhchap_secret_store()
3778 nvme_auth_free_key(host_key); in nvme_ctrl_dhchap_secret_store()
/linux-6.1.9/include/linux/
Dnvme-auth.h36 u8 *host_key, size_t host_key_len);
/linux-6.1.9/drivers/nvme/common/
Dauth.c406 u8 *host_key, size_t host_key_len) in nvme_auth_gen_pubkey() argument
419 sg_init_one(&dst, host_key, host_key_len); in nvme_auth_gen_pubkey()