]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/siphash24.h
18 void siphash24_init(struct siphash
*state
, const uint8_t k
[static 16]);
19 void siphash24_compress(const void *in
, size_t inlen
, struct siphash
*state
);
20 void siphash24_compress_boolean(bool in
, struct siphash
*state
);
21 #define siphash24_compress_byte(byte, state) siphash24_compress((const uint8_t[]) { (byte) }, 1, (state))
23 uint64_t siphash24_finalize(struct siphash
*state
);
25 uint64_t siphash24(const void *in
, size_t inlen
, const uint8_t k
[static 16]);
27 static inline uint64_t siphash24_string(const char *s
, const uint8_t k
[static 16]) {
28 return siphash24(s
, strlen(s
) + 1, k
);