|
Apache HTTPD
|
#include "apr_siphash.h"Go to the source code of this file.
Macros | |
| #define | ROTL64(x, n) (((x) << (n)) | ((x) >> (64 - (n)))) |
| #define | U8TO64_LE(p) |
| #define | U64TO8_LE(p, v) |
| #define | SIPROUND() |
| #define | SIPHASH(r, s, n, k) |
| #define | cROUNDS |
| #define | dROUNDS |
| #define | cROUNDS |
| #define | dROUNDS |
| #define | cROUNDS |
| #define | dROUNDS |
Functions | |
| APU_DECLARE (apr_uint64_t) | |
| Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key. | |
| APU_DECLARE (void) | |
| 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. | |
| #define cROUNDS |
| #define dROUNDS |
| #define dROUNDS |
Definition at line 24 of file apr_siphash.c.
| #define SIPROUND | ( | ) |
Definition at line 48 of file apr_siphash.c.
Definition at line 36 of file apr_siphash.c.
Definition at line 26 of file apr_siphash.c.
| APU_DECLARE | ( | apr_uint64_t | ) |
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key.
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 to hash |
| len | The length of the message |
| key | The secret key |
| src | The message |
| len | The length of the message |
| key | The secret key |
Definition at line 98 of file apr_siphash.c.
| APU_DECLARE | ( | void | ) |
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.
Return APR-util's version information information in a numeric form.
| pvsn | Pointer to a version structure for returning the version information. |
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.
Initialize the SHA digest
| context | The SHA context to initialize |
Update the SHA digest
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The length of the input buffer |
Update the SHA digest with binary data
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The length of the input buffer |
Finish computing the SHA digest
| digest | the output buffer in which to store the digest |
| context | The context to finalize |
| out | The output buffer (or MAC) |
| src | The message |
| len | The length of the message |
| key | The secret key |
< use pool pre cleanup
Definition at line 121 of file apr_siphash.c.