1 
2 /*-------------------------------------------------------------*/
3 /* Name : netwib_checksum_buf
4    Description :
5      Compute the checksum of a buffer.
6    Input parameter(s) :
7      *pbuf : buffer input data
8    Input/output parameter(s) :
9    Output parameter(s) :
10      *pchecksum : checksum of data stored in *pbuf.
11                   Note : this checksum is in host byte order
12    Normal return values :
13      NETWIB_ERR_OK : ok
14 */
15 netwib_err netwib_checksum_buf(netwib_constbuf *pbuf,
16                                netwib_uint16 *pchecksum);
17 
18 /*-------------------------------------------------------------*/
19 netwib_err netwib_checksum_init(netwib_uint32 *ptmpchecksum);
20 netwib_err netwib_checksum_update_buf(netwib_constbuf *pbuf,
21                                       netwib_uint32 *ptmpchecksum);
22 netwib_err netwib_checksum_update_data(netwib_constdata data,
23                                        netwib_uint32 datasize,
24                                        netwib_uint32 *ptmpchecksum);
25 netwib_err netwib_checksum_close(netwib_uint32 tmpchecksum,
26                                  netwib_uint16 *pchecksum);
27