Lines Matching refs:host_key
39 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()
620 chap->host_key, chap->host_key_len); in nvme_auth_dhchap_exponential()
624 kfree(chap->host_key); in nvme_auth_dhchap_exponential()
625 chap->host_key = NULL; in nvme_auth_dhchap_exponential()
661 kfree_sensitive(chap->host_key); in __nvme_auth_reset()
662 chap->host_key = NULL; in __nvme_auth_reset()
687 kfree_sensitive(chap->host_key); in __nvme_auth_free()
853 if (!ctrl->host_key) { in nvme_auth_negotiate()
980 nvme_auth_generate_key(ctrl->opts->dhchap_secret, &ctrl->host_key); in nvme_auth_init_ctrl()
1008 if (ctrl->host_key) { in nvme_auth_free()
1009 nvme_auth_free_key(ctrl->host_key); in nvme_auth_free()
1010 ctrl->host_key = NULL; in nvme_auth_free()