diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-siphash24.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-siphash24.c b/src/test/test-siphash24.c index 2402da6a6f..e5a989cdad 100644 --- a/src/test/test-siphash24.c +++ b/src/test/test-siphash24.c @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) { uint64_t out = 0; unsigned i, j; - siphash24((uint8_t *)&out, in, sizeof(in), key); + siphash24(&out, in, sizeof(in), key); assert_se(out == htole64(0xa129ca6149be45e5)); /* verify the internal state as given in the above paper */ @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) { assert_se(state.v1 == 0x0d52f6f62a4f59a4); assert_se(state.v2 == 0x634cb3577b01fd3d); assert_se(state.v3 == 0xa5224d6f55c7d9c8); - siphash24_finalize((uint8_t*)&out, &state); + siphash24_finalize(&out, &state); assert_se(out == htole64(0xa129ca6149be45e5)); assert_se(state.v0 == 0xf6bcd53893fecff1); assert_se(state.v1 == 0x54b9964c7ea0d937); @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) { siphash24_compress(in, i, &state); siphash24_compress(&in[i], j - i, &state); siphash24_compress(&in[j], sizeof(in) - j, &state); - siphash24_finalize((uint8_t*)&out, &state); + siphash24_finalize(&out, &state); assert_se(out == htole64(0xa129ca6149be45e5)); } } |