Lines Matching refs:host_key
194 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()
265 if (ctrl->host_key) { in nvmet_destroy_auth()
266 nvme_auth_free_key(ctrl->host_key); in nvmet_destroy_auth()
267 ctrl->host_key = NULL; in nvmet_destroy_auth()
283 if (req->sq->ctrl->host_key) { in nvmet_check_auth_status()
324 transformed_key = nvme_auth_transform_key(ctrl->host_key, in nvmet_auth_host_hash()