rotating_hash.h File Reference
Rotating Hash algorithm (interface). 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 (interface).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 1202 2008-03-20 14:40:42Z asterix
Definition in file rotating_hash.h.
