Lines Matching refs:challenge
428 u8 buf[4], *challenge = chap->c1; in nvme_auth_dhchap_setup_host_response() local
456 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_host_response()
457 if (!challenge) { in nvme_auth_dhchap_setup_host_response()
464 chap->c1, challenge, in nvme_auth_dhchap_setup_host_response()
474 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response()
505 if (challenge != chap->c1) in nvme_auth_dhchap_setup_host_response()
506 kfree(challenge); in nvme_auth_dhchap_setup_host_response()
515 u8 buf[4], *challenge = chap->c2; in nvme_auth_dhchap_setup_ctrl_response() local
533 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_ctrl_response()
534 if (!challenge) { in nvme_auth_dhchap_setup_ctrl_response()
541 chap->c2, challenge, in nvme_auth_dhchap_setup_ctrl_response()
549 __func__, chap->qid, (int)chap->hash_len, challenge); in nvme_auth_dhchap_setup_ctrl_response()
558 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response()
589 if (challenge != chap->c2) in nvme_auth_dhchap_setup_ctrl_response()
590 kfree(challenge); in nvme_auth_dhchap_setup_ctrl_response()