1 /* 2 $Id$ 3 */ 4 #ifndef CHECKSUM_H 5 #define CHECkSUM_H 6 7 /** 8 \brief Initialize the checksum 9 */ 10 11 extern void checksum_init(void); 12 13 /** 14 \brief Include new data in the checksum 15 */ 16 17 extern void checksum_update(int len, const void *buf); 18 19 /** 20 \brief Retrieve the final checksum 21 */ 22 23 extern void checksum_final(char sum[33]); 24 25 /** 26 \brief Calculate the checksum of a single buffer 27 */ 28 29 extern void checksum_simple(int len, const void *buf, char sum[33]); 30 31 #endif 32