Searched refs:dh_tfm (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/nvme/target/ |
D | auth.c | 67 if (ctrl->dh_tfm) { in nvmet_setup_dhgroup() 73 crypto_free_kpp(ctrl->dh_tfm); in nvmet_setup_dhgroup() 74 ctrl->dh_tfm = NULL; in nvmet_setup_dhgroup() 87 ctrl->dh_tfm = crypto_alloc_kpp(dhgroup_kpp, 0, 0); in nvmet_setup_dhgroup() 88 if (IS_ERR(ctrl->dh_tfm)) { in nvmet_setup_dhgroup() 91 PTR_ERR(ctrl->dh_tfm)); in nvmet_setup_dhgroup() 92 ret = PTR_ERR(ctrl->dh_tfm); in nvmet_setup_dhgroup() 93 ctrl->dh_tfm = NULL; in nvmet_setup_dhgroup() 99 ret = nvme_auth_gen_privkey(ctrl->dh_tfm, ctrl->dh_gid); in nvmet_setup_dhgroup() 106 ctrl->dh_keysize = crypto_kpp_maxsize(ctrl->dh_tfm); in nvmet_setup_dhgroup() [all …]
|
D | fabrics-cmd-auth.c | 124 if (!ctrl->dh_tfm) in nvmet_auth_reply() 363 if (ctrl->dh_tfm) in nvmet_auth_challenge() 383 if (ctrl->dh_tfm) { in nvmet_auth_challenge()
|
D | nvmet.h | 228 struct crypto_kpp *dh_tfm; member
|
/linux-6.1.9/include/linux/ |
D | nvme-auth.h | 34 int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid); 35 int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm, 37 int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm,
|
/linux-6.1.9/drivers/nvme/host/ |
D | auth.c | 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() [all …]
|
/linux-6.1.9/crypto/ |
D | dh.c | 294 struct crypto_kpp *dh_tfm; member 317 tfm_ctx->dh_tfm = crypto_spawn_kpp(&inst_ctx->dh_spawn); in dh_safe_prime_init_tfm() 318 if (IS_ERR(tfm_ctx->dh_tfm)) in dh_safe_prime_init_tfm() 319 return PTR_ERR(tfm_ctx->dh_tfm); in dh_safe_prime_init_tfm() 328 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm() 496 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size); in dh_safe_prime_set_secret() 517 kpp_request_set_tfm(dh_req, tfm_ctx->dh_tfm); in dh_safe_prime_prepare_dh_req() 545 return crypto_kpp_maxsize(tfm_ctx->dh_tfm); in dh_safe_prime_max_size()
|
/linux-6.1.9/drivers/nvme/common/ |
D | auth.c | 393 int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid) in nvme_auth_gen_privkey() argument 397 ret = crypto_kpp_set_secret(dh_tfm, NULL, 0); in nvme_auth_gen_privkey() 405 int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm, in nvme_auth_gen_pubkey() argument 413 req = kpp_request_alloc(dh_tfm, GFP_KERNEL); in nvme_auth_gen_pubkey() 430 int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm, in nvme_auth_gen_shared_secret() argument 439 req = kpp_request_alloc(dh_tfm, GFP_KERNEL); in nvme_auth_gen_shared_secret()
|