Lines Matching full:challenge
328 dev_dbg(ctrl->device, "%s: qid %d ctrl challenge %*ph\n", in nvme_auth_set_dhchap_reply_data()
433 u8 buf[4], *challenge = chap->c1; in nvme_auth_dhchap_setup_host_response() local
461 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_host_response()
462 if (!challenge) { in nvme_auth_dhchap_setup_host_response()
469 chap->c1, challenge, in nvme_auth_dhchap_setup_host_response()
479 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response()
510 if (challenge != chap->c1) in nvme_auth_dhchap_setup_host_response()
511 kfree(challenge); in nvme_auth_dhchap_setup_host_response()
520 u8 buf[4], *challenge = chap->c2; in nvme_auth_dhchap_setup_ctrl_response() local
539 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_ctrl_response()
540 if (!challenge) { in nvme_auth_dhchap_setup_ctrl_response()
547 chap->c2, challenge, in nvme_auth_dhchap_setup_ctrl_response()
554 dev_dbg(ctrl->device, "%s: qid %d challenge %*ph\n", in nvme_auth_dhchap_setup_ctrl_response()
555 __func__, chap->qid, (int)chap->hash_len, challenge); in nvme_auth_dhchap_setup_ctrl_response()
564 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response()
595 if (challenge != chap->c2) in nvme_auth_dhchap_setup_ctrl_response()
596 kfree(challenge); in nvme_auth_dhchap_setup_ctrl_response()
812 /* DH-HMAC-CHAP Step 2: receive challenge */ in nvme_queue_auth_work()
813 dev_dbg(ctrl->device, "%s: qid %d receive challenge\n", in nvme_queue_auth_work()
821 "qid %d failed to receive challenge, %s %d\n", in nvme_queue_auth_work()
836 /* Invalid challenge parameters */ in nvme_queue_auth_work()