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
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00053 #define APR_SIPHASH_DSIZE 8
00054
00056 #define APR_SIPHASH_KSIZE 16
00057
00058
00069 APR_DECLARE(apr_uint64_t) apr_siphash(const void *src, apr_size_t len,
00070 const unsigned char key[APR_SIPHASH_KSIZE],
00071 unsigned int c, unsigned int d);
00072
00086 APR_DECLARE(void) apr_siphash_auth(unsigned char out[APR_SIPHASH_DSIZE],
00087 const void *src, apr_size_t len,
00088 const unsigned char key[APR_SIPHASH_KSIZE],
00089 unsigned int c, unsigned int d);
00090
00099 APR_DECLARE(apr_uint64_t) apr_siphash24(const void *src, apr_size_t len,
00100 const unsigned char key[APR_SIPHASH_KSIZE]);
00101
00113 APR_DECLARE(void) apr_siphash24_auth(unsigned char out[APR_SIPHASH_DSIZE],
00114 const void *src, apr_size_t len,
00115 const unsigned char key[APR_SIPHASH_KSIZE]);
00116
00125 APR_DECLARE(apr_uint64_t) apr_siphash48(const void *src, apr_size_t len,
00126 const unsigned char key[APR_SIPHASH_KSIZE]);
00127
00139 APR_DECLARE(void) apr_siphash48_auth(unsigned char out[APR_SIPHASH_DSIZE],
00140 const void *src, apr_size_t len,
00141 const unsigned char key[APR_SIPHASH_KSIZE]);
00142
00143 #ifdef __cplusplus
00144 }
00145 #endif
00146
00147 #endif