Strophe
0.10
XMPP client library
|
Data Structures | |
struct | siphash |
struct | sipkey |
Macros | |
#define | _SIP_ULL(high, low) (((uint64_t)high << 32) | low) |
#define | SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
#define | SIP_U32TO8_LE(p, v) |
#define | SIP_U64TO8_LE(p, v) |
#define | SIP_U8TO64_LE(p) |
#define | SIPHASH_INITIALIZER { 0, 0, 0, 0, {0}, 0, 0 } |
#define | SIP_KEYLEN 16 |
#define | sip_keyof(k) sip_tokey(&(struct sipkey){{0}}, (k)) |
#define | sip_endof(a) (&(a)[sizeof(a) / sizeof *(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) |
#define _SIP_ULL | ( | high, | |
low | |||
) | (((uint64_t)high << 32) | low) |
#define SIP_ROTL | ( | x, | |
b | |||
) | (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
#define SIP_U32TO8_LE | ( | p, | |
v | |||
) |
#define SIP_U64TO8_LE | ( | p, | |
v | |||
) |
#define SIP_U8TO64_LE | ( | p | ) |
#define SIPHASH_INITIALIZER { 0, 0, 0, 0, {0}, 0, 0 } |
#define SIP_KEYLEN 16 |
#define sip_endof | ( | a | ) | (&(a)[sizeof(a) / sizeof *(a)]) |
|
static |
|
static |
|
static |
|
static |