siphash: fix another alignment issue

This commit is contained in:
Lennart Poettering
2015-11-17 00:56:05 +01:00
parent 23e096cc60
commit 4de91d7eaf
+2 -2
View File
@@ -53,8 +53,8 @@ void siphash24_init(struct siphash *state, const uint8_t k[16]) {
assert(state);
assert(k);
k0 = le64toh(*(le64_t*) k);
k1 = le64toh(*(le64_t*) (k + 8));
k0 = unaligned_read_le64(k);
k1 = unaligned_read_le64(k + 8);
/* "somepseudorandomlygeneratedbytes" */
state->v0 = 0x736f6d6570736575ULL ^ k0;