Lines Matching defs:desc
62 int (*init)(struct shash_desc *desc);
63 int (*update)(struct shash_desc *desc, const u8 *data,
65 int (*final)(struct shash_desc *desc, u8 *out);
66 int (*finup)(struct shash_desc *desc, const u8 *data,
68 int (*digest)(struct shash_desc *desc, const u8 *data,
70 int (*export)(struct shash_desc *desc, void *out);
71 int (*import)(struct shash_desc *desc, const void *in);
322 static inline void *shash_desc_ctx(struct shash_desc *desc)
324 return desc->__ctx;
329 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
332 static inline int crypto_shash_export(struct shash_desc *desc, void *out)
334 return crypto_shash_alg(desc->tfm)->export(desc, out);
337 static inline int crypto_shash_import(struct shash_desc *desc, const void *in)
339 return crypto_shash_alg(desc->tfm)->import(desc, in);
342 static inline int crypto_shash_init(struct shash_desc *desc)
344 return crypto_shash_alg(desc->tfm)->init(desc);
347 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
349 int crypto_shash_final(struct shash_desc *desc, u8 *out);
350 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,