aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/siphash24.h
blob: 2ac964987c725b0193503422c8b2f2e9b98bfb1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright (C) 2015-2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */

#ifndef SIPHASH24_H
#define SIPHASH24_H

#include <linux/types.h>

enum siphash24_lengths {
	SIPHASH24_KEY_LEN = 16
};

u64 siphash24(const u8 *data, size_t len, const u8 key[SIPHASH24_KEY_LEN]);

#ifdef DEBUG
bool siphash24_selftest(void);
#endif

#endif