Lines Matching refs:tfm
77 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in atmel_ecdh_set_secret() argument
80 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_set_secret()
139 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_generate_public_key() local
140 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_generate_public_key()
167 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_compute_shared_secret() local
168 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_compute_shared_secret()
247 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) in atmel_ecdh_init_tfm() argument
249 const char *alg = kpp_alg_name(tfm); in atmel_ecdh_init_tfm()
251 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_init_tfm()
267 crypto_kpp_set_flags(fallback, crypto_kpp_get_flags(tfm)); in atmel_ecdh_init_tfm()
273 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) in atmel_ecdh_exit_tfm() argument
275 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_exit_tfm()
282 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) in atmel_ecdh_max_size() argument
284 struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm); in atmel_ecdh_max_size()