Lines Matching refs:tfm_ctx
315 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_init_tfm() local
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()
326 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_exit_tfm() local
328 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm()
458 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_set_secret() local
496 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size); in dh_safe_prime_set_secret()
513 struct dh_safe_prime_tfm_ctx *tfm_ctx = in dh_safe_prime_prepare_dh_req() local
517 kpp_request_set_tfm(dh_req, tfm_ctx->dh_tfm); in dh_safe_prime_prepare_dh_req()
543 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_max_size() local
545 return crypto_kpp_maxsize(tfm_ctx->dh_tfm); in dh_safe_prime_max_size()