Lines Matching refs:alg
138 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg() argument
140 return container_of(alg, struct kpp_alg, base); in __crypto_kpp_alg()
294 static inline struct crypto_istat_kpp *kpp_get_stat(struct kpp_alg *alg) in kpp_get_stat() argument
297 return &alg->stat; in kpp_get_stat()
303 static inline int crypto_kpp_errstat(struct kpp_alg *alg, int err) in crypto_kpp_errstat() argument
309 atomic64_inc(&kpp_get_stat(alg)->err_cnt); in crypto_kpp_errstat()
332 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_set_secret() local
335 atomic64_inc(&kpp_get_stat(alg)->setsecret_cnt); in crypto_kpp_set_secret()
337 return crypto_kpp_errstat(alg, alg->set_secret(tfm, buffer, len)); in crypto_kpp_set_secret()
356 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_generate_public_key() local
359 atomic64_inc(&kpp_get_stat(alg)->generate_public_key_cnt); in crypto_kpp_generate_public_key()
361 return crypto_kpp_errstat(alg, alg->generate_public_key(req)); in crypto_kpp_generate_public_key()
377 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_compute_shared_secret() local
380 atomic64_inc(&kpp_get_stat(alg)->compute_shared_secret_cnt); in crypto_kpp_compute_shared_secret()
382 return crypto_kpp_errstat(alg, alg->compute_shared_secret(req)); in crypto_kpp_compute_shared_secret()
397 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_maxsize() local
399 return alg->max_size(tfm); in crypto_kpp_maxsize()