Lines Matching full:challenge

320 		dev_dbg(ctrl->device, "%s: qid %d ctrl challenge %*ph\n",  in nvme_auth_set_dhchap_reply_data()
422 u8 buf[4], *challenge = chap->c1; in nvme_auth_dhchap_setup_host_response() local
450 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_host_response()
451 if (!challenge) { in nvme_auth_dhchap_setup_host_response()
458 chap->c1, challenge, in nvme_auth_dhchap_setup_host_response()
468 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response()
499 if (challenge != chap->c1) in nvme_auth_dhchap_setup_host_response()
500 kfree(challenge); in nvme_auth_dhchap_setup_host_response()
509 u8 buf[4], *challenge = chap->c2; in nvme_auth_dhchap_setup_ctrl_response() local
528 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_ctrl_response()
529 if (!challenge) { in nvme_auth_dhchap_setup_ctrl_response()
536 chap->c2, challenge, in nvme_auth_dhchap_setup_ctrl_response()
543 dev_dbg(ctrl->device, "%s: qid %d challenge %*ph\n", in nvme_auth_dhchap_setup_ctrl_response()
544 __func__, chap->qid, (int)chap->hash_len, challenge); in nvme_auth_dhchap_setup_ctrl_response()
553 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response()
584 if (challenge != chap->c2) in nvme_auth_dhchap_setup_ctrl_response()
585 kfree(challenge); in nvme_auth_dhchap_setup_ctrl_response()
715 /* DH-HMAC-CHAP Step 2: receive challenge */ in nvme_queue_auth_work()
716 dev_dbg(ctrl->device, "%s: qid %d receive challenge\n", in nvme_queue_auth_work()
724 "qid %d failed to receive challenge, %s %d\n", in nvme_queue_auth_work()
739 /* Invalid challenge parameters */ in nvme_queue_auth_work()