Home
last modified time | relevance | path

Searched refs:chap (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/nvme/host/
Dauth.c121 struct nvme_dhchap_queue_context *chap) in nvme_auth_set_dhchap_negotiate_data() argument
123 struct nvmf_auth_dhchap_negotiate_data *data = chap->buf; in nvme_auth_set_dhchap_negotiate_data()
127 chap->status = NVME_AUTH_DHCHAP_FAILURE_INCORRECT_PAYLOAD; in nvme_auth_set_dhchap_negotiate_data()
130 memset((u8 *)chap->buf, 0, size); in nvme_auth_set_dhchap_negotiate_data()
133 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_negotiate_data()
153 struct nvme_dhchap_queue_context *chap) in nvme_auth_process_dhchap_challenge() argument
155 struct nvmf_auth_dhchap_challenge_data *data = chap->buf; in nvme_auth_process_dhchap_challenge()
162 chap->status = NVME_AUTH_DHCHAP_FAILURE_INCORRECT_PAYLOAD; in nvme_auth_process_dhchap_challenge()
170 chap->qid, data->hashid); in nvme_auth_process_dhchap_challenge()
171 chap->status = NVME_AUTH_DHCHAP_FAILURE_HASH_UNUSABLE; in nvme_auth_process_dhchap_challenge()
[all …]
/Linux-v6.6/drivers/target/iscsi/
Discsi_target_auth.c45 struct iscsi_chap *chap = conn->auth_protocol; in chap_gen_challenge() local
47 challenge_asciihex = kzalloc(chap->challenge_len * 2 + 1, GFP_KERNEL); in chap_gen_challenge()
51 memset(chap->challenge, 0, MAX_CHAP_CHALLENGE_LEN); in chap_gen_challenge()
53 ret = get_random_bytes_wait(chap->challenge, chap->challenge_len); in chap_gen_challenge()
57 bin2hex(challenge_asciihex, chap->challenge, in chap_gen_challenge()
58 chap->challenge_len); in chap_gen_challenge()
145 struct iscsi_chap *chap; in chap_server_open() local
158 chap = conn->auth_protocol; in chap_server_open()
162 chap->digest_size = MD5_SIGNATURE_SIZE; in chap_server_open()
165 chap->digest_size = SHA1_SIGNATURE_SIZE; in chap_server_open()
[all …]
/Linux-v6.6/drivers/scsi/
Discsi_boot_sysfs.c81 iscsi_boot_rd_attr(tgt_chap, chap-type, ISCSI_BOOT_TGT_CHAP_TYPE);
84 iscsi_boot_rd_attr(tgt_chap_name, chap-name, ISCSI_BOOT_TGT_CHAP_NAME);
85 iscsi_boot_rd_attr(tgt_chap_secret, chap-secret, ISCSI_BOOT_TGT_CHAP_SECRET);
86 iscsi_boot_rd_attr(tgt_chap_rev_name, rev-chap-name,
88 iscsi_boot_rd_attr(tgt_chap_rev_secret, rev-chap-name-secret,
/Linux-v6.6/drivers/scsi/qla4xxx/
Dql4_os.c5836 boot_conn->chap.target_chap_name_length, in qla4xxx_show_boot_tgt_info()
5837 (char *)&boot_conn->chap.target_chap_name); in qla4xxx_show_boot_tgt_info()
5841 boot_conn->chap.target_secret_length, in qla4xxx_show_boot_tgt_info()
5842 (char *)&boot_conn->chap.target_secret); in qla4xxx_show_boot_tgt_info()
5846 boot_conn->chap.intr_chap_name_length, in qla4xxx_show_boot_tgt_info()
5847 (char *)&boot_conn->chap.intr_chap_name); in qla4xxx_show_boot_tgt_info()
5851 boot_conn->chap.intr_secret_length, in qla4xxx_show_boot_tgt_info()
5852 (char *)&boot_conn->chap.intr_secret); in qla4xxx_show_boot_tgt_info()
6129 ret = qla4xxx_get_chap(ha, (char *)&boot_conn->chap. in qla4xxx_get_boot_target()
6131 (char *)&boot_conn->chap.target_secret, in qla4xxx_get_boot_target()
[all …]
Dql4_def.h541 struct ql4_chap_format chap; member
/Linux-v6.6/drivers/scsi/be2iscsi/
Dbe_main.c4955 boot_conn->negotiated_login_options.auth_data.chap. in beiscsi_show_boot_tgt_info()
4958 auth_data.chap.target_chap_name); in beiscsi_show_boot_tgt_info()
4962 boot_conn->negotiated_login_options.auth_data.chap. in beiscsi_show_boot_tgt_info()
4965 auth_data.chap.target_secret); in beiscsi_show_boot_tgt_info()
4969 boot_conn->negotiated_login_options.auth_data.chap. in beiscsi_show_boot_tgt_info()
4972 auth_data.chap.intr_chap_name); in beiscsi_show_boot_tgt_info()
4976 boot_conn->negotiated_login_options.auth_data.chap. in beiscsi_show_boot_tgt_info()
4979 auth_data.chap.intr_secret); in beiscsi_show_boot_tgt_info()
Dbe_cmds.h348 struct mgmt_chap_format chap; member