Searched refs:host_key (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/nvme/target/ |
| H A D | auth.c | 183 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth() 184 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth() 186 if (IS_ERR(ctrl->host_key)) { in nvmet_setup_auth() 188 ctrl->host_key = NULL; in nvmet_setup_auth() 193 ctrl->host_key->hash > 0 ? in nvmet_setup_auth() 194 nvme_auth_hmac_name(ctrl->host_key->hash) : "none", in nvmet_setup_auth() 195 (int)ctrl->host_key->len, ctrl->host_key->key); in nvmet_setup_auth() 218 if (ctrl->host_key) { in nvmet_setup_auth() 219 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth() 220 ctrl->host_key = NULL; in nvmet_setup_auth() [all …]
|
| H A D | nvmet.h | 302 struct nvme_dhchap_key *host_key; member 926 return ctrl->host_key != NULL && !nvmet_queue_tls_keyid(sq); in nvmet_has_auth()
|
| H A D | fabrics-cmd-auth.c | 167 if (!ctrl->host_key) { in nvmet_auth_reply()
|
| /linux/drivers/nvme/host/ |
| H A D | auth.c | 43 u8 *host_key; member 326 chap->host_key_len, chap->host_key); in nvme_auth_set_dhchap_reply_data() 327 memcpy(data->rval + 2 * chap->hash_len, chap->host_key, in nvme_auth_set_dhchap_reply_data() 425 chap->transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvme_auth_dhchap_setup_host_response() 562 if (chap->host_key && chap->host_key_len) { in nvme_auth_dhchap_exponential() 575 chap->host_key = kzalloc(chap->host_key_len, GFP_KERNEL); in nvme_auth_dhchap_exponential() 576 if (!chap->host_key) { in nvme_auth_dhchap_exponential() 582 chap->host_key, chap->host_key_len); in nvme_auth_dhchap_exponential() 618 kfree_sensitive(chap->host_key); in nvme_auth_reset_dhchap() 619 chap->host_key = NULL; in nvme_auth_reset_dhchap() [all …]
|
| H A D | sysfs.c | 841 struct nvme_dhchap_key *key, *host_key; in tls_configured_key_store() 851 host_key = ctrl->host_key; in tls_configured_key_store() 853 ctrl->host_key = key; in tls_configured_key_store() 855 nvme_auth_free_key(host_key); in tls_configured_key_store() 658 struct nvme_dhchap_key *key, *host_key; nvme_ctrl_dhchap_secret_store() local
|
| H A D | nvme.h | 439 struct nvme_dhchap_key *host_key; 435 struct nvme_dhchap_key *host_key; global() member
|
| /linux/include/linux/ |
| H A D | nvme-auth.h | 51 u8 *host_key, size_t host_key_len);
|
| /linux/drivers/nvme/common/ |
| H A D | auth.c | 393 u8 *host_key, size_t host_key_len) in nvme_auth_gen_pubkey() argument 406 sg_init_one(&dst, host_key, host_key_len); in nvme_auth_gen_pubkey()
|