Lines Matching full:challenge
320 dev_dbg(ctrl->device, "%s: qid %d ctrl challenge %*ph\n", in nvme_auth_set_dhchap_reply_data()
425 u8 buf[4], *challenge = chap->c1; in nvme_auth_dhchap_setup_host_response() local
453 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_host_response()
454 if (!challenge) { in nvme_auth_dhchap_setup_host_response()
461 chap->c1, challenge, in nvme_auth_dhchap_setup_host_response()
471 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response()
502 if (challenge != chap->c1) in nvme_auth_dhchap_setup_host_response()
503 kfree(challenge); in nvme_auth_dhchap_setup_host_response()
512 u8 buf[4], *challenge = chap->c2; in nvme_auth_dhchap_setup_ctrl_response() local
531 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_ctrl_response()
532 if (!challenge) { in nvme_auth_dhchap_setup_ctrl_response()
539 chap->c2, challenge, in nvme_auth_dhchap_setup_ctrl_response()
546 dev_dbg(ctrl->device, "%s: qid %d challenge %*ph\n", in nvme_auth_dhchap_setup_ctrl_response()
547 __func__, chap->qid, (int)chap->hash_len, challenge); in nvme_auth_dhchap_setup_ctrl_response()
556 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response()
587 if (challenge != chap->c2) in nvme_auth_dhchap_setup_ctrl_response()
588 kfree(challenge); in nvme_auth_dhchap_setup_ctrl_response()
717 /* DH-HMAC-CHAP Step 2: receive challenge */ in nvme_queue_auth_work()
718 dev_dbg(ctrl->device, "%s: qid %d receive challenge\n", in nvme_queue_auth_work()
726 "qid %d failed to receive challenge, %s %d\n", in nvme_queue_auth_work()
741 /* Invalid challenge parameters */ in nvme_queue_auth_work()