Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Copyright (C) 1986 Gary S. Brown. You may use this program, or
- code or tables extracted from it, as desired without restriction.*/
- MHASH td = mhash_init(MHASH_CRC32);
- if (td == MHASH_FAILED) return -1; // handle failure
- mhash(td, s, strlen(s));
- unsigned int digest = 0; // crc32 will be stored here
- mhash_deinit(td, &digest);
- // do endian swap here if desired
Add Comment
Please, Sign In to add comment