2 * Copyright (c) 2007-2012, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
8 #ifndef LIBSOLV_CHKSUM_H
9 #define LIBSOLV_CHKSUM_H
17 void *solv_chksum_create(Id type);
18 void *solv_chksum_create_clone(void *handle);
19 void *solv_chksum_create_from_bin(Id type, const unsigned char *buf);
20 void solv_chksum_add(void *handle, const void *data, int len);
21 Id solv_chksum_get_type(void *handle);
22 int solv_chksum_isfinished(void *handle);
23 const unsigned char *solv_chksum_get(void *handle, int *lenp);
24 void *solv_chksum_free(void *handle, unsigned char *cp);
25 const char *solv_chksum_type2str(Id type);
26 Id solv_chksum_str2type(const char *str);
27 int solv_chksum_len(Id type);
33 #endif /* LIBSOLV_CHKSUM_H */