Lines Matching refs:ctrl_key
37 u8 *ctrl_key; member
226 kfree_sensitive(chap->ctrl_key); in nvme_auth_process_dhchap_challenge()
227 chap->ctrl_key = NULL; in nvme_auth_process_dhchap_challenge()
279 chap->ctrl_key = kmalloc(dhvlen, GFP_KERNEL); in nvme_auth_process_dhchap_challenge()
280 if (!chap->ctrl_key) { in nvme_auth_process_dhchap_challenge()
285 memcpy(chap->ctrl_key, data->cval + chap->hash_len, in nvme_auth_process_dhchap_challenge()
288 (int)chap->ctrl_key_len, chap->ctrl_key); in nvme_auth_process_dhchap_challenge()
317 if (ctrl->ctrl_key) { in nvme_auth_set_dhchap_reply_data()
347 if (ctrl->ctrl_key) in nvme_auth_process_dhchap_success1()
518 ctrl_response = nvme_auth_transform_key(ctrl->ctrl_key, in nvme_auth_dhchap_setup_ctrl_response()
525 ctrl_response, ctrl->ctrl_key->len); in nvme_auth_dhchap_setup_ctrl_response()
641 chap->ctrl_key, chap->ctrl_key_len, in nvme_auth_dhchap_exponential()
664 kfree_sensitive(chap->ctrl_key); in nvme_auth_reset_dhchap()
665 chap->ctrl_key = NULL; in nvme_auth_reset_dhchap()
686 kfree_sensitive(chap->ctrl_key); in nvme_auth_free_dhchap()
804 if (ctrl->ctrl_key) { in nvme_queue_auth_work()
822 if (ctrl->ctrl_key) { in nvme_queue_auth_work()
860 if (ctrl->opts->dhchap_ctrl_secret && !ctrl->ctrl_key) { in nvme_auth_negotiate()
975 &ctrl->ctrl_key); in nvme_auth_init_ctrl()
1011 if (ctrl->ctrl_key) { in nvme_auth_free()
1012 nvme_auth_free_key(ctrl->ctrl_key); in nvme_auth_free()
1013 ctrl->ctrl_key = NULL; in nvme_auth_free()