Source code of Windows XP (NT5)
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.

35 lines
584 B

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. crchash.h
  5. Abstract:
  6. CRC Hash function
  7. */
  8. #ifndef __CRCHASH_H
  9. #define __CRCHASH_H
  10. #define POLY 0x48000000L /* 31-bit polynomial (avoids sign problems) */
  11. extern long CrcTable[128];
  12. void crcinit();
  13. DWORD CRCHash(IN const BYTE * Key, IN DWORD KeyLength);
  14. DWORD CRCHashNoCase(IN const BYTE * Key, IN DWORD KeyLength);
  15. DWORD CRCHashWithPrecompute(IN DWORD PreComputedHash, IN const BYTE * Key, IN DWORD KeyLength);
  16. DWORD
  17. CRCChainingHash( DWORD sum,
  18. const BYTE* (&Key),
  19. BYTE bTerm
  20. ) ;
  21. #endif