windows-nt/Source/XPSP1/NT/inetsrv/iis/staxinc/crchash.h
2020-09-26 16:20:57 +08:00

36 lines
584 B
C

/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
crchash.h
Abstract:
CRC Hash function
*/
#ifndef __CRCHASH_H
#define __CRCHASH_H
#define POLY 0x48000000L /* 31-bit polynomial (avoids sign problems) */
extern long CrcTable[128];
void crcinit();
DWORD CRCHash(IN const BYTE * Key, IN DWORD KeyLength);
DWORD CRCHashNoCase(IN const BYTE * Key, IN DWORD KeyLength);
DWORD CRCHashWithPrecompute(IN DWORD PreComputedHash, IN const BYTE * Key, IN DWORD KeyLength);
DWORD
CRCChainingHash( DWORD sum,
const BYTE* (&Key),
BYTE bTerm
) ;
#endif