| 1 |
// Copyright (c) 2019, Google Inc. |
| 2 |
// SPDX-License-Identifier: ISC |
| 3 |
|
| 4 |
#ifndef OPENSSL_HEADER_SIPHASH_H |
| 5 |
#define OPENSSL_HEADER_SIPHASH_H |
| 6 |
|
| 7 |
#include <openssl/base.h> |
| 8 |
|
| 9 |
#if defined(__cplusplus) |
| 10 |
extern "C" { |
| 11 |
#endif |
| 12 |
|
| 13 |
|
| 14 |
// SipHash is a fast, secure PRF that is often used for hash tables. |
| 15 |
|
| 16 |
|
| 17 |
// SIPHASH_24 implements SipHash-2-4. See https://131002.net/siphash/siphash.pdf |
| 18 |
OPENSSL_EXPORT uint64_t SIPHASH_24(const uint64_t key[2], const uint8_t *input, |
| 19 |
size_t input_len); |
| 20 |
|
| 21 |
|
| 22 |
#if defined(__cplusplus) |
| 23 |
} // extern C |
| 24 |
#endif |
| 25 |
|
| 26 |
#endif // OPENSSL_HEADER_SIPHASH_H |