|
26 | 26 | * halfsiphash code adapted from reference implementation |
27 | 27 | * (https://github.com/veorq/SipHash/blob/master/halfsiphash.c) |
28 | 28 | * which is distributed with the following copyright: |
29 | | - * |
30 | | - * SipHash reference C implementation |
31 | | - * |
32 | | - * Copyright (c) 2016 Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> |
33 | | - * |
34 | | - * To the extent possible under law, the author(s) have dedicated all copyright |
35 | | - * and related and neighboring rights to this software to the public domain |
36 | | - * worldwide. This software is distributed without any warranty. |
37 | | - * |
38 | | - * You should have received a copy of the CC0 Public Domain Dedication along |
39 | | - * with this software. If not, see |
40 | | - * <http://creativecommons.org/publicdomain/zero/1.0/>. |
| 29 | + */ |
| 30 | + |
| 31 | +/* |
| 32 | + SipHash reference C implementation |
| 33 | +
|
| 34 | + Copyright (c) 2012-2021 Jean-Philippe Aumasson |
| 35 | + <jeanphilippe.aumasson@gmail.com> |
| 36 | + Copyright (c) 2012-2014 Daniel J. Bernstein <djb@cr.yp.to> |
| 37 | +
|
| 38 | + To the extent possible under law, the author(s) have dedicated all copyright |
| 39 | + and related and neighboring rights to this software to the public domain |
| 40 | + worldwide. This software is distributed without any warranty. |
| 41 | +
|
| 42 | + You should have received a copy of the CC0 Public Domain Dedication along |
| 43 | + with |
| 44 | + this software. If not, see |
| 45 | + <http://creativecommons.org/publicdomain/zero/1.0/>. |
41 | 46 | */ |
42 | 47 |
|
43 | 48 | #include "precompiled.hpp" |
@@ -134,7 +139,9 @@ static uint64_t halfsiphash_finish64(uint32_t v[4], int rounds) { |
134 | 139 | } |
135 | 140 |
|
136 | 141 | // HalfSipHash-2-4 (32-bit output) for Symbols |
137 | | -uint32_t AltHashing::halfsiphash_32(uint64_t seed, const uint8_t* data, int len) { |
| 142 | +uint32_t AltHashing::halfsiphash_32(uint64_t seed, const void* in, int len) { |
| 143 | + |
| 144 | + const unsigned char* data = (const unsigned char*)in; |
138 | 145 | uint32_t v[4]; |
139 | 146 | uint32_t newdata; |
140 | 147 | int off = 0; |
|
0 commit comments