siphash.h File Reference

#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  sip_uint64_t
struct  sip_state
struct  sip_hash

Defines

#define SIPHASH_H   1
#define uint64_t   sip_uint64_t

Typedefs

typedef struct sip_interface_st sip_interface

Functions

sip_hashsip_hash_new (const uint8_t key[16], int c, int d)
sip_hashsip_hash_init (sip_hash *h, const uint8_t key[16], int c, int d)
int sip_hash_update (sip_hash *h, const uint8_t *data, size_t len)
int sip_hash_final (sip_hash *h, uint8_t **digest, size_t *len)
int sip_hash_final_integer (sip_hash *h, uint64_t *digest)
int sip_hash_digest (sip_hash *h, const uint8_t *data, size_t data_len, uint8_t **digest, size_t *digest_len)
int sip_hash_digest_integer (sip_hash *h, const uint8_t *data, size_t data_len, uint64_t *digest)
void sip_hash_free (sip_hash *h)
void sip_hash_dump (sip_hash *h)
uint64_t sip_hash24 (const uint8_t key[16], const uint8_t *data, size_t len)

Define Documentation

#define SIPHASH_H   1

Definition at line 2 of file siphash.h.

#define uint64_t   sip_uint64_t

Definition at line 15 of file siphash.h.

Referenced by pack_unpack(), sip_hash24(), and u8to64_le().


Typedef Documentation

typedef struct sip_interface_st sip_interface

Definition at line 29 of file siphash.h.


Function Documentation

uint64_t sip_hash24 ( const uint8_t  key[16],
const uint8_t data,
size_t  len 
)

Definition at line 397 of file siphash.c.

References last, OR_BYTE, SIP_2_ROUND, SIP_COMPRESS, sip_init_state, U8TO64_LE, uint64_t, XOR64_INT, and XOR64_TO.

int sip_hash_digest ( sip_hash h,
const uint8_t data,
size_t  data_len,
uint8_t **  digest,
size_t *  digest_len 
)
int sip_hash_digest_integer ( sip_hash h,
const uint8_t data,
size_t  data_len,
uint64_t digest 
)
void sip_hash_dump ( sip_hash h  ) 
int sip_hash_final ( sip_hash h,
uint8_t **  digest,
size_t *  len 
)
int sip_hash_final_integer ( sip_hash h,
uint64_t digest 
)
void sip_hash_free ( sip_hash h  ) 
sip_hash* sip_hash_init ( sip_hash h,
const uint8_t  key[16],
int  c,
int  d 
)
sip_hash* sip_hash_new ( const uint8_t  key[16],
int  c,
int  d 
)
int sip_hash_update ( sip_hash h,
const uint8_t data,
size_t  len 
)

Generated on 27 Nov 2014 for Ruby by  doxygen 1.6.1