Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
768 B

  1. /*
  2. * CRC32.H -- CRC32 computation
  3. */
  4. #define CRC32_INITIAL_VALUE 0L
  5. /*
  6. * GenerateCRC32Table - Construct CRC-32 constant table
  7. *
  8. * We construct the table on-the-fly because the code needed
  9. * to do build it is much smaller than the table it creates.
  10. *
  11. * Entry:
  12. * none
  13. *
  14. * Exit:
  15. * internal table constructed
  16. */
  17. void GenerateCRC32Table(void);
  18. /*
  19. * CRC32Update - Update CRC32 value from a buffer
  20. *
  21. * Entry:
  22. * GenerateCRC32Table() has been called
  23. * pCRC32 pointer to CRC32 accumulator
  24. * p pointer to buffer to compute CRC on
  25. * cb count of bytes in buffer
  26. *
  27. * Exit:
  28. * *pCRC32 updated
  29. */
  30. void CRC32Update(unsigned long *pCRC32,void *p,unsigned long cb);