OpenVPN
siphash.h
Go to the documentation of this file.
1/*
2 * SipHash reference C implementation
3 *
4 * Copyright (c) 2012-2021 Jean-Philippe Aumasson
5 * <jeanphilippe.aumasson@gmail.com>
6 * Copyright (c) 2012-2014 Daniel J. Bernstein <djb@cr.yp.to>
7 *
8 * To the extent possible under law, the author(s) have dedicated all copyright
9 * and related and neighboring rights to this software to the public domain
10 * worldwide. This software is distributed without any warranty.
11 *
12 * You should have received a copy of the CC0 Public Domain Dedication along
13 * with
14 * this software. If not, see
15 * <http://creativecommons.org/publicdomain/zero/1.0/>.
16 */
17
18#ifndef SIPHASH_H
19#define SIPHASH_H
20
21#include <inttypes.h>
22
23/* siphash always uses 128-bit keys */
24#define SIPHASH_KEY_SIZE 16
25
26int siphash(const void *in, size_t inlen, const void *k, uint8_t *out,
27 size_t outlen);
28
29#endif
int siphash(const void *in, size_t inlen, const void *k, uint8_t *out, size_t outlen)