Home
last modified time | relevance | path

Searched refs:dhgroup_id (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/nvme/target/
Dauth.c59 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id) in nvmet_setup_dhgroup() argument
65 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup()
68 if (ctrl->dh_gid == dhgroup_id) { in nvmet_setup_dhgroup()
70 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup()
78 if (dhgroup_id == NVME_AUTH_DHGROUP_NULL) in nvmet_setup_dhgroup()
81 dhgroup_kpp = nvme_auth_dhgroup_kpp(dhgroup_id); in nvmet_setup_dhgroup()
84 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup()
90 __func__, ctrl->cntlid, dhgroup_id, in nvmet_setup_dhgroup()
96 ctrl->dh_gid = dhgroup_id; in nvmet_setup_dhgroup()
Dconfigfs.c1933 int dhgroup_id; in nvmet_host_dhchap_dhgroup_store() local
1935 dhgroup_id = nvme_auth_dhgroup_id(page); in nvmet_host_dhchap_dhgroup_store()
1936 if (dhgroup_id == NVME_AUTH_DHGROUP_INVALID) in nvmet_host_dhchap_dhgroup_store()
1938 if (dhgroup_id != NVME_AUTH_DHGROUP_NULL) { in nvmet_host_dhchap_dhgroup_store()
1939 const char *kpp = nvme_auth_dhgroup_kpp(dhgroup_id); in nvmet_host_dhchap_dhgroup_store()
1944 host->dhchap_dhgroup_id = dhgroup_id; in nvmet_host_dhchap_dhgroup_store()
Dnvmet.h706 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id);
/linux-6.6.21/drivers/nvme/common/
Dauth.c56 const char *nvme_auth_dhgroup_name(u8 dhgroup_id) in nvme_auth_dhgroup_name() argument
58 if (dhgroup_id >= ARRAY_SIZE(dhgroup_map)) in nvme_auth_dhgroup_name()
60 return dhgroup_map[dhgroup_id].name; in nvme_auth_dhgroup_name()
64 const char *nvme_auth_dhgroup_kpp(u8 dhgroup_id) in nvme_auth_dhgroup_kpp() argument
66 if (dhgroup_id >= ARRAY_SIZE(dhgroup_map)) in nvme_auth_dhgroup_kpp()
68 return dhgroup_map[dhgroup_id].kpp; in nvme_auth_dhgroup_kpp()
/linux-6.6.21/include/linux/
Dnvme-auth.h18 const char *nvme_auth_dhgroup_name(u8 dhgroup_id);
19 const char *nvme_auth_dhgroup_kpp(u8 dhgroup_id);
/linux-6.6.21/drivers/nvme/host/
Dauth.c33 u8 dhgroup_id; member
227 if (chap->dhgroup_id == data->dhgid && in nvme_auth_process_dhchap_challenge()
270 chap->dhgroup_id = data->dhgid; in nvme_auth_process_dhchap_challenge()
365 nvme_auth_dhgroup_name(chap->dhgroup_id)); in nvme_auth_process_dhchap_success1()
603 ret = nvme_auth_gen_privkey(chap->dh_tfm, chap->dhgroup_id); in nvme_auth_dhchap_exponential()