Lines Matching refs:tfm

42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm)  in dh_get_ctx()  argument
44 return kpp_tfm_ctx(tfm); in dh_get_ctx()
71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret() argument
74 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_set_secret()
168 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local
169 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_compute_value()
250 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size() argument
252 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_max_size()
257 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm() argument
259 struct dh_ctx *ctx = dh_get_ctx(tfm); in dh_exit_tfm()
306 struct crypto_kpp *tfm) in dh_safe_prime_instance_ctx() argument
308 return kpp_instance_ctx(kpp_alg_instance(tfm)); in dh_safe_prime_instance_ctx()
311 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm) in dh_safe_prime_init_tfm() argument
314 dh_safe_prime_instance_ctx(tfm); in dh_safe_prime_init_tfm()
315 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_init_tfm()
321 kpp_set_reqsize(tfm, sizeof(struct kpp_request) + in dh_safe_prime_init_tfm()
327 static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) in dh_safe_prime_exit_tfm() argument
329 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_exit_tfm()
456 static int dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, in dh_safe_prime_set_secret() argument
460 dh_safe_prime_instance_ctx(tfm); in dh_safe_prime_set_secret()
461 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_set_secret()
543 static unsigned int dh_safe_prime_max_size(struct crypto_kpp *tfm) in dh_safe_prime_max_size() argument
545 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_max_size()