Lines Matching refs:shash_desc
150 struct shash_desc { struct
161 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
166 char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \
167 __aligned(__alignof__(struct shash_desc)); \
168 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
199 int (*init)(struct shash_desc *desc);
200 int (*update)(struct shash_desc *desc, const u8 *data,
202 int (*final)(struct shash_desc *desc, u8 *out);
203 int (*finup)(struct shash_desc *desc, const u8 *data,
205 int (*digest)(struct shash_desc *desc, const u8 *data,
207 int (*export)(struct shash_desc *desc, void *out);
208 int (*import)(struct shash_desc *desc, const void *in);
833 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx()
869 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
903 static inline int crypto_shash_export(struct shash_desc *desc, void *out) in crypto_shash_export()
920 static inline int crypto_shash_import(struct shash_desc *desc, const void *in) in crypto_shash_import()
942 static inline int crypto_shash_init(struct shash_desc *desc) in crypto_shash_init()
964 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
981 int crypto_shash_final(struct shash_desc *desc, u8 *out);
998 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
1001 static inline void shash_desc_zero(struct shash_desc *desc) in shash_desc_zero()