windows-nt/Source/XPSP1/NT/inetsrv/iis/staxinc/crchash.h

36 lines
584 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
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