Lines Matching refs:dh_tfm
21 struct crypto_kpp *dh_tfm; member
231 (data->dhgid == NVME_AUTH_DHGROUP_NULL || chap->dh_tfm)) { in nvme_auth_process_dhchap_challenge()
239 if (chap->dh_tfm) { in nvme_auth_process_dhchap_challenge()
240 crypto_free_kpp(chap->dh_tfm); in nvme_auth_process_dhchap_challenge()
241 chap->dh_tfm = NULL; in nvme_auth_process_dhchap_challenge()
253 chap->dh_tfm = crypto_alloc_kpp(kpp_name, 0, 0); in nvme_auth_process_dhchap_challenge()
254 if (IS_ERR(chap->dh_tfm)) { in nvme_auth_process_dhchap_challenge()
255 int ret = PTR_ERR(chap->dh_tfm); in nvme_auth_process_dhchap_challenge()
261 chap->dh_tfm = NULL; in nvme_auth_process_dhchap_challenge()
455 if (chap->dh_tfm) { in nvme_auth_dhchap_setup_host_response()
532 if (chap->dh_tfm) { in nvme_auth_dhchap_setup_ctrl_response()
605 ret = nvme_auth_gen_privkey(chap->dh_tfm, chap->dhgroup_id); in nvme_auth_dhchap_exponential()
611 chap->host_key_len = crypto_kpp_maxsize(chap->dh_tfm); in nvme_auth_dhchap_exponential()
619 ret = nvme_auth_gen_pubkey(chap->dh_tfm, in nvme_auth_dhchap_exponential()
640 ret = nvme_auth_gen_shared_secret(chap->dh_tfm, in nvme_auth_dhchap_exponential()
684 if (chap->dh_tfm) in __nvme_auth_free()
685 crypto_free_kpp(chap->dh_tfm); in __nvme_auth_free()