diff options
author | Tom Gundersen <teg@jklm.no> | 2015-10-06 15:04:42 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-06 17:47:00 +0200 |
commit | 0cb3c286883b694fc52a18a3b559ff98931641f3 (patch) | |
tree | f8c3cf9104b3ea8fc180bd1de1e72119dfe4524e /src/basic/siphash24.h | |
parent | 8c60d978bd3453659bfa7f4d90a17ba5fa3e0774 (diff) |
siphash24: unify API
Make the API of the new helpers more similar to the old wrapper.
In particular we now return the hash as a byte string to avoid
any endianness problems.
Diffstat (limited to 'src/basic/siphash24.h')
-rw-r--r-- | src/basic/siphash24.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/siphash24.h b/src/basic/siphash24.h index c107bdd213..6c5cd98ee8 100644 --- a/src/basic/siphash24.h +++ b/src/basic/siphash24.h @@ -12,8 +12,8 @@ struct siphash { size_t inlen; }; -void siphash_init(struct siphash *state, const uint8_t k[16]); +void siphash24_init(struct siphash *state, const uint8_t k[16]); void siphash24_compress(const void *in, size_t inlen, struct siphash *state); -uint64_t siphash24_finalize(struct siphash *state); +void siphash24_finalize(uint8_t out[8], struct siphash *state); void siphash24(uint8_t out[8], const void *in, size_t inlen, const uint8_t k[16]); |