|
OpenVPN
|

Go to the source code of this file.
Macros | |
| #define | cROUNDS 2 |
| #define | dROUNDS 4 |
| #define | ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
| #define | U32TO8_LE(p, v) |
| #define | U64TO8_LE(p, v) |
| #define | U8TO64_LE(p) |
| #define | SIPROUND |
| #define | TRACE |
Functions | |
| void | siphash_reference (const void *in, const size_t inlen, const void *k, uint8_t *out, const size_t outlen) |
| Calculates SIPHASH using the reference implementation. | |
| #define cROUNDS 2 |
Definition at line 36 of file siphash_reference.c.
| #define dROUNDS 4 |
Definition at line 39 of file siphash_reference.c.
| #define ROTL | ( | x, | |
| b | |||
| ) | (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
Definition at line 42 of file siphash_reference.c.
| #define SIPROUND |
Definition at line 60 of file siphash_reference.c.
| #define TRACE |
Definition at line 91 of file siphash_reference.c.
| #define U32TO8_LE | ( | p, | |
| v | |||
| ) |
Definition at line 44 of file siphash_reference.c.
| #define U64TO8_LE | ( | p, | |
| v | |||
| ) |
Definition at line 50 of file siphash_reference.c.
| #define U8TO64_LE | ( | p | ) |
Definition at line 54 of file siphash_reference.c.
| void siphash_reference | ( | const void * | in, |
| const size_t | inlen, | ||
| const void * | k, | ||
| uint8_t * | out, | ||
| const size_t | outlen | ||
| ) |
Calculates SIPHASH using the reference implementation.
Definition at line 103 of file siphash_reference.c.
References cROUNDS, dROUNDS, SIPROUND, TRACE, U64TO8_LE, and U8TO64_LE.
Referenced by siphash(), test_siphash(), and test_siphash_openssl().