Lines Matching refs:desc
172 int (*init)(struct shash_desc *desc);
173 int (*update)(struct shash_desc *desc, const u8 *data,
175 int (*final)(struct shash_desc *desc, u8 *out);
176 int (*finup)(struct shash_desc *desc, const u8 *data,
178 int (*digest)(struct shash_desc *desc, const u8 *data,
180 int (*export)(struct shash_desc *desc, void *out);
181 int (*import)(struct shash_desc *desc, const void *in);
744 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx() argument
746 return desc->__ctx; in shash_desc_ctx()
778 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
792 static inline int crypto_shash_export(struct shash_desc *desc, void *out) in crypto_shash_export() argument
794 return crypto_shash_alg(desc->tfm)->export(desc, out); in crypto_shash_export()
808 static inline int crypto_shash_import(struct shash_desc *desc, const void *in) in crypto_shash_import() argument
810 return crypto_shash_alg(desc->tfm)->import(desc, in); in crypto_shash_import()
824 static inline int crypto_shash_init(struct shash_desc *desc) in crypto_shash_init() argument
826 return crypto_shash_alg(desc->tfm)->init(desc); in crypto_shash_init()
840 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
856 int crypto_shash_final(struct shash_desc *desc, u8 *out);
872 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,