Lines Matching refs:hash_ctx
13 struct hash_ctx *(*create_ctx)(const struct fsverity_hash_alg *alg);
18 struct hash_ctx { struct
20 void (*init)(struct hash_ctx *ctx); argument
21 void (*update)(struct hash_ctx *ctx, const void *data, size_t size); argument
22 void (*final)(struct hash_ctx *ctx, u8 *out); argument
23 void (*free)(struct hash_ctx *ctx); argument
37 static inline struct hash_ctx *hash_create(const struct fsverity_hash_alg *alg) in hash_create()
42 static inline void hash_init(struct hash_ctx *ctx) in hash_init()
47 static inline void hash_update(struct hash_ctx *ctx, in hash_update()
53 static inline void hash_final(struct hash_ctx *ctx, u8 *digest) in hash_final()
58 static inline void hash_free(struct hash_ctx *ctx) in hash_free()