Lines Matching refs:hash_ctx
34 struct hash_ctx *(*create_ctx)(const struct fsverity_hash_alg *alg);
39 struct hash_ctx {
41 void (*init)(struct hash_ctx *ctx);
42 void (*update)(struct hash_ctx *ctx, const void *data, size_t size);
43 void (*final)(struct hash_ctx *ctx, u8 *out);
44 void (*free)(struct hash_ctx *ctx);
47 void libfsverity_hash_init(struct hash_ctx *ctx);
48 void libfsverity_hash_update(struct hash_ctx *ctx, const void *data,
50 void libfsverity_hash_final(struct hash_ctx *ctx, u8 *digest);
51 void libfsverity_hash_full(struct hash_ctx *ctx, const void *data, size_t size,
53 void libfsverity_free_hash_ctx(struct hash_ctx *ctx);