Lines Matching refs:tfm

95 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
117 static inline bool crypto_hash_no_export_core(struct crypto_ahash *tfm) in crypto_hash_no_export_core() argument
119 return crypto_hash_alg_common(tfm)->base.cra_flags & in crypto_hash_no_export_core()
165 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx() argument
167 return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in crypto_ahash_ctx()
170 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm) in crypto_ahash_ctx_dma() argument
172 return crypto_tfm_ctx_dma(crypto_ahash_tfm(tfm)); in crypto_ahash_ctx_dma()
187 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm, in crypto_ahash_set_statesize() argument
190 tfm->statesize = size; in crypto_ahash_set_statesize()
193 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize() argument
196 tfm->reqsize = reqsize; in crypto_ahash_set_reqsize()
199 static inline bool crypto_ahash_tested(struct crypto_ahash *tfm) in crypto_ahash_tested() argument
201 struct crypto_tfm *tfm_base = crypto_ahash_tfm(tfm); in crypto_ahash_tested()
274 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx() argument
276 return crypto_tfm_ctx(&tfm->base); in crypto_shash_ctx()
308 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast() argument
310 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
318 static inline bool crypto_ahash_req_virt(struct crypto_ahash *tfm) in crypto_ahash_req_virt() argument
320 return crypto_tfm_req_virt(&tfm->base); in crypto_ahash_req_virt()
323 static inline struct crypto_ahash *crypto_ahash_fb(struct crypto_ahash *tfm) in crypto_ahash_fb() argument
325 return __crypto_ahash_cast(crypto_ahash_tfm(tfm)->fb); in crypto_ahash_fb()
331 struct crypto_ahash *tfm = crypto_ahash_reqtfm(old); in ahash_fbreq_on_stack_init() local
335 crypto_ahash_tfm(crypto_ahash_fb(tfm))); in ahash_fbreq_on_stack_init()
347 static inline unsigned int crypto_shash_coresize(struct crypto_shash *tfm) in crypto_shash_coresize() argument
349 return crypto_shash_statesize(tfm) - crypto_shash_blocksize(tfm) - 1; in crypto_shash_coresize()