4 #ifndef INCLUDE_hash_h__
5 #define INCLUDE_hash_h__
9 typedef struct git_hash_ctx git_hash_ctx
;
16 git_hash_ctx
*git_hash_new_ctx(void);
17 void git_hash_free_ctx(git_hash_ctx
*ctx
);
19 void git_hash_init(git_hash_ctx
*c
);
20 void git_hash_update(git_hash_ctx
*c
, const void *data
, size_t len
);
21 void git_hash_final(git_oid
*out
, git_hash_ctx
*c
);
23 void git_hash_buf(git_oid
*out
, const void *data
, size_t len
);
24 void git_hash_vec(git_oid
*out
, git_buf_vec
*vec
, size_t n
);
26 #endif /* INCLUDE_hash_h__ */