BeRTOS
|
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 . |
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.
Definition in file rotating_hash.h.