Lines Matching refs:tfm_ctx
316 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_init_tfm() local
318 tfm_ctx->dh_tfm = crypto_spawn_kpp(&inst_ctx->dh_spawn); in dh_safe_prime_init_tfm()
319 if (IS_ERR(tfm_ctx->dh_tfm)) in dh_safe_prime_init_tfm()
320 return PTR_ERR(tfm_ctx->dh_tfm); in dh_safe_prime_init_tfm()
323 crypto_kpp_reqsize(tfm_ctx->dh_tfm)); in dh_safe_prime_init_tfm()
330 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_exit_tfm() local
332 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm()
462 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_set_secret() local
500 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size); in dh_safe_prime_set_secret()
516 struct dh_safe_prime_tfm_ctx *tfm_ctx = in dh_safe_prime_prepare_dh_req() local
520 kpp_request_set_tfm(dh_req, tfm_ctx->dh_tfm); in dh_safe_prime_prepare_dh_req()
546 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_max_size() local
548 return crypto_kpp_maxsize(tfm_ctx->dh_tfm); in dh_safe_prime_max_size()