Home
last modified time | relevance | path

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

/linux-6.1.9/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.c1810 int dhgroup_id; in nvmet_host_dhchap_dhgroup_store() local
1812 dhgroup_id = nvme_auth_dhgroup_id(page); in nvmet_host_dhchap_dhgroup_store()
1813 if (dhgroup_id == NVME_AUTH_DHGROUP_INVALID) in nvmet_host_dhchap_dhgroup_store()
1815 if (dhgroup_id != NVME_AUTH_DHGROUP_NULL) { in nvmet_host_dhchap_dhgroup_store()
1816 const char *kpp = nvme_auth_dhgroup_kpp(dhgroup_id); in nvmet_host_dhchap_dhgroup_store()
1821 host->dhchap_dhgroup_id = dhgroup_id; in nvmet_host_dhchap_dhgroup_store()
Dnvmet.h711 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id);
/linux-6.1.9/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.1.9/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.1.9/drivers/nvme/host/
Dauth.c32 u8 dhgroup_id; member
230 if (chap->dhgroup_id == data->dhgid && in nvme_auth_process_dhchap_challenge()
273 chap->dhgroup_id = data->dhgid; in nvme_auth_process_dhchap_challenge()
368 nvme_auth_dhgroup_name(chap->dhgroup_id)); in nvme_auth_process_dhchap_success1()
605 ret = nvme_auth_gen_privkey(chap->dh_tfm, chap->dhgroup_id); in nvme_auth_dhchap_exponential()