Windows2003-3790/inetsrv/iis/staxinc/crchash.h
2020-09-30 16:53:55 +02:00

36 lines
619 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