00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef APR_SIPHASH_H
00030 #define APR_SIPHASH_H
00031
00032 #include "apr.h"
00033 #include "apu.h"
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00054 #define APR_SIPHASH_DSIZE 8
00055
00057 #define APR_SIPHASH_KSIZE 16
00058
00059
00070 APU_DECLARE(apr_uint64_t) apr_siphash(const void *src, apr_size_t len,
00071 const unsigned char key[APR_SIPHASH_KSIZE],
00072 unsigned int c, unsigned int d);
00073
00087 APU_DECLARE(void) apr_siphash_auth(unsigned char out[APR_SIPHASH_DSIZE],
00088 const void *src, apr_size_t len,
00089 const unsigned char key[APR_SIPHASH_KSIZE],
00090 unsigned int c, unsigned int d);
00091
00100 APU_DECLARE(apr_uint64_t) apr_siphash24(const void *src, apr_size_t len,
00101 const unsigned char key[APR_SIPHASH_KSIZE]);
00102
00114 APU_DECLARE(void) apr_siphash24_auth(unsigned char out[APR_SIPHASH_DSIZE],
00115 const void *src, apr_size_t len,
00116 const unsigned char key[APR_SIPHASH_KSIZE]);
00117
00126 APU_DECLARE(apr_uint64_t) apr_siphash48(const void *src, apr_size_t len,
00127 const unsigned char key[APR_SIPHASH_KSIZE]);
00128
00140 APU_DECLARE(void) apr_siphash48_auth(unsigned char out[APR_SIPHASH_DSIZE],
00141 const void *src, apr_size_t len,
00142 const unsigned char key[APR_SIPHASH_KSIZE]);
00143
00144 #ifdef __cplusplus
00145 }
00146 #endif
00147
00148 #endif