Lines Matching refs:host_key
188 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
189 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
191 if (IS_ERR(ctrl->host_key)) { in nvmet_setup_auth()
193 ctrl->host_key = NULL; in nvmet_setup_auth()
197 ctrl->host_key->hash > 0 ? in nvmet_setup_auth()
198 nvme_auth_hmac_name(ctrl->host_key->hash) : "none", in nvmet_setup_auth()
199 (int)ctrl->host_key->len, ctrl->host_key->key); in nvmet_setup_auth()
221 if (ctrl->host_key) { in nvmet_setup_auth()
222 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
223 ctrl->host_key = NULL; in nvmet_setup_auth()
256 if (ctrl->host_key) { in nvmet_destroy_auth()
257 nvme_auth_free_key(ctrl->host_key); in nvmet_destroy_auth()
258 ctrl->host_key = NULL; in nvmet_destroy_auth()
268 if (req->sq->ctrl->host_key && in nvmet_check_auth_status()
306 transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvmet_auth_host_hash()