Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void calculateCrc(char* hashString, DWORD& crc32)
- {
- crc32 = 0xFFFFFFFF;
- ifstream hashFile(hashString, ios::binary);
- hashFile.peek();
- while(!hashFile.eof())
- {
- crc32 = (crc32 >> 8) ^ crc32Table[(crc32 &0xFF) ^ hashFile.get()];
- hashFile.peek();
- }
- hashFile.close()
- crc32 = ~crc32;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement