Lines Matching refs:shash_desc
175 struct shash_desc { struct
186 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
189 char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \
190 __aligned(__alignof__(struct shash_desc)); \
191 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
226 int (*init)(struct shash_desc *desc);
227 int (*update)(struct shash_desc *desc, const u8 *data,
229 int (*final)(struct shash_desc *desc, u8 *out);
230 int (*finup)(struct shash_desc *desc, const u8 *data,
232 int (*digest)(struct shash_desc *desc, const u8 *data,
234 int (*export)(struct shash_desc *desc, void *out);
235 int (*import)(struct shash_desc *desc, const void *in);
885 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx()
921 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
955 static inline int crypto_shash_export(struct shash_desc *desc, void *out) in crypto_shash_export()
972 static inline int crypto_shash_import(struct shash_desc *desc, const void *in) in crypto_shash_import()
994 static inline int crypto_shash_init(struct shash_desc *desc) in crypto_shash_init()
1016 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
1033 int crypto_shash_final(struct shash_desc *desc, u8 *out);
1050 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
1053 static inline void shash_desc_zero(struct shash_desc *desc) in shash_desc_zero()