Searched refs:dh_tfm (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/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() 361 if (ctrl->dh_tfm) in nvmet_auth_challenge() 381 if (ctrl->dh_tfm) { in nvmet_auth_challenge()
|
D | nvmet.h | 229 struct crypto_kpp *dh_tfm; member
|
/linux-6.6.21/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.6.21/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() 322 crypto_kpp_reqsize(tfm_ctx->dh_tfm)); in dh_safe_prime_init_tfm() 331 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm() 499 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size); in dh_safe_prime_set_secret() 519 kpp_request_set_tfm(dh_req, tfm_ctx->dh_tfm); in dh_safe_prime_prepare_dh_req() 547 return crypto_kpp_maxsize(tfm_ctx->dh_tfm); in dh_safe_prime_max_size()
|
/linux-6.6.21/drivers/nvme/host/ |
D | auth.c | 25 struct crypto_kpp *dh_tfm; member 228 (data->dhgid == NVME_AUTH_DHGROUP_NULL || chap->dh_tfm)) { in nvme_auth_process_dhchap_challenge() 236 if (chap->dh_tfm) { in nvme_auth_process_dhchap_challenge() 237 crypto_free_kpp(chap->dh_tfm); in nvme_auth_process_dhchap_challenge() 238 chap->dh_tfm = NULL; in nvme_auth_process_dhchap_challenge() 250 chap->dh_tfm = crypto_alloc_kpp(kpp_name, 0, 0); in nvme_auth_process_dhchap_challenge() 251 if (IS_ERR(chap->dh_tfm)) { in nvme_auth_process_dhchap_challenge() 252 int ret = PTR_ERR(chap->dh_tfm); in nvme_auth_process_dhchap_challenge() 258 chap->dh_tfm = NULL; in nvme_auth_process_dhchap_challenge() 452 if (chap->dh_tfm) { in nvme_auth_dhchap_setup_host_response() [all …]
|
/linux-6.6.21/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()
|