siphash.h

Defines

SIP_ULL(high, low)
SIP_ROTL(x, b)
SIP_U32TO8_LE(p, v)
SIP_U64TO8_LE(p, v)
SIP_U8TO64_LE(p)
SIPHASH_INITIALIZER
SIP_KEYLEN
sip_keyof(k)
sip_endof(a)

Functions

static struct sipkey *sip_tokey(struct sipkey *key, const void *src)
static void sip_round(struct siphash *H, const int rounds)
static struct siphash *sip24_init(struct siphash *H, const struct sipkey *key)
static struct siphash *sip24_update(struct siphash *H, const void *src, size_t len)
static uint64_t sip24_final(struct siphash *H)
static uint64_t siphash24(const void *src, size_t len, const struct sipkey *key)
static int sip24_valid(void)
struct siphash

Public Members

uint64_t v0
uint64_t v1
uint64_t v2
uint64_t v3
unsigned char buf[8]
unsigned char *p
uint64_t c
struct sipkey

Public Members

uint64_t k[2]