Lines Matching defs:tfm
78 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
136 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
138 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
141 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm)
143 return crypto_tfm_ctx_dma(crypto_ahash_tfm(tfm));
158 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm,
161 tfm->statesize = size;
164 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm,
167 tfm->reqsize = reqsize;
238 static inline void *crypto_shash_ctx(struct crypto_shash *tfm)
240 return crypto_tfm_ctx(&tfm->base);
272 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
274 return crypto_tfm_ctx_aligned(&tfm->base);
277 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
279 return container_of(tfm, struct crypto_shash, base);