]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Ventoy2Disk/Ventoy2Disk/crc32.c
3 static UINT32 g_CrcTable
[256] = {
262 UINT32
VentoyCrc32(void *Buffer
, UINT32 Length
)
266 UINT8
*Byte
= Buffer
;
269 for (Index
= 0; Index
< Length
; Index
++, Byte
++)
271 Crc
= (Crc
>> 8) ^ g_CrcTable
[(UINT8
)Crc
^ *Byte
];
274 return Crc
^ 0xffffffff;