Lines Matching refs:host_key
177 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
178 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
180 if (IS_ERR(ctrl->host_key)) { in nvmet_setup_auth()
181 ret = PTR_ERR(ctrl->host_key); in nvmet_setup_auth()
182 ctrl->host_key = NULL; in nvmet_setup_auth()
186 ctrl->host_key->hash > 0 ? in nvmet_setup_auth()
187 nvme_auth_hmac_name(ctrl->host_key->hash) : "none", in nvmet_setup_auth()
188 (int)ctrl->host_key->len, ctrl->host_key->key); in nvmet_setup_auth()
210 if (ctrl->host_key) { in nvmet_setup_auth()
211 nvme_auth_free_key(ctrl->host_key); in nvmet_setup_auth()
212 ctrl->host_key = NULL; in nvmet_setup_auth()
245 if (ctrl->host_key) { in nvmet_destroy_auth()
246 nvme_auth_free_key(ctrl->host_key); in nvmet_destroy_auth()
247 ctrl->host_key = NULL; in nvmet_destroy_auth()
257 if (req->sq->ctrl->host_key && in nvmet_check_auth_status()
294 host_response = nvme_auth_transform_key(ctrl->host_key, ctrl->hostnqn); in nvmet_auth_host_hash()
301 ctrl->host_key->len); in nvmet_auth_host_hash()