]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/siphash24.h
path-util: rework find_binary(), fsck_exists() and mkfs_exists()
[thirdparty/systemd.git] / src / basic / siphash24.h
CommitLineData
9bf3b535
LP
1#pragma once
2
3#include <inttypes.h>
4#include <sys/types.h>
5
7c57f504
TG
6struct siphash {
7 uint64_t v0;
8 uint64_t v1;
9 uint64_t v2;
10 uint64_t v3;
11 uint64_t padding;
12 size_t inlen;
13};
14
0cb3c286 15void siphash24_init(struct siphash *state, const uint8_t k[16]);
7c57f504 16void siphash24_compress(const void *in, size_t inlen, struct siphash *state);
0cb3c286 17void siphash24_finalize(uint8_t out[8], struct siphash *state);
7c57f504 18
9bf3b535 19void siphash24(uint8_t out[8], const void *in, size_t inlen, const uint8_t k[16]);