aboutsummaryrefslogtreecommitdiff
path: root/src/hash/xor.h
blob: bd9aaedc04cc065b1a865978ec4a91c3b99e1aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "../lua.h"
#include <stdint.h>
/**
 * calculates a xor hash of (len) bytes
 *
 * @param {uint8_t*} input bytes
 * @param {size_t} input length
 * @return {uint8_t} 8 bit checksum
*/
uint8_t xor8(uint8_t*, size_t);

int l_xor8(lua_State*);