Lines Matching defs:alg
366 struct crypto_alg *alg)
368 return container_of(alg, struct hash_alg_common, base);
570 struct hash_alg_common *alg)
573 return &alg->stat;
579 static inline int crypto_hash_errstat(struct hash_alg_common *alg, int err)
585 atomic64_inc(&hash_get_stat(alg)->err_cnt);
604 struct hash_alg_common *alg = crypto_hash_alg_common(tfm);
607 atomic64_add(req->nbytes, &hash_get_stat(alg)->hash_tlen);
609 return crypto_hash_errstat(alg, tfm->update(req));
821 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg)
823 return container_of(alg, struct shash_alg, base);
876 * sizeof(struct shash_desc) + crypto_shash_descsize(alg)