Lines Matching refs:challenge
434 u8 buf[4], *challenge = chap->c1; in nvme_auth_dhchap_setup_host_response() local
462 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_host_response()
463 if (!challenge) { in nvme_auth_dhchap_setup_host_response()
470 chap->c1, challenge, in nvme_auth_dhchap_setup_host_response()
480 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_host_response()
511 if (challenge != chap->c1) in nvme_auth_dhchap_setup_host_response()
512 kfree(challenge); in nvme_auth_dhchap_setup_host_response()
521 u8 buf[4], *challenge = chap->c2; in nvme_auth_dhchap_setup_ctrl_response() local
540 challenge = kmalloc(chap->hash_len, GFP_KERNEL); in nvme_auth_dhchap_setup_ctrl_response()
541 if (!challenge) { in nvme_auth_dhchap_setup_ctrl_response()
548 chap->c2, challenge, in nvme_auth_dhchap_setup_ctrl_response()
556 __func__, chap->qid, (int)chap->hash_len, challenge); in nvme_auth_dhchap_setup_ctrl_response()
565 ret = crypto_shash_update(shash, challenge, chap->hash_len); in nvme_auth_dhchap_setup_ctrl_response()
596 if (challenge != chap->c2) in nvme_auth_dhchap_setup_ctrl_response()
597 kfree(challenge); in nvme_auth_dhchap_setup_ctrl_response()