mirror of https://github.com/tongzx/nt5src
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
35 lines
584 B
|
|
/*++
|
|
|
|
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
|