tlx
Loading...
Searching...
No Matches
siphash.hpp File Reference
#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.

Namespaces

namespace  tlx
 

Macros

#define TLX_SIPCOMPRESS()
 

Functions

static std::uint64_t siphash_plain (const std::uint8_t key[16], const std::uint8_t *m, size_t len)
 
static std::uint64_t siphash (const std::uint8_t key[16], const std::uint8_t *msg, size_t size)
 
static std::uint64_t siphash (const std::uint8_t *msg, size_t size)
 
static std::uint64_t siphash (const char *msg, size_t size)
 
static std::uint64_t siphash (const std::string &str)
 
template<typename Type>
static std::uint64_t siphash (const Type &value)
 

Macro Definition Documentation

◆ TLX_SIPCOMPRESS

#define TLX_SIPCOMPRESS ( )