#include <tlx/define/attribute_fallthrough.hpp>
#include <tlx/math/bswap_le.hpp>
#include <tlx/math/rol.hpp>
#include <cstdint>
#include <cstdlib>
#include <string>
Go to the source code of this file.
|
static uint64_t | siphash (const uint8_t key[16], const uint8_t *msg, size_t size) |
|
static uint64_t | siphash (const uint8_t *msg, size_t size) |
|
static uint64_t | siphash (const char *msg, size_t size) |
|
static uint64_t | siphash (const std::string &str) |
|
template<typename Type > |
static uint64_t | siphash (const Type &value) |
|
static uint64_t | siphash_plain (const uint8_t key[16], const uint8_t *m, size_t len) |
|
◆ TLX_SIPCOMPRESS
#define TLX_SIPCOMPRESS |
( |
| ) |
|
Value:v0 += v1; v2 += v3; \
v1 ^= v0; v3 ^= v2; \
v2 += v1; v0 += v3; \
v1 ^= v2; v3 ^= v0; \
static uint64_t rol64(const uint64_t &x, int i)
rol64 - generic
Referenced by tlx::siphash_plain().