Home
last modified time | relevance | path

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

/linux/drivers/nvme/target/
H A Dauth.c194 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
195 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
197 if (IS_ERR(ctrl->host_key)) { in nvmet_setup_auth()
199 ctrl->host_key = NULL; in nvmet_setup_auth()
203 ctrl->host_key->hash > 0 ? in nvmet_setup_auth()
204 nvme_auth_hmac_name(ctrl->host_key->hash) : "none", in nvmet_setup_auth()
205 (int)ctrl->host_key->len, ctrl->host_key->key); in nvmet_setup_auth()
227 if (ctrl->host_key) { in nvmet_setup_auth()
228 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
229 ctrl->host_key = NULL; in nvmet_setup_auth()
[all …]
H A Dnvmet.h301 struct nvme_dhchap_key *host_key; member
910 return ctrl->host_key != NULL && !nvmet_queue_tls_keyid(sq); in nvmet_has_auth()
H A Dfabrics-cmd-auth.c159 if (!ctrl->host_key) { in nvmet_auth_reply()
/linux/drivers/nvme/host/
H A Dauth.c44 u8 *host_key; member
342 chap->host_key_len, chap->host_key); in nvme_auth_set_dhchap_reply_data()
343 memcpy(data->rval + 2 * chap->hash_len, chap->host_key, in nvme_auth_set_dhchap_reply_data()
441 chap->transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvme_auth_dhchap_setup_host_response()
607 if (chap->host_key && chap->host_key_len) { in nvme_auth_dhchap_exponential()
620 chap->host_key = kzalloc(chap->host_key_len, GFP_KERNEL); in nvme_auth_dhchap_exponential()
621 if (!chap->host_key) { in nvme_auth_dhchap_exponential()
627 chap->host_key, chap->host_key_len); in nvme_auth_dhchap_exponential()
662 kfree_sensitive(chap->host_key); in nvme_auth_reset_dhchap()
663 chap->host_key = NULL; in nvme_auth_reset_dhchap()
[all …]
H A Dsysfs.c636 struct nvme_dhchap_key *key, *host_key; in nvme_ctrl_dhchap_secret_store() local
646 host_key = ctrl->host_key; in nvme_ctrl_dhchap_secret_store()
648 ctrl->host_key = key; in nvme_ctrl_dhchap_secret_store()
650 nvme_auth_free_key(host_key); in nvme_ctrl_dhchap_secret_store()
H A Dnvme.h381 struct nvme_dhchap_key *host_key; member
/linux/include/linux/
H A Dnvme-auth.h39 u8 *host_key, size_t host_key_len);
/linux/drivers/nvme/common/
H A Dauth.c389 u8 *host_key, size_t host_key_len) in nvme_auth_gen_pubkey() argument
402 sg_init_one(&dst, host_key, host_key_len); in nvme_auth_gen_pubkey()
/linux/arch/s390/kernel/
H A Duv.c721 __ATTR(host_key, 0444, uv_keys_host_key, NULL);