Searched refs:dhgroup_id (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/nvme/target/ |
H A D | auth.c | 73 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id) in nvmet_setup_dhgroup() argument 79 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup() 82 if (ctrl->dh_gid == dhgroup_id) { in nvmet_setup_dhgroup() 84 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup() 92 if (dhgroup_id == NVME_AUTH_DHGROUP_NULL) in nvmet_setup_dhgroup() 95 dhgroup_kpp = nvme_auth_dhgroup_kpp(dhgroup_id); in nvmet_setup_dhgroup() 98 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup() 104 __func__, ctrl->cntlid, dhgroup_id, in nvmet_setup_dhgroup() 110 ctrl->dh_gid = dhgroup_id; in nvmet_setup_dhgroup()
|
H A D | configfs.c | 2156 int dhgroup_id; in nvmet_host_dhchap_dhgroup_store() local 2158 dhgroup_id = nvme_auth_dhgroup_id(page); in nvmet_host_dhchap_dhgroup_store() 2159 if (dhgroup_id == NVME_AUTH_DHGROUP_INVALID) in nvmet_host_dhchap_dhgroup_store() 2161 if (dhgroup_id != NVME_AUTH_DHGROUP_NULL) { in nvmet_host_dhchap_dhgroup_store() 2162 const char *kpp = nvme_auth_dhgroup_kpp(dhgroup_id); in nvmet_host_dhchap_dhgroup_store() 2167 host->dhchap_dhgroup_id = dhgroup_id; in nvmet_host_dhchap_dhgroup_store()
|
H A D | nvmet.h | 785 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id);
|
/linux/drivers/nvme/common/ |
H A D | auth.c | 56 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/include/linux/ |
H A D | nvme-auth.h | 18 const char *nvme_auth_dhgroup_name(u8 dhgroup_id); 19 const char *nvme_auth_dhgroup_kpp(u8 dhgroup_id);
|
/linux/drivers/nvme/host/ |
H A D | auth.c | 35 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() 362 nvme_auth_dhgroup_name(chap->dhgroup_id)); in nvme_auth_process_dhchap_success1() 600 ret = nvme_auth_gen_privkey(chap->dh_tfm, chap->dhgroup_id); in nvme_auth_dhchap_exponential()
|