13 #ifndef _CRYPTO_INTERNAL_HASH_H
14 #define _CRYPTO_INTERNAL_HASH_H
109 static inline void *crypto_ahash_ctx(
struct crypto_ahash *tfm)
111 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
120 static inline void crypto_ahash_set_reqsize(
struct crypto_ahash *tfm,
121 unsigned int reqsize)
138 static inline void *ahash_instance_ctx(
struct ahash_instance *inst)
140 return crypto_instance_ctx(ahash_crypto_instance(inst));
143 static inline unsigned int ahash_instance_headroom(
void)
172 static inline int ahash_tfm_in_queue(
struct crypto_queue *queue,
178 static inline void *crypto_shash_ctx(
struct crypto_shash *tfm)
180 return crypto_tfm_ctx(&tfm->
base);
196 static inline void *shash_instance_ctx(
struct shash_instance *inst)
198 return crypto_instance_ctx(shash_crypto_instance(inst));
205 sizeof(
struct shash_alg) -
sizeof(*alg));
214 static inline void *crypto_shash_ctx_aligned(
struct crypto_shash *tfm)
216 return crypto_tfm_ctx_aligned(&tfm->
base);