Bitdefender Hypervisor Memory Introspection
crc32.h File Reference
#include "introtypes.h"

Go to the source code of this file.

Functions

DWORD Crc32Compute (const void *Buffer, size_t Size, DWORD InitialCrc)
 Computes the CRC for a byte array. More...
 
DWORD Crc32ComputeFast (const void *Buffer, size_t Size, DWORD InitialCrc)
 
DWORD Crc32String (const char *String, DWORD InitialCrc)
 Computes the CRC for a NULL-terminated utf-8 string. More...
 
DWORD Crc32Wstring (const WCHAR *String, DWORD InitialCrc)
 Computes the CRC for a NULL-terminated wide char string. More...
 
DWORD Crc32WstringLen (const WCHAR *String, DWORD InitialCrc, size_t MaxLength, BOOLEAN *Valid)
 Computes the CRC for a NULL-terminated wide char string, but without exceeding a maximum number of characters. More...
 
DWORD Crc32StringLen (const char *String, DWORD InitialCrc, size_t MaxLength, BOOLEAN *Valid)
 Computes the CRC for a NULL-terminated utf-8 string, but without exceeding a maximum number of characters. More...
 

Function Documentation

◆ Crc32Compute()

◆ Crc32ComputeFast()

DWORD Crc32ComputeFast ( const void *  Buffer,
size_t  Size,
DWORD  InitialCrc 
)

◆ Crc32String()

◆ Crc32StringLen()

DWORD Crc32StringLen ( const char *  String,
DWORD  InitialCrc,
size_t  MaxLength,
BOOLEAN Valid 
)

Computes the CRC for a NULL-terminated utf-8 string, but without exceeding a maximum number of characters.

Definition at line 301 of file crc32.c.

Referenced by IntAlertCreateEptException(), IntAlertCreateInjectionException(), IntAlertCreateIntegrityException(), IntAlertCreateModuleLoadException(), and IntAlertCreateProcessCreationException().

◆ Crc32Wstring()

DWORD Crc32Wstring ( const WCHAR String,
DWORD  InitialCrc 
)

Computes the CRC for a NULL-terminated wide char string.

Definition at line 226 of file crc32.c.

Referenced by IntAlertGetHashForWindowsName(), IntWinDrvCreateFromAddress(), IntWinDrvObjCreateFromAddress(), and IntWinUmPathCreate().

◆ Crc32WstringLen()

DWORD Crc32WstringLen ( const WCHAR String,
DWORD  InitialCrc,
size_t  MaxLength,
BOOLEAN Valid 
)

Computes the CRC for a NULL-terminated wide char string, but without exceeding a maximum number of characters.

Definition at line 259 of file crc32.c.

Referenced by IntAlertCreateEptException(), and IntAlertCreateIntegrityException().