rotating_hash.h File Reference
Rotating Hash algorithm. More...
#include <cfg/compiler.h>
Go to the source code of this file.
Functions | |
| void | rotating_init (rotating_t *rot) |
| Init rotating checksum. | |
| void | rotating_update1 (uint8_t c, rotating_t *rot) |
Update checksum pointed by rot with c data. | |
| void | rotating_update (const void *_buf, size_t len, rotating_t *rot) |
Update checksum pointed by rot with data supplied in buf. | |
Detailed Description
Rotating Hash algorithm.This is a simple yet powerfull checksum algorithm. Instead of just xor-ing the data, rotating hash circular shift the checksum 4 place left before xoring. This is a bit more stronger than simply sum the data.
- Version:
- Id
- rotating_hash.h 2550 2009-04-17 17:06:38Z batt
Definition in file rotating_hash.h.
