#include "apr.h"
#include "apu.h"
Go to the source code of this file.
Defines | |
| #define | APR_SIPHASH_DSIZE 8 |
| #define | APR_SIPHASH_KSIZE 16 |
Functions | |
| apr_uint64_t | apr_siphash (const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE], unsigned int c, unsigned int d) |
| Computes SipHash-c-d, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key. | |
| void | apr_siphash_auth (unsigned char out[APR_SIPHASH_DSIZE], const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE], unsigned int c, unsigned int d) |
| Computes SipHash-c-d, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC. | |
| apr_uint64_t | apr_siphash24 (const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE]) |
| Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key. | |
| void | apr_siphash24_auth (unsigned char out[APR_SIPHASH_DSIZE], const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE]) |
| Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC. | |
| apr_uint64_t | apr_siphash48 (const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE]) |
| Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key. | |
| void | apr_siphash48_auth (unsigned char out[APR_SIPHASH_DSIZE], const void *src, apr_size_t len, const unsigned char key[APR_SIPHASH_KSIZE]) |
| Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC. | |
| #define APR_SIPHASH_DSIZE 8 |
size of the siphash digest
| #define APR_SIPHASH_KSIZE 16 |
size of the siphash key
| apr_uint64_t apr_siphash | ( | const void * | src, | |
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE], | |||
| unsigned int | c, | |||
| unsigned int | d | |||
| ) |
Computes SipHash-c-d, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key.
| src | The message | |
| len | The length of the message | |
| key | The secret key | |
| c | The number of compression rounds | |
| d | The number of finalization rounds |
| apr_uint64_t apr_siphash24 | ( | const void * | src, | |
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE] | |||
| ) |
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key.
| src | The message to hash | |
| len | The length of the message | |
| key | The secret key |
| void apr_siphash24_auth | ( | unsigned char | out[APR_SIPHASH_DSIZE], | |
| const void * | src, | |||
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE] | |||
| ) |
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
| out | The output buffer (or MAC) | |
| src | The message | |
| len | The length of the message | |
| key | The secret key |
| apr_uint64_t apr_siphash48 | ( | const void * | src, | |
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE] | |||
| ) |
Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key.
| src | The message | |
| len | The length of the message | |
| key | The secret key |
| void apr_siphash48_auth | ( | unsigned char | out[APR_SIPHASH_DSIZE], | |
| const void * | src, | |||
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE] | |||
| ) |
Computes SipHash-4-8, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
| out | The output buffer (or MAC) | |
| src | The message | |
| len | The length of the message | |
| key | The secret key |
| void apr_siphash_auth | ( | unsigned char | out[APR_SIPHASH_DSIZE], | |
| const void * | src, | |||
| apr_size_t | len, | |||
| const unsigned char | key[APR_SIPHASH_KSIZE], | |||
| unsigned int | c, | |||
| unsigned int | d | |||
| ) |
Computes SipHash-c-d, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
| out | The output buffer (or MAC) | |
| src | The message | |
| len | The length of the message | |
| key | The secret key | |
| c | The number of compression rounds | |
| d | The number of finalization rounds |
1.5.6